domoboard
domoboard copied to clipboard
Water smart charts doesn't work
Please see pictures.
Config: [water] [[display_components]] components = top_tiles[1], domoticz_smart_charts[1], domoticz_smart_charts[2], domoticz_smart_charts[3], domoticz_smart_charts[4] [[top_tiles]] [[[1]]] Momenteel = 385, shower Vandaag = 356, shower, CounterToday, " l" Totaal = 356, shower, Data, " l" [[domoticz_smart_charts]] [[[1]]] Water afgelopen 24 uur = 356, day, water [[[2]]] Water afgelopen 8 dagen = 356, week, water [[[3]]] Water afgelopen maand = 356, month, water [[[4]]] Water afgelopen jaar = 356, year, water
Domoticz API { "ActTime" : 1484937372, "ServerTime" : "2017-01-20 19:36:12", "Sunrise" : "08:37", "Sunset" : "17:08", "result" : [ { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "Counter" : "119.174 m3", "CounterToday" : "210 Liter", "CustomImage" : 0, "Data" : "119.174 m3", "Description" : "", "Favorite" : 1, "HardwareID" : 8, "HardwareName" : "MySensors", "HardwareType" : "MySensors Gateway USB", "HardwareTypeVal" : 41, "HaveTimeout" : false, "ID" : "4601", "LastUpdate" : "2017-01-20 19:33:15", "Name" : "Water", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "RFXMeter counter", "SwitchTypeVal" : 2, "Timers" : "false", "Type" : "RFXMeter", "TypeImg" : "counter", "Unit" : 0, "Used" : 1, "ValueQuantity" : "", "ValueUnits" : "", "XOffset" : "0", "YOffset" : "0", "idx" : "356" } ], "status" : "OK", "title" : "Devices" }
hi @Sateetje its a bit difficult to test this, i don't have an water device to test this on. but i think i know where to look for it. is it possible to do the following: open you're graph in domoticz from water and do an inspect in the network so you can see the call of it. copy that call like /json.htm?type=graph&sensor=uv&idx=98&range=year but in you're case it could end with method=
after that go to that url en past the screenhost in here incl. the url that you copied. With that info i could implement an special function for water :)
Like this?
/json.htm?type=graph&sensor=counter&idx=356&range=day
day and week are bar charts in Domoticz, Month and year are line.
0.003 = 3 liter
JSON: { "ValueQuantity" : "", "ValueUnits" : "", "result" : [ { "d" : "2017-05-09 20:00", "v" : "0.003" }, { "d" : "2017-05-09 22:00", "v" : "0.048" }, { "d" : "2017-05-09 23:00", "v" : "0.074" }, { "d" : "2017-05-10 06:00", "v" : "0.003" }, { "d" : "2017-05-10 07:00", "v" : "0.015" }, { "d" : "2017-05-10 08:00", "v" : "0.073" }, { "d" : "2017-05-10 09:00", "v" : "0.035" }, { "d" : "2017-05-10 10:00", "v" : "0.004" }, { "d" : "2017-05-10 12:00", "v" : "0.006" }, { "d" : "2017-05-10 13:00", "v" : "0.021" }, { "d" : "2017-05-10 15:00", "v" : "0.020" }, { "d" : "2017-05-10 17:00", "v" : "0.002" }, { "d" : "2017-05-10 18:00", "v" : "0.014" }, { "d" : "2017-05-10 19:00", "v" : "0.169" }, { "d" : "2017-05-10 20:00", "v" : "0.007" } ], "status" : "OK", "title" : "Graph counter day" }
strange that should work. did you try to have just one graph to check if that works?
Yes, checked it. Still no graph
The text ''Power (Watt)" is on the right side of the graph.