#Want to make automation to keep motion/night lights off until 10PM

1 messages · Page 1 of 1 (latest)

ionic glen
#

They are Third Reality Nightlight/MotionSensor Plugs. I have made successful automation to have them trigger at night and activate scenes and turn off when I set.

I think it has some default settings to turn on the night light and timer. I wanted to create some kind of automation, script to prevent it from turning on until lets say 10PM.

Does this look right? Or could someone point me in the right direction.

I am basically trying to over-ride I guess the default settings. I haven't even installed 3R App. Just added these right Zigbee HA and upgraded firmware. My other automations work great at 10PM+

#

here is an example that works for the light after 10 that i like. My Goal is to have them do nothing until this automation I have listed below starts.

ocean pond
#

You added a condition to check if the time is before 10pm, you want to check if it's after 10pm. I presume you want it to continue to work until morning? If so, you need to do something like:

- or:
   - is after 10pm
   - is before 6am
ionic glen
#

i think this?

#

this might have worked

ionic glen
#

this is also seems to work lol hope this helps others

vivid lark
#

Looking at your screenshots, I have a suggestion in regards to waiting to turn off the lights when motion clears. I think you may run into an issue where you enter the area, lights turn on, leave the area, motion clears, wait time starts, but if you re-enter the area while the wait time is still running, the automation could potentially turn off the lights when you don't want it to; I don't think the wait time is going to get re-set/canceled.
I use timer entities for the actual wait time. But, I also set multiple triggers with trigger_ids for a bit more control over what happens.
If a light is turned on (from any source), start the timer.
If the light is turned off, cancel the timer (if it is running).
If motion is detected, turn on the light if it is not already on. Also, reset the timer if it is running, but don't start it yet if it is not running. (This is what handles entering and re-entering the area.)
If motion clears, start the timer.
When timer elapses, turn off the lights.

#

Using trigger_ids, the Then Do (Actions) section is handled with a Choose block based on the respective trigger_id. This method also allows you to group multiple automations within one. This one, for example, handles all possible methods of automating the bathroom lights. (There are actually ten different triggers that also include handling the door sensor and "enabling/disabling" the timer mode with an input_boolean (toggle) entity.)