If I turn on a lamp via a physical smart switch, I also want to turn on a virtual switch.
For helpers I created a virtual (bolean) switch. But I don’t see this among the entities.
What am I doing wrong?
Make sure you are looking for it in the right place… based on your description, the entity created by the Helper will be under the input_boolean
domain not the switch
domain.
How, do I create a switch in a ‘Switch domain’
I use input_booleans as dashboard indicators for when I turn on switch, and/or for when I turn on a switch to let me know whether the switch also has a current flow.
Are you sure the input_boolean isn’t appropriate for your task? What do you want your virtual switch to accomplish?
Every 2 hours it is checked whether the outside temperature is below a certain value, after which the WiFi in the garden must be switched off.
But if I manually switch on this WiFi using a switch on my dashboard, this is not allowed. That’s why I wanted to have a virtual switch that switches parallel to the dashboard switch.
If I understand you correctly, then you should use the Input Boolean. Create an automation that is triggered by the state of the boolean and switches the WiFi.
Then, add the state of the Input Boolean into your WiFi automation as a condition, so that the automation will not turn the WiFi off if the boolean is “on”.
that is the problem. how do i make the status of the bolaan input switch change.
I don’t understand what you are asking…
If I manually turn on the WiFi, the input helper should also go from off to on.
And I don’t know how to do this.
What do you mean by “manually”?
If you mean through physical controls, you will need to get familiar with the trigger’s context.
If you mean using the dashboard… use the Input boolean helper as your user-facing entity on the dashboard. Then set up an automation that is triggered by the state of the Input boolean and changes the switch
entity’s state using the switch.turn_on
and switch.turn_off
actions. The necessary branched logic can be handled using an If/Then or Choose action; or through the use of Templates, whichever you prefer.