Hi community. This is driving me crazy. I have integrated Nordpool electricity prices into HA from HACS. I can see the current price in HA.
I’m trying to do an automation to turn off the car charger if the price goes above a certain point. Since prices are always the cheapest from 0:00 - 6:00, I have it automatically turn on in that period to make sure I can charge the car always, even if the electricity price is above my threshold.
Should be really simple, but it never triggers. I’ve been taking out the variable stuff (price_car) and just plugging in manual numbers for fun. Still doesn’t work (or, at least, it returns “conditions not met” when I click “test” on the first condition in the UI)
alias: EVBox
triggers:
- trigger: numeric_state
entity_id:
- sensor.nordpool_kwh_dk2_dkk_2_095_025
id: expensive
attribute: current_price
above: input_number.price_car
- trigger: numeric_state
entity_id:
- sensor.nordpool_kwh_dk2_dkk_2_095_025
id: cheap
attribute: current_price
below: input_number.price_car
- trigger: time
at: "00:00:00"
id: midnight
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- expensive
- condition: time
after: "06:00:00"
sequence:
- type: turn_off
device_id: 033f0308fe54b1f2e303b95ebe1eec02 (charger)
entity_id: b25737276ae2214d441116e619f0609d (availability)
domain: switch
- conditions:
- condition: trigger
id:
- cheap
- midnight
sequence:
- type: turn_on
device_id: 033f0308fe54b1f2e303b95ebe1eec02
entity_id: b25737276ae2214d441116e619f0609d
domain: switch
mode: single