A: The switch must have a state that goes ON when you switch / press it, and then when you switch / press it again the state goes OFF. If you have a push button that goes ON/OFF in one press and when you press it again it will go ON/OFF then I have a different Blueprint called Push Button Relay - Contactor. It works the same as this blueprint but the trigger is different.
Q: Can I put the same entity into the normally open & normally closed fields?
A: No, you must only choose one field, normally open or normally closed per entity.
How can this handle dual input switches?
Switch 1: Shelly running in detached mode, this works fine by itself
Switch 2: EP1 showing presence as (Detected/Clear)
Then I have 2 separate inputs that I would like to control them from.
The first is a wall switch that is exposed to HA, with ON/OFF.
The second is mmWave presence, this reports Detected/Clear.
At the moment I have your blueprint working only with the switch, but without the mmWave.
Using the blueprint without adding lots of extra logic would be great as I will need to replicate it for each room.
In the sensor light blueprint, your MMWave would be the trigger and your wall switch would be the by-pass. For by-pass selection you would select “Enable the By-pass - Turn lights ON”. Then you would just add all your lights in as entities.
Code Update - This is a major code and blueprint update. It will break your existing blueprint. Hopefully this is a lot cleaner & will survive a HA restart. Sorry it had to be done.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Some work is required in this upgrade. Please see below on the steps when upgrading. It is easy and not a breaking change.
New Feature
Switch - You can add as many switches as you like. If any switch is ON it will turn ON the main entity. All switches must be OFF to turn OFF the main entity.
Why multiple switches? I use this to control my WLED lights transformer. WLED has a feature for adding in a relay but you have to wire it all up etc. What I do is add all my lights (In WLED it is call segments) into the switch. In the main entity I add my smart plug (plug my transformer into smart plug) and the main switch for WLED. The transformer feeds the LED’s not the ESP32 and I have another cable (USB C) supplying the ESP32 so everything is available in HA 24/7. Now when any light is turned ON, it turns on the main entities that are my smart plug (transformer) and WLED main switch and the lights turn ON. When all the light are turned OFF the transformer and WLED main switch is turned OFF.
Why do this? Because even though the LED lights are turned OFF they still draw power. This way they only draw power when they are turned ON
You can do other things with it but this is one example.
STEPS REQUIRED WHEN UPGRADING
1 - Upgrade your blueprint.
2 - Go into your automation (the ones using this blueprint). You will see the switch has a missing input.