Yes try to copy and past the id in to be sure you have the correct one. You could also try to and select in ambient NO - My Ambient Light Sensor is not affected by the Lights. Then when your light turns ON make sure your Ambient Light - High Lux Value is above your lux sensor reading + sum.
So i think maybe i confused you or maybe i am just not following what you said, probably the later lol.
Here are the sensors i have in play for this room:
garage house door sensor
garage door sensor
motion sensor 1
motion sensor 2
Garage Lights Times of day Sensor (Helper on from 11a-6p)
Groups in use:
Garage Door Group - Any On (either door being open turns the group on - Sensor 1 and 2)
Garage Motion Group - Any On (either motion active turns the group on - Sensor 3 and 4)
Garage Motion Group - All On (group is on only if both motions are active - Sensor 3 and 4)
Group 2 is what i am calling my Occupancy sensor and is not used in the triggers as i do not want a single motion to turn on the lights.
Triggers In use:
Garage Door Group - Any On
Garage Motion Group - All On
Garage Lights Times of day Sensor
Maybe Iām using the wrong terms. For what i am calling occupancy sensor (group 2), i want to use it to only keep the lights On that were already turned on by the existing triggers in the original blueprint.
Thatās really the only change or addition i really need to figure out.
I have the lights working as far as turning on and off with the extra (off) lights included just fine, though having the extra lights come back on within a set time would be nice option to have.
I thought about the bypass but the problem with the bypass is if this sensor is active when i come into the room by opening the door or similar, it keeps the entire automation from running. I was trying the Bypass option 3.
I didnāt want to use option 1 as i didnāt want my āoccupancyā sensor to turn anything on.
Blockquote
What you need is to group all three + occupancy sensor into one trigger group (a binary sensor group):
Add your two door sensors. (not the group)
Add your motion group (if this is what works for your birds, use the group rather than the individual motion sensors). If I got this wrong whatever you have that works for your motion sensors.
Add your schedule (this must be a binary sensor so it can be added to the group as shown above).
The new occupancy sensor.
I understand what you are telling me to do to make a group.
What i am not following is, how this new group ā¦
I think i just had an epiphany?
Iāve been reading and re-reading as i have been typing and i think i might have just understood what you were saying.
Are you saying when i group as you mentioned, the occupancy sensor will not trigger the lights on because the bee in the hive method requires the door to open first?
So it would not trigger until its occupied right?
I would have this group setup so that any of the entities being on would make the group be on correct?
I think that would work and take care of all my needs.
It would be very nice if this could be added into this blueprint at some point. It would make this easier, or at least more obvious.
Or maybe you could document this scenario and add it into the instructions or description for now.
I still want to work on adding the occupancy into this. Right now when i turn my addition on, it goes into a loop that matches the timer. Ill message you directly on this.
Iām having a bit of an issue (iām not sure if maybe itsās a bug or iām doing something wrong).
Hereās my setup: (Unfortunately, because iām ānewā I canāt put screenshots in my response)
Physical setup:
one thirdreality zigbee light in the washroom
one thirdreality motion, lux sensor night light in master bedroom next to the washroom
What I wanted:
When the occupancy sensor on the thirdreality night light triggers to occupied + itās night time + the thirdreality washroom light bulb is currently off (will play with lux sensor values later), the washroom light turns on for x seconds
Sun Elevation:
Enable the sun option: checked off
Sun Elevation Falling: -1.5 degrees (default)
Sun Elevation Rising: -4 degrees (default)
State control:
Enable State Control Option: checked off
Activation State: OFF state checked off
Control entity: FL1: Master WR 1 (HA LG)
Iām also using adaptive lighting integration to change light values based on sun/day if thatās relevant.
My issue is:
After adding the āState controlā section, the washroom light and night light constantly alternate turning off and on until I disable the automation.
This is not good to have all 3 triggers. We need to group this into one group and then use that group as the trigger.
Letās start here first.
Create a group helper, for this example and for our reference lets call it Garage Trigger Groupā¦
Go to Settings > Devices & Services > Helpers.
Click ā+ Create Helperā and choose Group > Binary sensor group.
Set a Name for your new binary sensor group Garage Trigger Group.
Add the following members;
Garage house door sensor
Garage door sensor
Garage Motion Group - All On
Garage Lights Times of day Sensor
Click Submit.
Now remove all your triggers from Trigger Sensor - Binary Sensors - Schedule and add only one trigger Garage Trigger Group.
Now the automation will work correctly and trigger when
Any door is open
Garage Motion Group - All On
Garage Lights Times of day Sensor
Now your āoccupancyā sensor.
You would like
So for this we could say
If the Primary light is ON and any motion detected the occupancy sensor = ON.
NOTE: Depending on your birds triggering a motion sensor when the light is ON may keep it ON, but you know best so letās work with this. You may decide to just use one motion sensor where your birds donāt trigger it but you will need to work this out. Note - I donāt think this will work well but try and see what happens.
For this we will create a new template binary sensor for what you call your āoccupancyā sensor.
Go to Settings > Devices & Services > Helpers.
Click ā+ Create Helperā and choose Template > Binary sensor.
Set a Name for your new binary sensor. For this example letās call it Garage Occupancy Sensor
In the State template field, paste the code below.
Replace light.your_primary_light with the actual entity ID of your light.
Replace binary_sensor.motion1 & binary_sensor.motion2 with the actual entity ID of your motion sensors.
Set the Device class if you want this binary sensor to behave like a occupancy sensor, set occupancy.
Optionally, select a Device to link this sensor to. Leave it blank if not needed.
{{ is_state('light.your_primary_light', 'on') and (
is_state('binary_sensor.motion1', 'on') or
is_state('binary_sensor.motion2', 'on')
) }}
Now you have what you call occupancy sensor.
All we need to do now is add this Garage Occupancy Sensor to the Garage Trigger Group.
If you unsure how to do this see this FAQ click here
Then in your Garage Trigger Group you will have the following members.
Garage house door sensor
Garage door sensor
Garage Motion Group - All On
Garage Lights Times of day Sensor
Garage Occupancy Sensor
That is it your all done Test it out and see if it works for you!
I think it wont work well but test it out and see. I would use the bee in the hive sensor. See if your doors are open then the trigger will be ON you only need something when the doors are closed and you trigger your Garage Motion Group - All On. Then we know your in the garage.
Now if you find that your Garage Occupancy Sensor doesnāt work like it should try creating a Bee In The Hive Template Binary Sensor, click here
Door Group: Any door open = ON & all doors closed = OFF. Garage Motion Group - All On: Both motion sensors ON = ON & any motion sensor OFF = OFF.
So you could use the Bee In The Hive blueprint and then use the toggle helper (toggle helper you have in the bee in the hive blueprint) in bypass option 1 (click here) or you could create a template binary sensor (click here) and add it to the Garage Trigger Group.
For this you would use your Door Group as your door because you have 2 doors. And for your motion sensor you would use your Garage Motion Group - All On. Then if your doors are closed and your Garage Motion Group - All On turns ON it will turn ON the Bee In The Hive Template Binary Sensor. When you open the door to leave it will turn it OFF. So it only works when the doors are closed and it detects motion when your 2 motion sensor are ON because your using the Garage Motion Group - All On. It then knows your in the garage and until you open a door to leave it will stay ON. A true occupancy sensor.
If you use the blueprint, use the toggle helper in bypass option 1 and your Garage Trigger Group to the following members.
Garage house door sensor
Garage door sensor
Garage Motion Group - All On
Garage Lights Times of day Sensor
If you create this template binary sensor you will then modify your Garage Trigger Group to the following members.
Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā</>ā and paste code in there.
In the State Control you donāt use the light in there and is why it is turning ON and OFF. See the automation can only work when the light is OFF so when it OFF the automation turns it ON but then it can only work when the light is OFF so the automation turns the light OFF but it works when the light is OFF so the automation turn the light ON but⦠and on and on it goes.
Remove your light from State Control and disable this option. Make sure you remove the light from State Control so it wont trigger in the background and be stopped. Like this
It has a small blocking section that allows you to select the entity (such as the light) and type in the state such as āonā and it seemed to work for me.
This way, for example, if the washroom light was already on (someone manually turned on the light, for example); the automation wouldnāt trigger. This made it so if I turned on the washroom light myself manually (like through the HA app), the automation wouldnāt trigger thus not taking over the washroom light, and turning it off when the timer reached your set amount of seconds (so if I turned the light on manually and I was in the shower for example, it wouldnāt turn the light off on me because someone walked past the motion sensor in the bedroom which made the automation trigger).
All that does is stop the automation from running. So if you had it set like that when the automation triggered it would also stop and you would have the time delay to then turn OFF like a 1 shot.
It would be the same if you put the light in bypass option 1 but I wouldnāt recommend that. You could use a toggle helper if you like in option 1 and then use the bypass auto OFF in X time. Turn ON the toggle helper that turns ON the light keeping it ON and then it turns the toggle helper OFF for you that will turn the light OFF if the motion sensor is clear or once it becomes clear so your not in the dark.
So I have a Bathroom Humidity Exhaust Fan blueprint that has an automation link. I use that when having a shower and it keeps the lights ON. You should be able to get everything working perfectly.
I also have a Manual Control Status Tracker blueprint that you can use so if you manually turn ON the light in the UI or by the switch it will toggle a toggle helper and you then use that in the bypass not the light. It also has a auto OFF for you.