Hello,
im a newbee to homeassistant and getting in trouble to access tibber sensor power values.
i have in my configuration.yaml linked the template.yaml by template: !include template.yaml
in my template.yaml i have:
# Template-Sensoren
- sensor:
# Strom-Haus-Leistung-aktuell
- name: Strom-Haus-Leistung-aktuell
unique_id: StromHausLeistungAktuell
unit_of_measurement: W
device_class: power
state_class: measurement
state: >
{{ state.attr('sensor.tibber_pulse_HOMEID_energie', 'Watt') }}
HOMEID is replaced by a string of my adress.
Result:
but the sensor shows in “entwicklerwerkzeuge” developer tools: state unknown.
Test configuration.yaml leads to no errors.
What is wrong with my code? Has anybody an idea?
thanks a lot.
What I further want to do, when the tibber sensor works: have a dashboard for actual power and day-based energy and afterworfs i want to link the energy consumption of tibber with the my anker solix e1600 to set the output power to the actual consumption of tibber.
Has anybody also for this job a solution?!
thank you in advance!