Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Have the ability to define different tap-actions for each state of the button in the YAML
Describe alternatives you've considered
Using Scripts with conditional checks, however I'd like to have conditional confirmation/lockout depending on the state and avoid extra scripts
Using different actions (tap / double tap etc.) for each service call, however it's not as intuitive for the end user
Using a binary toggle, however it doesn't provide monitoring feedback of status
Additional context
For a server on/off button. State provided by ping, shutdown by SSH and power on by smart switch / WoL (if it works).
Providing both actions and state monitoring (red/green indicator) on a button is very intuitive for the user (and cool)
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like Have the ability to define different tap-actions for each state of the button in the YAML
Describe alternatives you've considered Using Scripts with conditional checks, however I'd like to have conditional confirmation/lockout depending on the state and avoid extra scripts Using different actions (tap / double tap etc.) for each service call, however it's not as intuitive for the end user Using a binary toggle, however it doesn't provide monitoring feedback of status
Additional context For a server on/off button. State provided by ping, shutdown by SSH and power on by smart switch / WoL (if it works). Providing both actions and state monitoring (red/green indicator) on a button is very intuitive for the user (and cool)
An example configuration YAML could be:
Thank you for the amazing mod!