Hi! I’m new to the community and I wanted to contribute to other new HA users.
I wrote this template for the fibaro double switch 2 energy sensors. There are different ways to get the actual switch in home assistant so I leave that to you. I had trouble finding how to get the sensor values from the switch and how to get it in hass.io so I hope it will help someone like me who is new
Copy this under sensor: in your configuration.yaml , replace “your_switch” with the name of your switch and restart home assistant.
I hope I’m copying it in the right way. If I’m not it’s 2 spaces from the edge at the first line.
Appreciate this post is a little old, and Ive managed to get this working with a single entity. However, I’m trying to create a sensor for the total power usage from multiple Fibaro switches. (in my case lights).
The code I have below seems to show as unavailable in the state lookup and within a graph, it shows no values, any idea what I could be doing wrong?
okay, realised im being stupid… well just new to json actually, so I had each entity on a new line, but seems that is not possible here, so ive condensed them all onto a single line and it works… however this isnt currently showing me the right value. (not the sum of all)
Hi! I actually would like only to display in a graph the actual power consumption in watts. Do I understand correctly that I need to create a “dummy” sensor with platform template? I am also using Fibaro.
Sorry for not replying to you. I’ve been off on my ha and just letting it do it’s thing while I’ve been moving so I can’t really help out unfortunately