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"}}
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)
Please take a look at this and tweak auto-detection, if possible.
Thanks!