Hello,
I’m struggling with a non-working sensor.
It is about a Netatmo Presence camera (outdoor).
Configuration. yaml :
template:
sensor:
- name: Lichtstatus
unique_id: sensor.opritcamera_light_mode
state: >
{{ state_attr('camera.netatmo_oprit', 'light_state') }}
Result: unavailable
What’s wrong ?
Thx
jeffcrum
(Jeff Crum)
2
Please format your yaml properly so we can see spacing.
I formatted the yaml properly. Sorry.
jeffcrum
(Jeff Crum)
4
Template expects a list of sensors. You need a dash on sensor:
template:
- sensor:
- name: Lichtstatus
unique_id: sensor.opritcamera_light_mode
state: >
{{ state_attr('camera.netatmo_oprit', 'light_state') }}
ETA reference link