Auto-discovery of ESPurna devices works, but...

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
eaf2k
Posts: 1
Joined: Wednesday 25 May 2022 15:46
Target OS: -
Domoticz version:
Contact:

Auto-discovery of ESPurna devices works, but...

Post by eaf2k »

I tried flashing my Sonoff TH10 with ESPurna today and enabling MQTT HASS Discovery in it.

This kinda worked in Domoticz, the devices (switch, temperature and humidity sensors) were picked up by auto-discovery, but there are buts...

The switch was picked up as a dimmer of some sort. So now whenever I turn Sonoff ON, I get a "1%" indication in Domoticz.

Temperature and Humidity sensors were picked up according to the logs, but do not show up anywhere in the Domoticz interface. Not in the Devices list, not in the Temperature tab.

Here are the snippets that ESPurna sends when it advertises itself to HomeAssistant:

Code: Select all

homeassistant/sensor/ESPurnaHostName_1/config {"name":"ESPurnaHostName_humidity","state_topic":"ESPurnaHostName/humidity","unit_of_measurement":"%","uniq_id":"ESPURNA-43A3AA_humidity_1","device":{"identifiers":["ESPURNA-43A3AA"],"name":"ESPurnaHostName","sw_version":"ESPURNA 1.14.1 (2.3.0)","manufacturer":"ITEAD","model":"SONOFF_TH"}}
homeassistant/sensor/ESPurnaHostName_0/config {"name":"ESPurnaHostName_temperature","state_topic":"ESPurnaHostName/temperature","unit_of_measurement":"°C","uniq_id":"ESPURNA-43A3AA_temperature_0","device":{"identifiers":["ESPURNA-43A3AA"],"name":"ESPurnaHostName","sw_version":"ESPURNA 1.14.1 (2.3.0)","manufacturer":"ITEAD","model":"SONOFF_TH"}}
homeassistant/switch/ESPurnaHostName_0/config {"name":"ESPurnaHostName","state_topic":"ESPurnaHostName/relay/0","command_topic":"ESPurnaHostName/relay/0/set","payload_on":"1","payload_off":"0","availability_topic":"ESPurnaHostName/status","payload_available":"1","payload_not_available":"0","uniq_id":"ESPURNA-43A3AA_switch_0","device":{"identifiers":["ESPURNA-43A3AA"],"name":"ESPurnaHostName","sw_version":"ESPURNA 1.14.1 (2.3.0)","manufacturer":"ITEAD","model":"SONOFF_TH"}}
Here are the corresponding Domoticz log lines:

Code: Select all

2022-05-25 09:43:58.824  Status: MQTT Auto: discovered: ESPurnaHostName/ESPurnaHostName_humidity (unique_id: ESPURNA-43A3AA_humidity_1)
2022-05-25 09:43:58.925  Status: MQTT Auto: discovered: ESPurnaHostName/ESPurnaHostName_temperature (unique_id: ESPURNA-43A3AA_temperature_0)
2022-05-25 09:43:59.026  Status: MQTT Auto: discovered: ESPurnaHostName/ESPurnaHostName (unique_id: ESPURNA-43A3AA_switch_0)
There is a workaround for ESPurna, since it supports the old way of integrating with Domoticz via domoticz/out/... and domoticz/in topics, but it would be nice if auto-detection worked too.

Please take a look at this and tweak auto-detection, if possible.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest