Hello,
I just set up a simple “test environment” with Phoscon web interface; I have a set Philips outdoor motion sensor to be active “from dusk till down” to switch on an Ikea bulb and to switch it off after a couple of minutes.
The problem is that it works perfectly during nighttime, but during the daytime the bulb is always on, even if it is supposed to be off!
So it seems there is a setting that overrides this rule.
I’m an Hassio newbie so I don’t fully understand how to get it working.
Did you set up this sensor to be active “from dusk till dawn” in Phoscon?
Yes I did!
You should set it up in home assistant and not in Phoscon, if you want people here to help you. Phoscon is a third-party software, so if something doesn’t work there, you need to ask this question to the guys developing Phoscon.
Ok, sorry. I’m a new to Hassio so I’m trying to figure out how the whole thing works!
No worries, I’d recommend reading this page to get started with automations:
For your specific example something like this should work:
I can’t try this as I’m not at home currently.
automation:
- alias: 'Turn outside light on during nighttime'
trigger: #trigger automation when motion sensor detects motion
platform: state
entity_id: binary_senor.motion_sensor_outside #entity id of your motion sensor
to: 'on'
condition: #condition to execute the automation only if sun is below horizon
conditions: state
entity_id: sun.sun
state: 'below_horizon'
action:
service: light.turn_on
entity_id: light.outside_light #entity id of your outdoor light