Hi.
I have a device with attributes. I have a helper sensor that extracts one of those attributes.
sensor:
- platform: template
sensors:
spotprice:
value_template: "{{ state_attr('sensor.opennem_qld', 'price') }}"
friendly_name: "QLD Price"
unit_of_measurement: "$/MWh"
I have an automation that I am trying to trigger off that helper sensor, but it doesn’t work. I’m not sure how to debug?
alias: Stop charging at $50
description: ""
triggers:
- entity_id:
- sensor.spotprice
above: 50
trigger: numeric_state
for:
hours: 0
minutes: 0
seconds: 1
conditions: []
actions:
- type: turn_off
device_id: 51c582b0c75bfa04e7d8af6bb14d0109
entity_id: switch.shellypro2_ec62608fa31c_switch_1
domain: switch
mode: single