Tibber automation "Electricity price"

I copy automation example from Tibber component and past in my automation.yaml, but i face a Configuration invalid CHECK CONFIG.
Invalid config for [automation]: required key not provided @ data[‘action’]. Got None
required key not provided @ data[‘trigger’]. Got None. (See /config/configuration.yaml, line 70). Please check the docs at https://home-assistant.io/components/automation/

- alias: "Electricity price"
  trigger:
    platform: time_pattern
  # Matches every hour at 1 minutes past whole
    minutes: 1
  condition:
    condition: template
    value_template: '{{ float(states.sensor.electricity_price_hamretunet_10.state) > 0.9 * float(states.sensor.electricity_price_hamretunet_10.attributes.max_price) }}'
  action:
   - service: notify.pushbullet
     data:
       title: "Electricity price"
       target: "device/daniel_telefon_cat"
       message: "The electricity price is now {{ states.sensor.electricity_price_hamretunet_10.state }}"

I guess you dont live at “hamretunet_10”, you have copied to much from it so replace the statename with the one from your configuration on both places. I guess you are not Daniel either so you need to change the target device to your phone or whatever target you want.

holy revival!

1 Like