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 }}"