Code : Tout sélectionner
commandArray = {}
debug=true
if (devicechanged['niveau cuve'] == 'SwitchTypeVal=3' ) then
commandArray['SendEmail']='niveaucuve#3#xxxxxx@xxx.fr'
end
return commandArray
Code : Tout sélectionner
{
"ActTime" : 1489831054,
"ServerTime" : "2017-03-18 10:57:34",
"Sunrise" : "06:56",
"Sunset" : "18:57",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "3 /4",
"CounterToday" : "0 /4",
"CustomImage" : 0,
"Data" : "3 /4",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 27,
"HardwareName" : "rfxcom",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveTimeout" : false,
"ID" : "05F5",
"LastUpdate" : "2017-03-18 10:39:41",
"Name" : "niveau cuve",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 8,
"SubType" : "RFXMeter counter",
"SwitchTypeVal" : 3,
"Timers" : "false",
"Type" : "RFXMeter",
"TypeImg" : "counter",
"Unit" : 0,
"Used" : 1,
"ValueQuantity" : "Count",
"ValueUnits" : "/4",
"XOffset" : "0",
"YOffset" : "0",
"idx" : "677"
}
],
"status" : "OK",
"title" : "Devices"
}en Blockly je n ai pas trouvé le moyen non plus .
voici les infos sur la réalisation du capteur :viewtopic.php?f=7&t=2992
merci