WIP motion light with luminescence
This commit is contained in:
@@ -35,17 +35,6 @@
|
|||||||
light_target:
|
light_target:
|
||||||
device_id: 226779fb30bd68c5a2784ccd762d90e9
|
device_id: 226779fb30bd68c5a2784ccd762d90e9
|
||||||
no_motion_wait: 20
|
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'
|
- id: '1731410549094'
|
||||||
alias: EVcharge_front_charging
|
alias: EVcharge_front_charging
|
||||||
description: ''
|
description: ''
|
||||||
@@ -74,13 +63,3 @@
|
|||||||
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
|
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
|
||||||
domain: switch
|
domain: switch
|
||||||
mode: single
|
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
|
|
||||||
|
|||||||
@@ -87,27 +87,3 @@ actions:
|
|||||||
title: HA template 'heat_save' ERROR
|
title: HA template 'heat_save' ERROR
|
||||||
message: >
|
message: >
|
||||||
Bad Conditions state {{ states( sensor_status ) }}
|
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
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
blueprint:
|
blueprint:
|
||||||
name: Dual Sensor Motion-activated Light Customised with selectable condition after sunset and before sunrise
|
name: Dual Sensor Sunrise / Sunset Motion-activated Light
|
||||||
description: Turn on a light when motion is detected.
|
description: Turn on a light when motion is detected (with Sunrise / Sunset).
|
||||||
domain: automation
|
domain: automation
|
||||||
# source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
|
# 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: Home Assistant Rewised by Tiziano Trabattoni
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
blueprint:
|
blueprint:
|
||||||
name: Dual Sensor Sunset and Luminescence Motion-activated Light
|
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
|
domain: automation
|
||||||
# source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
|
# 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:
|
input:
|
||||||
motion_entity_down:
|
motion_entity_down:
|
||||||
name: Motion Sensor (Sensore Basso)
|
name: Motion Sensor (Sensore Basso)
|
||||||
@@ -33,15 +33,6 @@ blueprint:
|
|||||||
default: on
|
default: on
|
||||||
selector:
|
selector:
|
||||||
boolean:
|
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:
|
trigger_variables:
|
||||||
use_sun: !input sun_condition
|
use_sun: !input sun_condition
|
||||||
@@ -71,10 +62,13 @@ actions:
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ use_sun }}"
|
value_template: "{{ use_sun }}"
|
||||||
sequence:
|
sequence:
|
||||||
|
# we need to use either external luminescence or sunrise and sunset conditions
|
||||||
- if:
|
- if:
|
||||||
- or:
|
- or:
|
||||||
|
# external light is LOW (below Helper daylight_luminescence set value)
|
||||||
- condition: template
|
- 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
|
- condition: sun
|
||||||
after: sunset
|
after: sunset
|
||||||
after_offset: "-01:00:00"
|
after_offset: "-01:00:00"
|
||||||
@@ -96,6 +90,7 @@ actions:
|
|||||||
transition: 10
|
transition: 10
|
||||||
target: !input light_target
|
target: !input light_target
|
||||||
default:
|
default:
|
||||||
|
# the motion light is always active
|
||||||
- if:
|
- if:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
blueprint:
|
blueprint:
|
||||||
name: Dual Sensor Motion-activated Light Customised with selectable condition after sunset and before sunrise
|
name: Dual Sensor Motion-activated Light (no Sunrise / Sunset)
|
||||||
description: Turn on a light when motion is detected.
|
description: Turn on a light when motion is detected (active all time)
|
||||||
domain: automation
|
domain: automation
|
||||||
# source_url: https://github.com/home-assistant/core/blob/dev/homeassistant/components/automation/blueprints/motion_light.yaml
|
# 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: Home Assistant Rewised by Tiziano Trabattoni
|
||||||
|
|||||||
Reference in New Issue
Block a user