Created
September 9, 2024 20:58
-
-
Save Ashpork/58392391b8a65e510ed2e05af9833018 to your computer and use it in GitHub Desktop.
An automation to help set the charge rate to 0, when a Predbat holdcharge has been triggered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Predbat - Hold Charge Helper | |
description: "" | |
trigger: | |
- platform: state | |
entity_id: | |
- sensor.solaredge_b1_state_of_energy | |
- input_select.solaredge_command | |
- number.solaredge_i1_storage_charge_limit | |
- predbat.status | |
- switch.predbat_active | |
to: null | |
condition: | |
- condition: state | |
entity_id: switch.predbat_active | |
state: "off" | |
- condition: state | |
entity_id: binary_sensor.predbat_charging | |
state: "on" | |
- condition: numeric_state | |
entity_id: predbat.charge_limit | |
below: 100 | |
- condition: template | |
value_template: >- | |
{{ (float(states('sensor.solaredge_b1_state_of_energy')) - 1)|round(0 | |
,'floor') >= float(states('sensor.predbat_se_0_charge_limit')) }} | |
action: | |
- action: switch.turn_on | |
metadata: {} | |
data: {} | |
target: | |
entity_id: switch.predbat_active | |
- action: retry.actions | |
metadata: {} | |
data: | |
sequence: | |
- action: number.set_value | |
metadata: {} | |
data: | |
value: "0" | |
target: | |
entity_id: number.solaredge_i1_storage_charge_limit | |
mode: restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment