- 积分
- 395
- 金钱
- 356
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 395
- 金钱
- 356
- HASS币
- 0
|
之前买了个正泰[backcolor=rgba(255, 255, 255, 0.95)][size=15.008px]DDSU666的电表,可以接入正常使用。新版是不是支持了?
configuration.yaml
modbus:
- name: hub1
type: rtuovertcp
host: 192.168.100.245
port: 502
sensor.yaml:
- platform: modbus
register:
- name: 666_U
hub: hub1
unit_of_measurement: V
slave: 1
register: 8192
data_type: float
count: 2
precision: 2
- name: 666_I
hub: hub1
unit_of_measurement: A
slave: 1
register: 8194
data_type: float
count: 2
precision: 2
- name: 666_P
hub: hub1
unit_of_measurement: W
slave: 1
register: 8196
data_type: float
scale: 1000
count: 2
precision: 2
--------
使用有人的485转网口:
貌似连是连上,就是不发数据?!
模块名称: | USR-TCP232-304 | 当前IP: | 192.168.100.245 | MAC地址: | 9c-a5-25-b3-62-4b | 已连接远端IP/网络发送/接收-1 : | 192.168.100.248 / 0 byte / 0 byte |
PS:node-red 可以正常获取数据
|
|