nplan / HomeButtons

140 stars 9 forks source link

Nice to have: trigger MQTT autodiscovery / configuration menu #24

Closed mcarbonne closed 1 year ago

mcarbonne commented 1 year ago

Currently, there is no way to trigger an MQTT autodiscovery message. It would be nice to have a dedicated "config" menu, allowing to :

This weekend, after an update of my MQTT broker, I had some issues with home assistant so I had to remove some devices. It appears that there is currently no easy way to trigger the autodiscovery. Looking at the code, I found only 2 methods:

nplan commented 1 year ago

The config menu is a great idea. Will implement in the future.

The autodiscovery message can actually be triggered this way:

  1. Hold any button for 10s to enter setup
  2. Immediately press a button to exit the setup
  3. The autodiscovery message will be sent the next time network connects (either button press or timer wakeup)
nplan commented 1 year ago

Settings menu added in v2.1.0. The discovery message can be triggered by restarting the device. It's published on the next button press after the restart.