You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not clearly said in the documentation that you can control an 'input_boolean' as if it were a 'switch'. However, the domains "switch", "input_boolean", "binary_sensor" are all allowed according to the code.
The problem is that SwitchController class methods on, off and toggle are hard coded to the services "switch/turn_on" and so on.
For example:
Regarding that SwitchControkker can be used for input_boolean and binary_sensor (not sure why I support this one since it cannot be modified) is in here.
Regarding the call service, it could be changed to homeassistant.toggle service which is a generic service that toggles all these entities. I will change this for next release.
This has been fixed in ControllerX v4.0.0. Now you can use switch controllers for anything that turns on/off and toggle (alert, automation, cover, input_boolean, light, media_player, script, switch).
Bug report
Description
It is not clearly said in the documentation that you can control an 'input_boolean' as if it were a 'switch'. However, the domains "switch", "input_boolean", "binary_sensor" are all allowed according to the code.
The problem is that SwitchController class methods on, off and toggle are hard coded to the services "switch/turn_on" and so on.
For example:
This works only for the switch domain.
I made this modification to make them work, but there might be some better way:
AppDaemon app configuration
The text was updated successfully, but these errors were encountered: