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