Created
February 2, 2023 21:29
-
-
Save mehstg/ef724e06f3f7440cb32b7205517f91ef to your computer and use it in GitHub Desktop.
Home Assistant automation - Pause battery discharge when car is charging in Octopus Intelligent slot
This file contains hidden or 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: "Battery: Intelligent Octopus pause GivEnergy whilst charging" | |
description: "Whilst in an Octopus Intelligent slot, and EV is charging, disable discharge on GivEnergy inverter" | |
trigger: | |
- platform: state | |
entity_id: | |
- binary_sensor.octopus_intelligent_slot | |
- platform: numeric_state | |
entity_id: sensor.wallbox_portal_charging_power | |
above: 0.1 | |
condition: [] | |
action: | |
- if: | |
- condition: and | |
conditions: | |
- condition: state | |
entity_id: binary_sensor.octopus_intelligent_slot | |
state: "on" | |
- condition: numeric_state | |
entity_id: sensor.wallbox_portal_charging_power | |
above: 0.1 | |
then: | |
- if: | |
- condition: state | |
entity_id: switch.givtcp_<redacted>_enable_discharge | |
state: "on" | |
then: | |
- type: turn_off | |
device_id: 452a438d93f30b121827e7342f7c9156 | |
entity_id: switch.givtcp_<redacted>_enable_discharge | |
domain: switch | |
else: | |
- if: | |
- condition: state | |
entity_id: switch.givtcp_<redacted>_enable_discharge | |
state: "off" | |
then: | |
- type: turn_on | |
device_id: 452a438d93f30b121827e7342f7c9156 | |
entity_id: switch.givtcp_<redacted>_enable_discharge | |
domain: switch | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment