Hello, I’m trying to create a template sensor from an attribute of a sensor to place it on an history graph. I’ve seen there are several topics but I can’t make it work.
Sensor seems to work ok, extracting json attributes. Template sensor desn’t seem to work. The status is a text that can assume different values and I would like to make a sensor to use it in history graph.
If I try
{{ state_attr('sensor.testcam','status') }}
in the template editor it seems ok, it return for example offline, but no sensor is created if I look up for testcam_online