modbus:
- name: "hub11"
type: tcp
host: 10.0.16.11
port: 8811
sensors:
- name: "用电量"
slave: 1
address: 0x101E
unit_of_measurement: kWh
device_class: energy
state_class: total
scan_interval: 10
input_type: holding
data_type: float32
precision: 2
- name: "电压A"
slave: 1
address: 0x2006
unit_of_measurement: V
device_class: voltage
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.1
precision: 1
- name: "电压B"
slave: 1
address: 0x2008
unit_of_measurement: V
device_class: voltage
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.1
precision: 1
- name: "电压C"
slave: 1
address: 0x200A
unit_of_measurement: V
device_class: voltage
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.1
precision: 1
- name: "电流A"
slave: 1
address: 0x200C
unit_of_measurement: A
device_class: current
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.001
precision: 1
- name: "电流B"
slave: 1
address: 0x200E
unit_of_measurement: A
device_class: current
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.001
precision: 1
- name: "电流C"
slave: 1
address: 0x2010
unit_of_measurement: A
device_class: current
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.001
precision: 1
- name: "功率"
slave: 1
address: 0x2012
device_class: energy
unit_of_measurement: W
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.1
- name: "功率因数"
slave: 1
address: 0x202A
device_class: power_factor
scan_interval: 10
input_type: holding
data_type: float32
scale: 0.001
precision: 2
- name: "hub12"
type: tcp
host: 10.0.16.11
port: 8812
sensors:
- name: "空调开关机"
slave: 1
address: 100
scan_interval: 20
input_type: holding
data_type: int
- name: "运行模式"
slave: 1
address: 101
scan_interval: 10
input_type: holding
data_type: int
- name: "回水温度"
slave: 1
address: 110
unit_of_measurement: °C
device_class: temperature
scan_interval: 10
input_type: holding
data_type: int
scale: 0.1
precision: 1
- name: "出水温度"
slave: 1
address: 111
unit_of_measurement: °C
device_class: temperature
scan_interval: 10
input_type: holding
data_type: int
scale: 0.1
precision: 1
|