Hue Motion activation blueprint with illuminance, scene and lights state

I’ve expanded the amazing automation blueprint by @Danielbook to incorporate a couple new features that I needed:

  • When triggered use a specific “scene” (used to just switch lights on at whatever setting they were when they last were open). This is specific to the hue integration as it calls the hue.activate_scene service.
  • Added a condition to not trigger if the lights are already on (so they won’t override any custom scenes selected by the user at the time).
  • The turn-off timer is now attached to the motion “off” event, this will ensure the “switch lights off” timer starts from the last “motion off” event, keeping the lights on as long as there is motion in the room.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Here is the source of the blueprint as a github gist.