Hello,
I integrated a sensor the follwoing way:
sensor:
- platform: rest
resource: http://xxx
name: Test API
value_template: '{{ value_json.temperatur }}'
device_class: temperature
unit_of_measurement: '°C'
Now i want to add an automation whenever the temperature get above or under let’s say 35 °C.
When it comes to selecting the trigger in the automation I can select the following values:
platform: state
entity_id: sensor.test_api
from:
to:
for:
which doesn’t seem to work for what I am looking for.
When I try to add above or under manually I get the following error:
Message malformed: extra keys not allowed @ data['above']
Do I have to do anything else in the sensorsettings before I can build this automation?
Note:
I also get the notification that this entity doens’t have a unique Id as stated here:
But there doesn’t seem to be a way to add an id within rest. Can this be the problem?
5 posts - 3 participants