AdyRock / com.ady.button_plus

GNU General Public License v3.0
2 stars 3 forks source link

OnOff capability, only follow the state #96

Open oh2th opened 7 months ago

oh2th commented 7 months ago

Is your feature request related to a problem? Please describe. For a device that can not be controlled On or Off, it would be useful that the button action for that capability could be turned off.

Describe the solution you'd like I would like to be able disable action when a button's device capability is onoff. I'e do not control the target device when button is pressed. Only follow the state of the target device (read-only).

Additional context I have a Shelly switch that monitors if the Sauna heater is turned on or off, this state can not be set to the device as the sauna heater is not controllable remotely by the Shelly.

Workaround

  1. Configure the button as an App Button
  2. Create flow to trigger on button release, check the state of the followed device state, reset the button to the state it should be in. Screenshot 2024-02-10 at 6 42 32