Simple Turn on Lights when Door Contact Opens


#1

1) Give a description of the problem
2 Hue A19 bulbs in a couple lamps. I have a contact sensor on the door. I want the lights to go on when the door sensor changes from close to open, only between sunset and sunrise. Currently, opening the door does not activate the lights.

2) What is the expected behavior?
I want the lights to go on when the door sensor changes from close to open, only between sunset and sunrise.

3) What is happening/not happening?
Door sensor registers as open, but the lights do not go on.
4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(|+1ms|╔Starting piston… (v0.3.105.20180628)|
|—|---|
|+211ms|║╔Subscribing to devices…|
|+238ms|║║Subscribing to Spare Bedroom Door.contact…|
|+314ms|║║Subscribing to Spare Bedroom Lamp North…|
|+315ms|║║Subscribing to Spare Bedroom Lamp South…|
|+316ms|║╚Finished subscribing (117ms)|
|+370ms|║Comparison (time) 80845857 is_between (time) 1531880700000 … (time) 1531827960000 = true (8ms)|
|+371ms|║Time restriction check passed|
|+384ms|╚Piston successfully started (384ms)|
)


#2

Try this


#3

File this under me being an idiot. I realized that on my phone somehow the option to turn off all pistons was on, so that was probably causing the issue. Either way, your way worked perfectly. Thank you!