Hi
I try to run rain sensor, and i can't understand how it works
i use json command to update sensor.
So
Sensor idx = 10
Day 1
no rain
What should i Send to domoticz to report no rain ?
http://localhost:8080/json.htm?type=com ... svalue=0;0 ?
8:00 AM Start raining. 1 mm rain.
I should send
http://localhost:8080/json.htm?type=com ... alue=100;1 ?
next the rain is raining and milimiters increasae ,so i send
http://localhost:8080/json.htm?type=com ... alue=200;2 ?
http://localhost:8080/json.htm?type=com ... alue=300;3 ?
http://localhost:8080/json.htm?type=com ... alue=400;4 ?
after hour - now is 9:00, what shoult i sent to reset rain rate ?
http://localhost:8080/json.htm?type=com ... svalue=0;4 ?
or again
http://localhost:8080/json.htm?type=com ... alue=400;4 ?
and if rain starts falling at 9:30 i what should i send ?
http://localhost:8080/json.htm?type=com ... alue=100;5 ?
or
http://localhost:8080/json.htm?type=com ... alue=500;5 ? (500 because last rain rate was 400) ?
And next day.
if the rain doesnt raining the correct message will be
http://localhost:8080/json.htm?type=com ... svalue=0;6 ?
or
http://localhost:8080/json.htm?type=com ... svalue=0;5 ?
how get the corrent counter value ? i try
http://localhost:8080/json.htm?type=devices&rid=10 and receive
"ActTime" : 1562052122,
"AstrTwilightEnd" : "00:00",
"AstrTwilightStart" : "00:00",
"CivTwilightEnd" : "21:44",
"CivTwilightStart" : "03:30",
"DayLength" : "16:38",
"NautTwilightEnd" : "22:60",
"NautTwilightStart" : "02:15",
"ServerTime" : "2019-07-02 09:22:02",
"SunAtSouth" : "12:37",
"Sunrise" : "04:18",
"Sunset" : "20:56",
"app_version" : "4.10717",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "0",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 19,
"HardwareName" : "WeatherStation",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "140F2",
"LastUpdate" : "2019-07-02 09:21:45",
"Name" : "WeatherStation Rain Guage",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"Rain" : "0",
"RainRate" : "0",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "TFA",
"Timers" : "false",
"Type" : "Rain",
"TypeImg" : "rain",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "10"
}
],
"status" : "OK",
"title" : "Devices"
}
The Data, Rain, RainRate is 0.
i made some tests and cant figure out how it works
