Witam, potrzebuje pomocy w wyciągnięciu danych temperatury w HA z modułów w temacie.
Wcześniej podłączyłem moduły do komputera za pomocą konwertera USB, ustawiłem nowe adresy slave, robiłem próby odczytu temperatury z czujników DS18B20 i sprawdzałem stany wejść w przypadku WP8026 - wszystko działało.
Próbuje zrobić odczyt w HA i nie mogę nawiązać połączenia/odczytu.
Wrzucam treść kodu z modbus.yaml
- name: modbus_hub type: tcp host: 192.168.18.200 port: 502 sensors: - name: Temperatura 1 unit_of_measurement: °C address: 0 slave: 3 input_type: input device_class: temperature - name: Temperatura 2 unit_of_measurement: °C address: 1 slave: 3 input_type: input device_class: temperature - name: Temperatura 3 unit_of_measurement: °C address: 2 slave: 3 input_type: input device_class: temperature
Poradziłem sobie z odczytem temperatury z WP3066
Oto kod:
sensors: - name: Temperatura 1 unit_of_measurement: °C address: 0 slave: 3 input_type: input device_class: temperature scale: 0.1 precision: 1 - name: Temperatura 2 unit_of_measurement: °C address: 1 slave: 3 input_type: input device_class: temperature scale: 0.1 precision: 1 - name: Temperatura 3 unit_of_measurement: °C address: 2 slave: 3 input_type: input device_class: temperature scale: 0.1 precision: 1 - name: Temperatura 4 unit_of_measurement: °C address: 3 slave: 3 input_type: input device_class: temperature scale: 0.1 precision: 1
Mam jednak nadal problem z czytaniem stanu wejść z WP8026, jest to moduł który ma 16 wejść cyfrowych, nie wiem jak napisać kod aby były dostępne encje.
Mój kod:
- name: Wejście 1 address: 0 slave: 5 input_type: input - name: Wejście 2 address: 1 slave: 5 input_type: holding - name: Wejście 3 address: 2 slave: 5 input_type: input
Próbowałem różnych konfiguracji ale encja pokazuje stan zawsze 0, bez względu na to jaki jest stan faktyczny wejścia
Nie używam, ale z dokumentacji czujnik binarny
binary_sensors: - name: Wejscie address: 1 device_class: none input_type: coil scan_interval: 15 slave: 5 slave_count: 0 unique_id: input1