Hello.
I have tried to search for solutions to get my attribute sensor working.
but I really can’t get the value I want.
Frist of all I use the eForsyning integration from HACS.
Here is the sensor list with attributes:
and I have marked the attribute I need to be shown.
Here is my template sensor:
- sensor:
- name: "Heat Price Actual Year"
state: '{{ states.sensor.eforsyning_amount_remaining.attributes["data"][1] }}'
if I do like this:
- sensor:
- name: "Heat Price Actual Year"
state: '{{ states.sensor.eforsyning_amount_remaining.attributes["data"] }}'
I get the whole list from the “data”:
can anyone here help me ?