Hi,
I have always used the Shelly MQTT plugin in Domoticz but now I'm forced to use the Domoticz "MQTT Auto Discovery Client Gateway" since 1 of my Shelly 2.5 (roller/cover mode) died after 4 years or so, so I replaced it with a new Shelly Plus 2PM.
Since the Shelly Plus 2PM is a gen2 device I had to look for an other solutions to get it to work, so I found "ShellyTeacher 4 Domoticz".
First of all I want to thank Alexander Nagy (enesbcs) for all of his work!
But I have an issue.....
My setup (test):
Raspberry Pi4b 8GB version, SSD M2 drive
Bullseye, fully updated/upgraded
Domoticz version: Version 2023.2
The issue:
Running the ShellyTeacher4Domo.py works fine, the Shelly Plus 2pm is detected, in Domoticz I also see incoming messages to "MQTT Auto Discovery" in logging:
Code: Select all
2023-08-09 11:56:17.139 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-temperature-0/shellyplus2pm-XXXX Temperature 0 (unique_id: shellyplus2pm-XXXX-temperature-0)
2023-08-09 11:56:17.240 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-0/shellyplus2pm-XXXX Voltage 0 (unique_id: shellyplus2pm-XXXX-0-voltage)
2023-08-09 11:56:17.341 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-0/shellyplus2pm-XXXX Power 0 (unique_id: shellyplus2pm-XXXX-0-power)
2023-08-09 11:56:17.442 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-0/shellyplus2pm-XXXX Energy 0 (unique_id: shellyplus2pm-XXXX-0-energy)
2023-08-09 11:56:17.543 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-temperature-1/shellyplus2pm-XXXX Temperature 1 (unique_id: shellyplus2pm-XXXX-temperature-1)
2023-08-09 11:56:17.643 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/shellyplus2pm-XXXX Voltage 1 (unique_id: shellyplus2pm-XXXX-1-voltage)
2023-08-09 11:56:17.744 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/shellyplus2pm-XXXX Power 1 (unique_id: shellyplus2pm-XXXX-1-power)
2023-08-09 11:56:17.845 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/shellyplus2pm-XXXX Energy 1 (unique_id: shellyplus2pm-XXXX-1-energy)
2023-08-09 11:56:17.946 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-roller-0/shellyplus2pm-XXXX Roller 0 (unique_id: shellyplus2pm-XXXX-roller-0)
2023-08-09 11:56:18.049 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-roller-pos/shellyplus2pm-XXXX Roller Pos (unique_id: shellyplus2pm-XXXX-roller-pos)
2023-08-09 11:56:28.974 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX/homeassistant Relay 0 (unique_id: shellyplus2pm-XXXX-0)
2023-08-09 11:56:29.075 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX/homeassistant Input 0 (unique_id: shellyplus2pm-XXXX-0-input)
2023-08-09 11:56:29.177 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-temperature-0/shellyplus2pm-XXXX Temperature 0 (unique_id: shellyplus2pm-XXXX-temperature-0)
2023-08-09 11:56:29.277 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-0/shellyplus2pm-XXXX Voltage 0 (unique_id: shellyplus2pm-XXXX-0-voltage)
2023-08-09 11:56:29.378 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-0/shellyplus2pm-XXXX Power 0 (unique_id: shellyplus2pm-XXXX-0-power)
2023-08-09 11:56:29.479 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-0/shellyplus2pm-XXXX Energy 0 (unique_id: shellyplus2pm-XXXX-0-energy)
2023-08-09 11:56:29.580 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/homeassistant Relay 1 (unique_id: shellyplus2pm-XXXX-1)
2023-08-09 11:56:29.681 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1-input/homeassistant Input 1 (unique_id: shellyplus2pm-XXXX-1-input)
2023-08-09 11:56:29.782 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-temperature-1/shellyplus2pm-XXXX Temperature 1 (unique_id: shellyplus2pm-XXXX-temperature-1)
2023-08-09 11:56:29.883 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/shellyplus2pm-XXXX Voltage 1 (unique_id: shellyplus2pm-XXXX-1-voltage)
2023-08-09 11:56:29.984 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/shellyplus2pm-XXXX Power 1 (unique_id: shellyplus2pm-XXXX-1-power)
2023-08-09 11:56:30.084 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-1/shellyplus2pm-XXXX Energy 1 (unique_id: shellyplus2pm-XXXX-1-energy)
2023-08-09 11:56:30.186 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-roller-0/shellyplus2pm-XXXX Roller 0 (unique_id: shellyplus2pm-XXXX-roller-0)
2023-08-09 11:56:30.288 Status: MQTT Auto Discovery: discovered: shellyplus2pm-XXXX-roller-pos/shellyplus2pm-XXXX Roller Pos (unique_id: shellyplus2pm-XXXX-roller-pos)
2023-08-09 11:57:00.210 MQTT Auto Discovery: Light/Switch/Switch (shellyplus2pm-XXXX Roller 0)
2023-08-09 11:57:00.217 MQTT Auto Discovery: Light/Switch/Switch (shellyplus2pm-XXXX Roller Pos)
But when I go to the device tab I can only see the device "Roller 0" and "Roller Pos" but not devices are being created for the voltage, power, energy or temperature.
In the "mqtt_templates_gen2.txt" file I can see that these values are identified.
What am I doing wrong?
How can I fix this?
Hope somebody can help.
Thanks!