WIP motion light with luminescence

This commit is contained in:
2024-11-15 21:30:34 +01:00
parent 863c0d18c0
commit 85067cb026
7 changed files with 11 additions and 61 deletions

View File

@@ -35,17 +35,6 @@
light_target:
device_id: 226779fb30bd68c5a2784ccd762d90e9
no_motion_wait: 20
- id: '1730726243854'
alias: Luce Automatica Scala Mansarda
description: ''
use_blueprint:
path: homeassistant/motion_light_dual.yaml
input:
motion_entity_down: binary_sensor.presenza_bassa_scala_mansarda_occupancy
motion_entity_up: binary_sensor.presenza_alta_scala_mansarda_occupancy
light_target:
device_id: 702137a6f2c17b89fdb0598f7003743c
no_motion_wait: 20
- id: '1731410549094'
alias: EVcharge_front_charging
description: ''
@@ -74,13 +63,3 @@
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
domain: switch
mode: single
- id: '1731631866160'
alias: test1
description: ''
use_blueprint:
path: homeassistant/motion_light_dual_lux.yaml
input:
motion_entity_down: binary_sensor.presenza_bassa_scala_mansarda_occupancy
motion_entity_up: binary_sensor.presenza_alta_scala_mansarda_occupancy
light_target:
device_id: 702137a6f2c17b89fdb0598f7003743c

View File

@@ -87,27 +87,3 @@ actions:
title: HA template 'heat_save' ERROR
message: >
Bad Conditions state {{ states( sensor_status ) }}
# - if:
# - condition: state
# entity_id: !input window_sensor
# state: "true"
# for:
# hours: 0
# minutes: 0
# seconds: 10
# then:
# - action: climate.set_hvac_mode
# metadata: {}
# data:
# hvac_mode: "off"
# target:
# entity_id: !input climate_target
# else:
# - action: climate.set_hvac_mode
# metadata: {}
# data:
# hvac_mode: heat
# target:
# entity_id: !input climate_target
# mode: single

View File

@@ -1,6 +1,6 @@
blueprint:
name: Dual Sensor Motion-activated Light Customised with selectable condition after sunset and before sunrise
description: Turn on a light when motion is detected.
name: Dual Sensor Sunrise / Sunset Motion-activated Light
description: Turn on a light when motion is detected (with Sunrise / Sunset).
domain: automation
# source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
author: Home Assistant Rewised by Tiziano Trabattoni

View File

@@ -1,9 +1,9 @@
blueprint:
name: Dual Sensor Sunset and Luminescence Motion-activated Light
description: Turn on a light when motion is detected.
description: Turn on a light when motion is detected (with Sunrise / Sunset / Luminance).
domain: automation
# source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
author: Home Assistant Rewised by Tiziano Trabattoni
author: Tiziano Trabattoni
input:
motion_entity_down:
name: Motion Sensor (Sensore Basso)
@@ -33,15 +33,6 @@ blueprint:
default: on
selector:
boolean:
no_motion_wait:
name: Wait time
description: Time to leave the light on after last motion is detected.
default: 30
selector:
number:
min: 10
max: 120
unit_of_measurement: seconds
trigger_variables:
use_sun: !input sun_condition
@@ -71,10 +62,13 @@ actions:
- condition: template
value_template: "{{ use_sun }}"
sequence:
# we need to use either external luminescence or sunrise and sunset conditions
- if:
- or:
# external light is LOW (below Helper daylight_luminescence set value)
- condition: template
value_template: "{{ ( sensor.esterno_luminosita_illuminance_lux | int ) < input_number.daylight_luminescence }}"
value_template: "{{ ( states('sensor.esterno_luminosita_illuminance_lux') | int ) < ( states('input_number.daylight_luminescence') | int ) }}"
# after sunrise and before sunset
- condition: sun
after: sunset
after_offset: "-01:00:00"
@@ -96,6 +90,7 @@ actions:
transition: 10
target: !input light_target
default:
# the motion light is always active
- if:
- condition: trigger
id:

View File

@@ -1,6 +1,6 @@
blueprint:
name: Dual Sensor Motion-activated Light Customised with selectable condition after sunset and before sunrise
description: Turn on a light when motion is detected.
name: Dual Sensor Motion-activated Light (no Sunrise / Sunset)
description: Turn on a light when motion is detected (active all time)
domain: automation
# source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
author: Home Assistant Rewised by Tiziano Trabattoni