Hello,
I have an automation that regulates my wallbox according to the battery and PV performance. However, sometimes I have the case that I want to switch off this automation for a certain period of time and simply use the wallbox to charge the car at full power.
I have already done this automation for this and it works well. It switches off the other automations for a certain time and resets everything again.
alias: Wallbox für 4h aktivieren volle
description: Wallbox für 4h aktivieren voll
trigger: []
condition: []
action:
- service: automation.turn_off
target:
entity_id:
- automation.pv_uber_14kw_6a
- automation.pv_uber_17kw_7a
- automation.pv_uber_19kw_8a
- automation.pv_uber_21kw_9a
- automation.pv_uber_24kw_10a
- automation.pv_uber_2800kw_11a
- automation.pv_uber_31kw_12a
- automation.pv_uber_33kw_13a
- automation.pv_uber_35kw_14a
- automation.pv_uber_36kw_16a
- automation.wallbox_ausschalten
data:
stop_actions: true
- service: automation.trigger
data:
skip_condition: true
target:
entity_id:
- automation.pv_uber_36kw_16a
- automation.wallbox_einschalten
- delay:
hours: 2
minutes: 0
seconds: 0
milliseconds: 0
- service: automation.turn_on
target:
entity_id:
- automation.pv_uber_14kw_6a
- automation.pv_uber_17kw_7a
- automation.pv_uber_19kw_8a
- automation.pv_uber_21kw_9a
- automation.pv_uber_24kw_10a
- automation.pv_uber_2800kw_11a
- automation.pv_uber_31kw_12a
- automation.pv_uber_33kw_13a
- automation.pv_uber_35kw_14a
- automation.pv_uber_36kw_16a
- automation.wallbox_ausschalten
data: {}
mode: single
Now I would like to have an area in the dashboard where I can activate the automation with a button (switch button, switches itself back when the time is up) and also a slider where I can set the hours. E.g. Default to 2 hours but can be varied from 1 hour to 5 hours.
Unfortunately I have no idea how to do this. I think sliders with a variable etc. but I don’t really have experience with that and my previous attempts have failed miserably.
greeting
bj