Page 1 of 1

Pass energy values to a virtual meter in cFos Wallbox

Posted: Monday 20 February 2023 0:42
by HaSch
I created a virtual meter HTTP input in my cFos Power Brain wallbox and would like to feed it with values from my T211 P1-Smartmeter. They are already in Domoticz on a Raspberry Pi. If I send the following command via terminal the values appear in the virtual meter:
curl -i -X POST -H 'Content-Type: application/json' -d '{ "model": "HTTP input", "import_wh": 12345, "export_wh": 23456, "voltage": [231, 232, 233], "current": [10001, 10002, 10003], "power_va": 2000 }' --user admin:1234abcd 'http://<IP address>/cnf?cmd=set_ajax_meter&dev_id=M4'
How can I do it in Domoticz?

Re: Pass energy values to a virtual meter in cFos Wallbox

Posted: Monday 20 February 2023 8:39
by waltervl
You can use DzVents for this with function openURL. See for more info wiki page https://www.domoticz.com/wiki/DzVents:_ ... P_requests

Here is an example of sending a json with counter data from Domoticz to a gas monitoring tool viewtopic.php?p=291657#p291657