I am trying to connect my Shelly 1 to home MQTT. I cannot get the Shelly to communicate the state. I think I am missing something in the Shelly’s will topic and will message. I have tried blank for both and the same as in my config . Currently have
shellies/shellyswitch-944C83/relay/0 In my topic. Don’t know what message to put or even if I am doing it right.
Thanks for the script. I have the one shelly working now thank to the config provided. I am also going to work on adding your script and get the discover working. I plan on adding several more and a little work up front will help out in the end.