Since yesterday I can do a scheduled upload of the value of my gassensor to Mindergas.nl. But that is not the actual value of the gasmeter itself. Reason is that the sensor is there for about a year..
So time to replace the value in the database (703.357m3) to the real value of the gasmeter. That is 34997,463m3
In the wiki on https://www.domoticz.com/wiki/Domoticz_ ... _URL's#Gas is written:
So I think my command to replace the gasvalue should be:Gas
/json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=USAGE
USAGE= Gas usage in liter (1000 liter = 1 m³)
So if your gas meter shows f.i. 145,332 m³ you should send 145332.
The USAGE is the total usage in liters from start, not f.i. the daily usage.
Code: Select all
http://xxx.xxx.xxx.xxx:8084/json.htm?type=command¶m=udevice&idx=734&nvalue=0&svalue=34997463
And is the result of the JSON-command:
Code: Select all
curl -s “http://xxx.xxx.xxx.xxx:8084/json.htm?type=devices&rid=734Code: Select all
{
"ActTime" : 1548613479,
"AstrTwilightEnd" : "19:15",
"AstrTwilightStart" : "06:27",
"CivTwilightEnd" : "17:55",
"CivTwilightStart" : "07:47",
"DayLength" : "08:55",
"NautTwilightEnd" : "18:36",
"NautTwilightStart" : "07:06",
"ServerTime" : "2019-01-27 19:24:39",
"SunAtSouth" : "12:05",
"Sunrise" : "08:23",
"Sunset" : "17:18",
"app_version" : "4.9700",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "702.857m3",
"CounterToday" : "4.23 m3",
"CustomImage" : 0,
"Data" : "702.857m3",
"Description" : "Via ESP8266 unit 4",
"Favorite" : 1,
"HardwareID" : 21,
"HardwareName" : "Gasmeter",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "82734",
"LastUpdate" : "2019-01-27 19:24:36",
"Name" : "Gasmeter",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Counter Incremental",
"SwitchTypeVal" : 1,
"Timers" : "false",
"Type" : "General",
"TypeImg" : "counter",
"Unit" : 1,
"Used" : 1,
"ValueQuantity" : "",
"ValueUnits" : "",
"XOffset" : "0",
"YOffset" : "0",
"idx" : "734"
}
],
"status" : "OK",
"title" : "Devices"
}

It looks that there is a mix of Counter today and the total counter
I don't understand what I did wrong. Who can explain what's wrong and give a solution?
Thanks in advance!