wez3 / domoboard

A dashboard for Domoticz
GNU General Public License v3.0
35 stars 11 forks source link

Distance sensor doesn't work in Develop branch #57

Closed Sateetje closed 7 years ago

Sateetje commented 7 years ago

I've a distance sensor in Domoticz to measure the high of the salt level of my water softner.

This works in the Master branch (added as top_tile). But in the development branch no data is showed.

Btw: same with Wind sensor and TempHumBaro.

wez3 commented 7 years ago

I've modified something today on this. Could you return me the information thats returned by the Domoticz API when requesting information about your distance sensor? /json.htm?type=devices&rid=

Sateetje commented 7 years ago

Distance:

{ "ActTime" : 1483860533, "ServerTime" : "2017-01-08 08:28:53", "Sunrise" : "08:47", "Sunset" : "16:50", "result" : [ { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CustomImage" : 0, "Data" : "28.0 cm", "Description" : "", "Favorite" : 1, "HardwareID" : 8, "HardwareName" : "MySensors", "HardwareType" : "MySensors Gateway USB", "HardwareTypeVal" : 41, "HaveTimeout" : false, "ID" : "00000601", "LastUpdate" : "2017-01-08 08:24:58", "Name" : "Ontharder zout", "Notifications" : "true", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "Distance", "SwitchTypeVal" : 0, "Timers" : "false", "Type" : "General", "TypeImg" : "visibility", "Unit" : 1, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "187" } ], "status" : "OK", "title" : "Devices" }

Sateetje commented 7 years ago

This works: Zout = 187, spinner, Data

Maybe it is an idea to read the Data field when nothing specified?

wez3 commented 7 years ago

"Maybe it is an idea to read the Data field when nothing specified?" This is already the case.

We've done yesterday some updates on develop. Can you check whether your devices (distance sensor) work with this update?

Sateetje commented 7 years ago

No data is shown. When I add ,Data, the right data is shown.

wez3 commented 7 years ago

I've tested the Wunderground (which you posted earlier). It works here with this line: Temperatuur WU = 174, fire, Temp

Also make sure to debug your config here :)

Sateetje commented 7 years ago

Distance sensor is working again.