Add feature to disable/enable buttons by MQTT - #1322
Conversation
For example it useful when automation enable light on door opening and you trying to turn on light manually. And you touch switch exactly after light turned on by automation and you mistakenly turn off lights.
|
Does nobody needs feature for temporary disable buttons? |
|
Wouldn't .../button/0/set be useful to have to "push" the button? There is floodwindow thing implemented for relays (5 switches max over 3 seconds window). Would it make sense to configure that instead? If automation switches relay on, it can block things based on relative time since the last switch just setting switch limit to 1. See RELAY_FLOOD_*. This may be exposed as a setting. |
|
I don't need set button/relay state. I need feature for temporary disable button actions. I don't try root./button/0/{action,relay,mode}/set. Is it documented? Maybe it is what I want. |
I meant this part. Isn't the goal to protect relay state from changing too often? And config topic are just an example, they do not exist yet :) I just wonder if it is worth to use simple /set just for this. And note that you do not disable other button actions, like reset |
|
Is this feature coming? |
Added ability to disable/enable buttons by MQTT.
For example it useful when automation enable light on door opening and you trying to turn on light manually. And you touch switch exactly after light turned on by automation and you mistakenly turn off lights.