I have a switch that is currently working to execute an activity.
I want the switch to be set to on or off based on the current state of the activity. Then I want to use the switch to execute the activity if the switch if off and turn off the activity if the switch is on.
Currently when the switch is set to ‘on’ the activity is executed. When I set the switch to ‘off’ the activity is not turned off. I tried the -1 and activity number. Neither work.
Not sure what I am missing from the code below in configuration.yaml.
I’m at a loss here… I have the code below and I can get the activity to execute and turn on the switch. When I turn the switch to off, nothing happens.
I set the remote to be hidden so that it would continue to auto discover but not show the default remotes status on the home page. Could this be causing an issue?
Figured out my issue. On the value_template I was using the activity ID instead of the activity name. Once I switched it, the whole thing worked as I wanted it to.