10
127
715
高级会员
使用道具 举报
33
2196
5838
论坛元老
modbus: - name: modbus_hub type: rtuovertcp host: 10.1.0.24 port: 8989 sensors: - name: adc1 slave: 1 ##设备地址码 address: 0x0000 ##寄存器地址 scan_interval: 1 ##更新间隔(以秒为单位)。 template: - sensor: - name: 电压 unique_id: dian_ya unit_of_measurement: V state: "{{(states('sensor.adc1')|round * 5 / 4095 )| round(2)}}"
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-11-25 10:45 , Processed in 0.239828 second(s), 28 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.