Pass energy values to a virtual meter in cFos Wallbox
Posted: Monday 20 February 2023 0:42
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?
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?