Open kthemall opened 1 year ago
I am facing the same problem.
How to obtain the actual power consumption as a sensor value in Homekit?
Hello @kthemall, maybe this is of interest to you:
I installed a small power plant with a maximum power of 600 W (german so-called "Balkonkraftwerk") via a Fritz!DECT 210 power socket.
To display the actual generated power I wrote a small program, which runs periodically on my Raspberry Pi (cronjob). The program talks to my Fritz!Box directly to get the actual values of temperature and power and saves this values to a textfile on the Raspberry Pi.
In homebridge I use the plugin "Homebridge Temperature Humidity Sensor File" (homebridge-temperature-humidity-sensor-file v1.1.0) to read the textfiles and to display its values as sensor data.
Since there is no energy-sensor I am mis-using the "humidity-sensor" calculating the actual power as a percent of maximum power 600 W - so a value of 50% reads as 300 W.
If you are interested in this solution please let me know.
Cheers, Marc
Hi Marc
sounds similar to my equipment (Balkonkraftwerk with fritz 210)
So i am very interested in your program. how do you get information out of your fritz box?
thx tom
Hi Tom,
I created an own repository "MarcBisping/homebridge-fritzdect-energy" so we can continue discussion there.
Marc
Describe the bug config for dect200
"active": true, "name": "FRITZ!DECT 210 Photovoltaik", "ain": "xxxxxxxxxxxxxx", "energy": true, "startValue": 1, "temperature": true, "accType": "switch"
momentary power consumption is not shown anywhere. is this by design?
Expected behavior power consumption should be seen in the devices (like temperature)
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.