Compare commits

...

2 Commits

Author SHA1 Message Date
539f7132b7 Luce Salutto Automations 2025-10-04 23:19:16 +02:00
326414bd89 EVcharge_PRO: resetting EVcharge_stop 2025-10-04 23:18:41 +02:00
2 changed files with 64 additions and 14 deletions

View File

@@ -200,18 +200,10 @@
triggers:
- trigger: sun
event: sunset
offset: '1800'
offset: '1500'
id: giardino-on
- trigger: time
at: '22:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
id: giardino-off
conditions: []
actions:
@@ -288,3 +280,54 @@
target:
entity_id: input_boolean.cancelletto_video_duration
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

View File

@@ -149,14 +149,12 @@ actions:
data:
value: 0.00
# check which EVcharge plugs to be activated
- if:
- condition: template
value_template: "{{ is_state(use_entity1_var, 'on') }}"
then: # EVcharge entity_1 (eg front) charge is requested
sequence:
# set stop button to off
- action: input_boolean.turn_off
target:
@@ -181,8 +179,6 @@ actions:
- variables:
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
- action: switch.turn_on
entity_id: !input evcharge_entity1
@@ -245,6 +241,11 @@ actions:
message: >-
"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
- delay: 120
# - delay: 10 # TEST ONLY
@@ -332,6 +333,12 @@ actions:
target: "{{ recipient_list_gmail['target'] }}"
message: >-
"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:
- and:
- condition: template