House consumption script help needed
Posted: Friday 15 March 2024 8:53
Hello Community
After 2 days of trial (Yes, I have read the wiki and looked at other scripts in this forum but still can't figure out how to do) with dzVents I give up to make a script for the following:
I have 3 devices, Solar (SE) and Electric meter over MQTT for usage and sold electricity Currently Used (CU) and Currently Returned (CR)).
I want to calculate and display in a virtual device Husets Förbrukning (HF) the value of SE+CU-CR which will give me the total consumption for my house.
With my trials, I either get nothing or "nil value" in the log. I have tried the direct reading of device values and also by the API without success.
The script should be triggred by the update of device CU and this I have get working without problem. But how to get the values from the three meters and update the HF?
Thanks a lot for your help
This is my meters:
After 2 days of trial (Yes, I have read the wiki and looked at other scripts in this forum but still can't figure out how to do) with dzVents I give up to make a script for the following:
I have 3 devices, Solar (SE) and Electric meter over MQTT for usage and sold electricity Currently Used (CU) and Currently Returned (CR)).
I want to calculate and display in a virtual device Husets Förbrukning (HF) the value of SE+CU-CR which will give me the total consumption for my house.
With my trials, I either get nothing or "nil value" in the log. I have tried the direct reading of device values and also by the API without success.
The script should be triggred by the update of device CU and this I have get working without problem. But how to get the values from the three meters and update the HF?
Thanks a lot for your help
This is my meters: