tom_l
21
The condition is stopping it. You just tuned off the input boolean so this will be false:
condition:
condition: state
entity_id: input_boolean.enable_evse # you have to create this helper, see below
state: 'on'
The idea behind the input boolean is you turn it on to enable automatic control.
You turn it off to disable automatic control.
It was not meant to be a manual control. That still your switch.
So go back to this and use the two (switch and input boolean) that way:
alias: EVSE overload
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.power
above: '4000'
id: 'off'
- platform: numeric_state
entity_id: sensor.power
below: '800'
id: 'on'
condition:
condition: state
entity_id: input_boolean.enable_evse # you have to create this helper, see below
state: 'on'
action:
- service: "switch.turn_{{ trigger.id }}"
target:
entity_id: switch.evse
mode: single
input_boolean:
enable_evse:
name: Enable EVSE Charging
icon: mdi:car
Input boolean on = automatic control. Input boolean off = manual control.
switch.evse is your manual control when the input boolean is off.
Tony2k
(Antonio)
22
I’d like to have only one toggle to manually swich the relay and also enable the automation (that have to control always the overloading).
Tony2k
(Antonio)
23
I used two automations (+1 for the timer) and now seems that manual and overload control shoud work together:
automation:
alias: EVSE toggle
description: ''
trigger:
- platform: state
entity_id: input_boolean.toggle_ev
to: 'on'
id: 'on'
- platform: state
entity_id: input_boolean.toggle_ev
to: 'off'
id: 'off'
condition: []
action:
- service: switch.turn_{{ trigger.id }}
target:
entity_id: switch.evse
mode: single
automation:
alias: EVSE overload
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.power
above: '4000'
id: 'off'
- platform: numeric_state
entity_id: sensor.power
below: '850'
id: 'on'
condition:
- condition: state
entity_id: input_boolean.toggle_ev
state: "on"
action:
- service: switch.turn_{{ trigger.id }}
target:
entity_id: switch.evse
mode: single
automation:
alias: EVSE timer
description: ''
trigger:
- platform: time
at: '02:00'
id: 'on'
- platform: time
at: '09:00'
id: 'off'
condition: []
action:
- service: homeassistant.turn_{{ trigger.id }}
entity_id: input_boolean.toggle_ev
mode: single