pbkhrv / rtl_433-hass-addons

Collection of Home Assistant add-ons that use rtl_433
236 stars 108 forks source link

Bresser 6-in-1 - Rain Sensor Missing #196

Closed aket82aus closed 4 months ago

aket82aus commented 4 months ago

The problem

rtl_433 MQTT Auto Discovery is not creating a rain sensor. From my limited understanding it looks as though it may not be receiving the data, even though it is receiving the data for all other sensors. rtl_433 is definitely receiving the data and outputting it to MQTT.

I have supplied rtl_433 and rtl_433_mqtt_autodiscovery log snippets in the addon log messages section.

Any assistance is appreciated.

MQTT Explorer screenshot: mqtt_explorer

What addon are you reporting the bug for?

rtl_433_mqtt_autodiscover

What is the addon version?

0.8.2

What type of MQTT Broker are you using?

Home Assistant Mosquitto MQTT Broker

Addon log messages

rtl_433 log snippet:

{"time" : "2024-07-07T00:18:07.455407+1000", "enabled" : 13, "since" : "2024-07-07T00:15:57+1000", "frames" : {"count" : 15, "fsk" : 0, "events" : 0}, "stats" : []}
{"time" : "2024-07-07T00:18:44.152871+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 83, "sensor_type" : 1, "wind_max_m_s" : 2.500, "wind_avg_m_s" : 2.500, "wind_dir_deg" : 338, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:18:44.152871+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 83, "sensor_type" : 1, "wind_max_m_s" : 2.500, "wind_avg_m_s" : 2.500, "wind_dir_deg" : 338, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:18:56.152844+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 2.500, "wind_avg_m_s" : 2.500, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:18:56.152844+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 2.500, "wind_avg_m_s" : 2.500, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:19:08.152989+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 83, "sensor_type" : 1, "wind_max_m_s" : 2.400, "wind_avg_m_s" : 2.400, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:19:08.152989+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 83, "sensor_type" : 1, "wind_max_m_s" : 2.400, "wind_avg_m_s" : 2.400, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:19:56.153675+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 2.600, "wind_avg_m_s" : 2.600, "wind_dir_deg" : 338, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:19:56.153675+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 2.600, "wind_avg_m_s" : 2.600, "wind_dir_deg" : 338, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:20:08.153606+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 2.600, "wind_avg_m_s" : 2.600, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:20:08.153606+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 2.600, "wind_avg_m_s" : 2.600, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:20:56.154816+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 2.500, "wind_avg_m_s" : 2.300, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:20:56.154816+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 2.500, "wind_avg_m_s" : 2.300, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:21:08.154816+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 2.200, "wind_avg_m_s" : 2.000, "wind_dir_deg" : 0, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:21:08.154816+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 2.200, "wind_avg_m_s" : 2.000, "wind_dir_deg" : 0, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:21:56.156078+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 2.400, "wind_avg_m_s" : 2.200, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:21:56.156078+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.400, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 2.400, "wind_avg_m_s" : 2.200, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:22:08.156542+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 3.400, "wind_avg_m_s" : 3.200, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:22:08.156542+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 3.400, "wind_avg_m_s" : 3.200, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:22:20.156957+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.500, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 3.800, "wind_avg_m_s" : 3.600, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:22:20.156957+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.500, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 3.800, "wind_avg_m_s" : 3.600, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:23:08.158514+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.500, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 1.800, "wind_avg_m_s" : 1.600, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:23:08.158514+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "battery_ok" : 1, "temperature_C" : 15.500, "humidity" : 82, "sensor_type" : 1, "wind_max_m_s" : 1.800, "wind_avg_m_s" : 1.600, "wind_dir_deg" : 22, "uv" : 44.400, "startup" : 1, "flags" : 0, "mic" : "CRC"}
{"time" : "2024-07-07T00:23:20.158989+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 3.000, "wind_avg_m_s" : 2.900, "wind_dir_deg" : 292, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:23:20.158989+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 3.000, "wind_avg_m_s" : 2.900, "wind_dir_deg" : 292, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:24:08.160563+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 3.100, "wind_avg_m_s" : 3.000, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}
{"time" : "2024-07-07T00:24:08.160563+1000", "protocol" : 172, "model" : "Bresser-6in1", "id" : 860321798, "channel" : 0, "sensor_type" : 1, "wind_max_m_s" : 3.100, "wind_avg_m_s" : 3.000, "wind_dir_deg" : 338, "rain_mm" : 484.800, "startup" : 1, "flags" : 1, "mic" : "CRC"}

rtl_433_mqtt_autodiscovery log snippet:

s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
mqtt found in this Home Assistance instance.
Starting rtl_433_mqtt_hass.py...
[2024-07-08T10:04:02+1000] INFO:root:Enabling debug logging
[2024-07-08T10:04:02+1000] INFO:root:Discovering all devices
[2024-07-08T10:04:02+1000] DEBUG:root:MQTT Client: Starting Loop
[2024-07-08T10:04:02+1000] DEBUG:paho.mqtt.client:Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b''
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Received CONNACK (0, 0)
[2024-07-08T10:04:03+1000] INFO:root:MQTT connected: Connection Accepted.
[2024-07-08T10:04:03+1000] INFO:root:Subscribing to: rtl_433/+/events
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending SUBSCRIBE (d0, m1) [(b'rtl_433/+/events', 0)]
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Received SUBACK
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Received PUBLISH (d0, q0, r1, m0), 'rtl_433/9b13b3f4-rtl433/events', ...  (257 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:MQTT message: "{\"time\":\"2024-07-05T15:08:18.956480+1000\",\"model\":\"Bresser-6in1\",\"id\":860321798,\"channel\":0,\"battery_ok\":1,\"temperature_C\":18.8,\"humidity\":68,\"sensor_type\":1,\"wind_max_m_s\":5.0,\"wind_avg_m_s\":4.3,\"wind_dir_deg\":0,\"uv\":44.4,\"startup\":1,\"flags\":0,\"mic\":\"CRC\"}"
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-UTC/config:{"device_class": "timestamp", "name": "Timestamp", "entity_category": "diagnostic", "enabled_by_default": false, "icon": "mdi:clock-in", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/time", "unique_id": "Bresser-6in1-0-860321798-UTC", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m2), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-UTC/config'', ... (430 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/device_automation/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-CH/config:{"automation_type": "trigger", "type": "button_short_release", "subtype": "button_1", "topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/channel", "platform": "mqtt", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m3), 'b'homeassistant/device_automation/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-CH/config'', ... (351 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-B/config:{"device_class": "battery", "name": "Battery", "unit_of_measurement": "%", "value_template": "{{ float(value) * 99 + 1 }}", "state_class": "measurement", "entity_category": "diagnostic", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/battery_ok", "unique_id": "Bresser-6in1-0-860321798-B", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m4), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-B/config'', ... (484 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-T/config:{"device_class": "temperature", "name": "Temperature", "unit_of_measurement": "\u00b0C", "value_template": "{{ value|float|round(1) }}", "state_class": "measurement", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/temperature_C", "unique_id": "Bresser-6in1-0-860321798-T", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m5), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-T/config'', ... (467 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-H/config:{"device_class": "humidity", "name": "Humidity", "unit_of_measurement": "%", "value_template": "{{ value|float }}", "state_class": "measurement", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/humidity", "unique_id": "Bresser-6in1-0-860321798-H", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m6), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-H/config'', ... (441 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-GS/config:{"device_class": "wind_speed", "name": "Wind max", "unit_of_measurement": "km/h", "value_template": "{{ (float(value|float) * 3.6) | round(2) }}", "state_class": "measurement", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/wind_max_m_s", "unique_id": "Bresser-6in1-0-860321798-GS", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m7), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-GS/config'', ... (477 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-WS/config:{"device_class": "wind_speed", "name": "Wind Average", "unit_of_measurement": "km/h", "value_template": "{{ (float(value|float) * 3.6) | round(2) }}", "state_class": "measurement", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/wind_avg_m_s", "unique_id": "Bresser-6in1-0-860321798-WS", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m8), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-WS/config'', ... (481 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-WD/config:{"name": "Wind Direction", "unit_of_measurement": "\u00b0", "value_template": "{{ value|float }}", "state_class": "measurement", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/wind_dir_deg", "unique_id": "Bresser-6in1-0-860321798-WD", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m9), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-WD/config'', ... (429 bytes)
[2024-07-08T10:04:03+1000] DEBUG:root:homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-uv/config:{"name": "UV Index", "unit_of_measurement": "UV Index", "value_template": "{{ value|int }}", "state_class": "measurement", "state_topic": "rtl_433/9b13b3f4-rtl433/devices/Bresser-6in1/0/860321798/uv", "unique_id": "Bresser-6in1-0-860321798-uv", "device": {"identifiers": ["Bresser-6in1-0-860321798"], "name": "Bresser-6in1-0-860321798", "model": "Bresser-6in1", "manufacturer": "rtl_433"}, "force_update": "true"}
[2024-07-08T10:04:03+1000] DEBUG:paho.mqtt.client:Sending PUBLISH (d0, q0, r1, m10), 'b'homeassistant/sensor/Bresser-6in1-0-860321798/Bresser-6in1-0-860321798-uv/config'', ... (413 bytes)
[2024-07-08T10:04:03+1000] INFO:root:Published Bresser-6in1-0-860321798: time, channel, battery_ok, temperature_C, humidity, wind_max_m_s, wind_avg_m_s, wind_dir_deg, uv
[2024-07-08T10:04:03+1000] INFO:root:Skipped Bresser-6in1-0-860321798: sensor_type, startup, flags
[2024-07-08T10:05:03+1000] DEBUG:paho.mqtt.client:Sending PINGREQ
[2024-07-08T10:05:03+1000] DEBUG:paho.mqtt.client:Received PINGRESP
[2024-07-08T10:06:03+1000] DEBUG:paho.mqtt.client:Sending PINGREQ
[2024-07-08T10:06:03+1000] DEBUG:paho.mqtt.client:Received PINGRESP

Additional information

No response

aket82aus commented 4 months ago

I had made an error with my output mqtt:// line in rtl_433.conf. All working now.