diff --git a/configuration.yaml b/configuration.yaml index 26ef0cb..d1b7478 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -16,6 +16,7 @@ script: !include scripts.yaml scene: !include scenes.yaml mqtt: !include mqtt.yaml climate: !include climate.yaml +modbus: !include modbus.yaml #switch: !include switches.yaml #template: !include template.yaml diff --git a/modbus.yaml b/modbus.yaml new file mode 100644 index 0000000..174f11d --- /dev/null +++ b/modbus.yaml @@ -0,0 +1,29 @@ +# Example yaml: typical tcp connection +- name: modbus_hub_ + type: tcp + host: 192.168.88.168 + port: 502 + sensors: + - name: "Температура в ванной" + scan_interval: 2 + slave: 1 + address: 1 + data_type: int16 + input_type: input + scale: 0.1 + precision: 2 + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + + - name: "Влажность в ванной" + scan_interval: 2 + slave: 1 + address: 2 + data_type: int16 + input_type: input + scale: 0.1 + precision: 2 + unit_of_measurement: "%" + device_class: humidity + state_class: measurement \ No newline at end of file