motion Luce-Taverna motion_light with 3 triggers OKJ
This commit is contained in:
141
automations.yaml
141
automations.yaml
@@ -1,4 +1,4 @@
|
||||
- id: "1729875991469"
|
||||
- id: '1729875991469'
|
||||
alias: BagnoOvest-save-energy
|
||||
description: Thermostat will close upon window open
|
||||
use_blueprint:
|
||||
@@ -6,55 +6,55 @@
|
||||
input:
|
||||
window_sensor: binary_sensor.bagnoovest_finestra_contact
|
||||
climate_target: climate.bagnoovest_termosifone
|
||||
- id: "1729887529602"
|
||||
- id: '1729887529602'
|
||||
alias: BagnoPT-save-energy
|
||||
description: ""
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/heat_save.yaml
|
||||
input:
|
||||
window_sensor: binary_sensor.bagnopt_finestra_contact
|
||||
climate_target: climate.bagnopt_termosifone
|
||||
ext_temp_limit: 17
|
||||
- id: "1729887632269"
|
||||
- id: '1729887632269'
|
||||
alias: SoggiornoPT-save-energy
|
||||
description: ""
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/heat_save.yaml
|
||||
input:
|
||||
window_sensor: binary_sensor.soggiornopt_finestrasud_contact
|
||||
climate_target: climate.soggiornopt_termosifonesud
|
||||
ext_temp_limit: 17
|
||||
- id: "1731410549094"
|
||||
- id: '1731410549094'
|
||||
alias: EVcharge_front_charging
|
||||
description: ""
|
||||
description: ''
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_boolean.evcharge_front_start
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 10
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_boolean.evcharge_front_start
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: 10
|
||||
conditions: []
|
||||
actions:
|
||||
- wait_for_trigger:
|
||||
- trigger: time
|
||||
at: input_datetime.evcharge_good_time_start
|
||||
- type: turn_on
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
|
||||
domain: switch
|
||||
- wait_for_trigger:
|
||||
- trigger: time
|
||||
at: input_datetime.evcharge_good_time_end
|
||||
- type: turn_off
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
|
||||
domain: switch
|
||||
- wait_for_trigger:
|
||||
- trigger: time
|
||||
at: input_datetime.evcharge_good_time_start
|
||||
- type: turn_on
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
|
||||
domain: switch
|
||||
- wait_for_trigger:
|
||||
- trigger: time
|
||||
at: input_datetime.evcharge_good_time_end
|
||||
- type: turn_off
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
entity_id: c1f2a5e1b3bc7807a8b291b6fd6dbb31
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: "1731705145404"
|
||||
- id: '1731705145404'
|
||||
alias: Luce Automatica Scala Mansarda
|
||||
description: ""
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/motion_light_dual_lux.yaml
|
||||
input:
|
||||
@@ -62,9 +62,9 @@
|
||||
motion_entity_up: binary_sensor.presenza_alta_scala_mansarda_occupancy
|
||||
light_target:
|
||||
device_id: 702137a6f2c17b89fdb0598f7003743c
|
||||
- id: "1731705400752"
|
||||
- id: '1731705400752'
|
||||
alias: Luce Automatica Scala Taverna
|
||||
description: ""
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/motion_light_dual_lux.yaml
|
||||
input:
|
||||
@@ -73,41 +73,52 @@
|
||||
light_target:
|
||||
device_id: 226779fb30bd68c5a2784ccd762d90e9
|
||||
sun_condition: false
|
||||
- id: "1731953745814"
|
||||
- id: '1731953745814'
|
||||
alias: EVcharge-front-program
|
||||
description: ""
|
||||
description: ''
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_boolean.evcharge_front_start
|
||||
from: "off"
|
||||
to: "on"
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- input_boolean.evcharge_front_start
|
||||
from: 'off'
|
||||
to: 'on'
|
||||
conditions:
|
||||
- condition: time
|
||||
after: input_datetime.evcharge_good_time_start
|
||||
before: input_datetime.evcharge_good_time_end
|
||||
weekday:
|
||||
- sun
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- sat
|
||||
- condition: time
|
||||
after: input_datetime.evcharge_good_time_start
|
||||
before: input_datetime.evcharge_good_time_end
|
||||
weekday:
|
||||
- sun
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- sat
|
||||
actions:
|
||||
- action: switch.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
- wait_template:
|
||||
"{{ states('sensor.presa_smart_1_power') < states('input_number.evcharge_no_charge_threshold')
|
||||
}}"
|
||||
continue_on_timeout: true
|
||||
timeout: 00:30:00
|
||||
- action: switch.turn_off
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
- action: switch.turn_on
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
- wait_template: '{{ states(''sensor.presa_smart_1_power'') < states(''input_number.evcharge_no_charge_threshold'')
|
||||
}}'
|
||||
continue_on_timeout: true
|
||||
timeout: 00:30:00
|
||||
- action: switch.turn_off
|
||||
metadata: {}
|
||||
data: {}
|
||||
target:
|
||||
device_id: 62352ecf274ff68e3ddfbc979406d49d
|
||||
mode: single
|
||||
- id: '1732739522749'
|
||||
alias: Luce Automatica Taverna Garage
|
||||
description: ''
|
||||
use_blueprint:
|
||||
path: homeassistant/motion_light_tris_lux.yaml
|
||||
input:
|
||||
motion_entity_uno: binary_sensor.presenza_alta_scala_mansarda_occupancy
|
||||
motion_entity_due: binary_sensor.presenza_taverna_garage_occupancy
|
||||
motion_entity_tre: binary_sensor.presenza_taverna_lavanderia_occupancy
|
||||
light_target:
|
||||
entity_id: light.taverna_garage
|
||||
sun_condition: false
|
||||
|
||||
@@ -91,7 +91,9 @@ actions:
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data: {}
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2700
|
||||
else:
|
||||
- action: light.turn_off
|
||||
metadata: {}
|
||||
@@ -107,7 +109,9 @@ actions:
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data: {}
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2700
|
||||
else:
|
||||
- action: light.turn_off
|
||||
metadata: {}
|
||||
|
||||
@@ -72,6 +72,7 @@ triggers:
|
||||
hours: 0
|
||||
minutes: 0
|
||||
seconds: !input no_motion_wait
|
||||
id: motion-cleared
|
||||
|
||||
conditions: []
|
||||
|
||||
@@ -99,19 +100,19 @@ actions:
|
||||
id:
|
||||
- motion-detected
|
||||
then:
|
||||
- sequence:
|
||||
- action: light.brightness = 254
|
||||
target: !input light_target
|
||||
data: {}
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data: {}
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2700
|
||||
|
||||
else:
|
||||
- action: light.turn_off
|
||||
target: !input light_target
|
||||
metadata: {}
|
||||
data:
|
||||
transition: 10
|
||||
target: !input light_target
|
||||
|
||||
default:
|
||||
# the motion light is always active
|
||||
- if:
|
||||
@@ -121,14 +122,13 @@ actions:
|
||||
then:
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data: {}
|
||||
data:
|
||||
brightness_pct: 100
|
||||
color_temp_kelvin: 2700
|
||||
|
||||
else:
|
||||
- sequence:
|
||||
- action: light.brightness = 254
|
||||
target: !input light_target
|
||||
data: {}
|
||||
- action: light.turn_on
|
||||
target: !input light_target
|
||||
data: {}
|
||||
- action: light.turn_off
|
||||
target: !input light_target
|
||||
data: {}
|
||||
|
||||
mode: single
|
||||
|
||||
Reference in New Issue
Block a user