Odczyt danych tempe...
 
Powiadomienia
Wyczyść wszystko

Home Assistant Odczyt danych temperatury z WellPro3066 adam i danych wejściowych z WellPro8026

4 Wpisów
2 Użytkownicy
0 Reactions
39 Wyświetleń
(@gregorski)
Wpisów: 20
Praktykant
Autor tematu
 

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
 
Dodane : 27/03/2025 12:59 pm
(@gregorski)
Wpisów: 20
Praktykant
Autor tematu
 

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

 
Dodane : 27/03/2025 8:31 pm
isom
 isom
(@isom)
Wpisów: 5264
Szef wszystkich szefów Moderator Zasłużony dla Forum, Donator 2K19, Donator 2K20
 

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
 
Dodane : 27/03/2025 9:30 pm
(@gregorski)
Wpisów: 20
Praktykant
Autor tematu
 
image

Niestety po wprowadzeniu kodu wyrzuca błąd

Ogólnie umieszczenie kodu w mapie sensorów binarnych tworzy encje stanów wejściowych niedostępnymi, bez względu czy zmienię input_type na input lub holding.

 
Dodane : 28/03/2025 8:37 am
Udostępnij: