Hey Home Assistant, turn off solar panels when the price is negative
This is something I have started using in my Home Assistant as Automation. When the price is below 1ct, I just turn off my solar invertor (which I've added a "switch" entity to). The yaml:
alias: Tibber Below Low price
description: Turns off the inverter if the price is too low
trigger:
- platform: numeric_state
entity_id:
- sensor.electricity_price_thuis
below: 1
condition: []
action:
- service: notify.mobile_app_iphone_s_matej
metadata: {}
data:
message: (BELOW) Price {{trigger.to_state.state}}
- service: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.inverter_switch
mode: single
Of course, don't forget to turn it back on when the price is above 1ct with an inverted automation ;)
This is how it looks like