Last active
July 14, 2023 14:58
-
-
Save Haasie/907b950cb12a91aa472ebb3a901c77ef to your computer and use it in GitHub Desktop.
A blueprint for home-assistant to turn on and off your inverter when your dynamic price goes below or above zero
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
blueprint: | |
name: "Energy: Negative Price, Inverter Off" | |
description: Turn off the inverter when the electricity price is below 0. | |
domain: automation | |
input: | |
electricity_price_entity: | |
name: Electricity Price Entity | |
description: The entity ID of the electricity price sensor. | |
selector: | |
entity: | |
domain: sensor | |
pv_inverter: | |
name: Inverter power controller | |
description: The entity ID of the inverter to regulate power | |
selector: | |
entity: | |
domain: number | |
above_price: | |
name: Above price selector. | |
description: Select the price whish will be the treshold to turn your inverter. | |
default: 0.00 | |
selector: | |
number: | |
min: -0.50 | |
max: 0.99 | |
unit_of_measurement: € | |
mode: box | |
below_price: | |
name: Below price selector. | |
description: Select the price whish will be the treshold to turn OFF your inverter. | |
default: 0.00 | |
selector: | |
number: | |
min: -0.50 | |
max: 0.99 | |
unit_of_measurement: € | |
mode: box | |
trigger: | |
- platform: numeric_state | |
entity_id: !input electricity_price_entity | |
below: !input below_price | |
id: below | |
- platform: numeric_state | |
entity_id: !input electricity_price_entity | |
above: !input above_price | |
id: above | |
action: | |
- choose: | |
- conditions: | |
- condition: trigger | |
id: | |
- below | |
sequence: | |
- service: number.set_value | |
data: | |
value: "0" | |
target: | |
entity_id: !input pv_inverter | |
- conditions: | |
- condition: trigger | |
id: | |
- above | |
sequence: | |
- service: number.set_value | |
data: | |
value: "100" | |
target: | |
entity_id: !input pv_inverter | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment