hello
i’m a pretty new user to HA so i’m still try to figure out how it works
i´m trying to get a simple toggle switch depending on the current electrical price.
as according to
my configure is right now
- 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_ledetvagen_22.state) > 0.9 * float(states.sensor.electricity_price_ledetvagen_22.attributes.max_price) }}'
action:
- service: input_boolean.toggle
data:
entity_id: input_boolean.varmepump
i guess i have done some stupid mistakes trying to get this to work.