Compare commits
2 Commits
8d1b272cce
...
539f7132b7
| Author | SHA1 | Date | |
|---|---|---|---|
| 539f7132b7 | |||
| 326414bd89 |
@@ -200,18 +200,10 @@
|
|||||||
triggers:
|
triggers:
|
||||||
- trigger: sun
|
- trigger: sun
|
||||||
event: sunset
|
event: sunset
|
||||||
offset: '1800'
|
offset: '1500'
|
||||||
id: giardino-on
|
id: giardino-on
|
||||||
- trigger: time
|
- trigger: time
|
||||||
at: '22:00:00'
|
at: '22:00:00'
|
||||||
weekday:
|
|
||||||
- mon
|
|
||||||
- tue
|
|
||||||
- wed
|
|
||||||
- thu
|
|
||||||
- fri
|
|
||||||
- sat
|
|
||||||
- sun
|
|
||||||
id: giardino-off
|
id: giardino-off
|
||||||
conditions: []
|
conditions: []
|
||||||
actions:
|
actions:
|
||||||
@@ -288,3 +280,54 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: input_boolean.cancelletto_video_duration
|
entity_id: input_boolean.cancelletto_video_duration
|
||||||
mode: single
|
mode: single
|
||||||
|
- id: '1759503106971'
|
||||||
|
alias: Luce-Lampada-Salotto
|
||||||
|
description: ''
|
||||||
|
triggers:
|
||||||
|
- trigger: state
|
||||||
|
entity_id:
|
||||||
|
- switch.luce_salotto_ctrl
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
id: Luce-Salotto-on
|
||||||
|
- trigger: state
|
||||||
|
entity_id:
|
||||||
|
- switch.luce_salotto_ctrl
|
||||||
|
from: 'on'
|
||||||
|
to: 'off'
|
||||||
|
id: Luce-Salotto-off
|
||||||
|
conditions: []
|
||||||
|
actions:
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id:
|
||||||
|
- Luce-Salotto-on
|
||||||
|
then:
|
||||||
|
- action: light.turn_on
|
||||||
|
metadata: {}
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: light.luce_salotto
|
||||||
|
else:
|
||||||
|
- action: light.turn_off
|
||||||
|
metadata: {}
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: light.luce_salotto
|
||||||
|
mode: single
|
||||||
|
- id: '1759608901579'
|
||||||
|
alias: Luce-Manuale-Salotto
|
||||||
|
description: ''
|
||||||
|
triggers:
|
||||||
|
- trigger: state
|
||||||
|
entity_id:
|
||||||
|
- switch.luce_salotto_ctrl
|
||||||
|
id: luce-salotto-toogle
|
||||||
|
conditions: []
|
||||||
|
actions:
|
||||||
|
- action: light.toggle
|
||||||
|
metadata: {}
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: light.luce_salotto
|
||||||
|
mode: single
|
||||||
|
|||||||
@@ -149,14 +149,12 @@ actions:
|
|||||||
data:
|
data:
|
||||||
value: 0.00
|
value: 0.00
|
||||||
# check which EVcharge plugs to be activated
|
# check which EVcharge plugs to be activated
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ is_state(use_entity1_var, 'on') }}"
|
value_template: "{{ is_state(use_entity1_var, 'on') }}"
|
||||||
then: # EVcharge entity_1 (eg front) charge is requested
|
then: # EVcharge entity_1 (eg front) charge is requested
|
||||||
sequence:
|
sequence:
|
||||||
|
|
||||||
|
|
||||||
# set stop button to off
|
# set stop button to off
|
||||||
- action: input_boolean.turn_off
|
- action: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
@@ -181,8 +179,6 @@ actions:
|
|||||||
- variables:
|
- variables:
|
||||||
energy1_before: "{{ states(evcharge_entity1_energy_var) | float | round(2) }}"
|
energy1_before: "{{ states(evcharge_entity1_energy_var) | float | round(2) }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Start plug1 and wait until power measured is below input_number.evcharge_no_charge_threshold for 10 minutes = 600 seconds
|
# Start plug1 and wait until power measured is below input_number.evcharge_no_charge_threshold for 10 minutes = 600 seconds
|
||||||
- action: switch.turn_on
|
- action: switch.turn_on
|
||||||
entity_id: !input evcharge_entity1
|
entity_id: !input evcharge_entity1
|
||||||
@@ -245,6 +241,11 @@ actions:
|
|||||||
message: >-
|
message: >-
|
||||||
"EVcharge process on {{ evcharge_entity1_var }} has ended: {{ ( energy1_after - energy1_before ) | round(2) }} kW/h charged"
|
"EVcharge process on {{ evcharge_entity1_var }} has ended: {{ ( energy1_after - energy1_before ) | round(2) }} kW/h charged"
|
||||||
|
|
||||||
|
# reset stop button
|
||||||
|
- action: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.evcharge_pro_stop
|
||||||
|
|
||||||
# wait couple of minutes before starting charge on plug2
|
# wait couple of minutes before starting charge on plug2
|
||||||
- delay: 120
|
- delay: 120
|
||||||
# - delay: 10 # TEST ONLY
|
# - delay: 10 # TEST ONLY
|
||||||
@@ -332,6 +333,12 @@ actions:
|
|||||||
target: "{{ recipient_list_gmail['target'] }}"
|
target: "{{ recipient_list_gmail['target'] }}"
|
||||||
message: >-
|
message: >-
|
||||||
"EVcharge process on {{ evcharge_entity2_var }} has ended: {{ ( energy2_after - energy2_before ) | round(2) }} kW/h charged"
|
"EVcharge process on {{ evcharge_entity2_var }} has ended: {{ ( energy2_after - energy2_before ) | round(2) }} kW/h charged"
|
||||||
|
|
||||||
|
# reset stop button
|
||||||
|
- action: input_boolean.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.evcharge_pro_stop
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
- and:
|
- and:
|
||||||
- condition: template
|
- condition: template
|
||||||
|
|||||||
Reference in New Issue
Block a user