#Motion Activated lights (need customization)

1 messages · Page 1 of 1 (latest)

uncut bloom
#

Hello,
Just added an automation for some motion activated lights via a blueprint:

alias: Living Room Lights
description: ""
use_blueprint:
  path: homeassistant/motion_light.yaml
  input:
    motion_entity: binary_sensor.smartsensor_occupancy
    light_target:
      entity_id:
        - light.kajplats_e26_cws_globe_1100lm
        - light.kajplats_e26_cws_globe_1100lm_2
        - light.kajplats_e26_cws_globe_1100lm_3
    no_motion_wait: 300

However I would also like to add a condition like 'only after sun is down' I am not sure the met.no weather service I am using has this, but I have seen this condition used in HA in a few places (but don't recall where).

Is this easy to do ?

timber remnant
#

the Sun integration contains information on sunrise/sunset etc you can use for that
editing blueprints you've imported can be a bit tricky, but doable
You can easily add a condition to check if it's "night" to stop the automation running - however do you want that to be the case? if (e.g.) you are walking around the house in the early morning (before sunrise) and then when you leave (after sunrise) the turn off lights part of the automation is also disabled? to fix this you would have to add the condition in the actions part of the automation - before anywhere the lights are turned on

uncut bloom