Hi,
I created a automation for charging the ebike by smartplug is solar is above 1000 Watt.
I want to turnoff the smartplug if the power is below 1 (the ebike is fully charged).
However the automation is only running for the first trigger…if the solar is producing enought power the smartplug goes on but it will never turn off.
alias: Van Moof opladen
description: van moof opladen zodra zonnepanelen energie opwekken boven de 1000 watt
alias: Van Moof opladen
description: van moof opladen zodra zonnepanelen energie opwekken boven de 1000 watt
trigger:
- platform: numeric_state
entity_id: sensor.soliscloud_simpelzon_ac_output_total_power
alias: When solis (current power) is above 1000
above: 1000
id: charging
- platform: numeric_state
entity_id: sensor.van_moof_bw_2_power
id: stop charging
below: 1
enabled: true
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- if:
- condition: trigger
id: charging
then:
- service: switch.turn_on
data: {}
target:
entity_id: switch.van_moof
- if:
- condition: trigger
id: stop charging
then:
- service: switch.turn_off
data: {}
target:
entity_id: switch.van_moof
mode: single