pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
240 stars 109 forks source link

Update rtl_433_mqtt_hass.py #56

Closed Hoffi848 closed 2 years ago

Hoffi848 commented 2 years ago

Skipped sensors of my weather station WS2032

Log:

homeassistant/sensor/WS2032-21508/WS2032-21508-UTC/config : {"device_class": "timestamp", "name": "WS2032-21508-UTC", "icon": "mdi:clock-in", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/WS2032/21508/time", "unique_id": "WS2032-21508-UTC", "device": {"identifiers": "WS2032-21508", "name": "WS2032-21508", "model": "WS2032", "manufacturer": "rtl_433"}} homeassistant/sensor/WS2032-21508/WS2032-21508-B/config : {"device_class": "battery", "name": "WS2032-21508-B", "unit_of_measurement": "%", "value_template": "{{ float(value|int) * 99 + 1 }}", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/WS2032/21508/battery_ok", "unique_id": "WS2032-21508-B", "device": {"identifiers": "WS2032-21508", "name": "WS2032-21508", "model": "WS2032", "manufacturer": "rtl_433"}} homeassistant/sensor/WS2032-21508/WS2032-21508-T/config : {"device_class": "temperature", "name": "WS2032-21508-T", "unit_of_measurement": "\u00b0C", "value_template": "{{ value|float }}", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/WS2032/21508/temperature_C", "unique_id": "WS2032-21508-T", "device": {"identifiers": "WS2032-21508", "name": "WS2032-21508", "model": "WS2032", "manufacturer": "rtl_433"}} homeassistant/sensor/WS2032-21508/WS2032-21508-H/config : {"device_class": "humidity", "name": "WS2032-21508-H", "unit_of_measurement": "%", "value_template": "{{ value|float }}", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/WS2032/21508/humidity", "unique_id": "WS2032-21508-H", "device": {"identifiers": "WS2032-21508", "name": "WS2032-21508", "model": "WS2032", "manufacturer": "rtl_433"}} homeassistant/sensor/WS2032-21508/WS2032-21508-WD/config : {"name": "WS2032-21508-WD", "unit_of_measurement": "\u00b0", "value_template": "{{ value|float }}", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/WS2032/21508/wind_dir_deg", "unique_id": "WS2032-21508-WD", "device": {"identifiers": "WS2032-21508", "name": "WS2032-21508", "model": "WS2032", "manufacturer": "rtl_433"}} homeassistant/sensor/WS2032-21508/WS2032-21508-WS/config : {"name": "WS2032-21508-WS", "unit_of_measurement": "km/h", "value_template": "{{ value|float }}", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/WS2032/21508/wind_avg_km_h", "unique_id": "WS2032-21508-WS", "device": {"identifiers": "WS2032-21508", "name": "WS2032-21508", "model": "WS2032", "manufacturer": "rtl_433"}} Published WS2032/21508: time, battery_ok, temperature_C, humidity, wind_dir_deg, wind_avg_km_h Skipped WS2032/21508: wind_max_km_h, rain, flags

Summary

Alternatives Considered

Testing Steps

  1. First...
  2. Then...
  3. You should see... (screenshots or console text are helpful)
deviantintegral commented 2 years ago

This was fixed in https://github.com/pbkhrv/rtl_433-hass-addons/pull/50. Thank you!