epierre wrote:
if there is a parameter presented by domoticz I can show that difference, what is your device so I can see ?
I already send a DevDoor for a DooLock device in DZ.
In Domoticz it is "SwitchType" : "Contact", see below:
- Spoiler: show
- {
"ActTime" : 1441812953,
"ServerTime" : "2015-09-09 17:35:53",
"Sunrise" : "07:07",
"Sunset" : "20:10",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Closed",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "RFXCOM",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0A38F3E",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2015-09-09 13:59:54",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 15,
"Name" : "Garagedeur",
"Notifications" : "true",
"PlanID" : "0",
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 5,
"Status" : "Closed",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "Contact",
"SwitchTypeVal" : 2,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "contact",
"Unit" : 10,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "46"
}
],
"status" : "OK",
"title" : "Devices"
}
But in the Gateway it is a switch:
{"params":[{"value":"0","key":"Status"}],"name":"Garagedeur","type":"DevSwitch","id":"46","room":"Switches"}
Same here, I already send a DevSmoke for a Smoke Detector device in DZ.
have you some device that are not mapped these way ? if so, please tell me your names on your DZ,
In Domoticz, my smoke detector is "SwitchType" : "Smoke Detector"
- Spoiler: show
- {
"ActTime" : 1441813136,
"ServerTime" : "2015-09-09 17:38:56",
"Sunrise" : "07:07",
"Sunset" : "20:10",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Normal",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 2,
"HardwareName" : "RFXCOM",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : false,
"HaveGroupCmd" : false,
"HaveTimeout" : false,
"ID" : "CCFF00",
"LastUpdate" : "2015-08-28 11:46:49",
"MaxDimLevel" : 0,
"Name" : "Rookalarm beneden",
"Notifications" : "false",
"PlanID" : "0",
"Protected" : true,
"ShowNotifications" : true,
"SignalLevel" : 1,
"Status" : "Normal",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "KD101 smoke detector",
"SwitchType" : "Smoke Detector",
"SwitchTypeVal" : 5,
"Timers" : "false",
"Type" : "Security",
"TypeImg" : "smoke",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "54"
}
],
"status" : "OK",
"title" : "Devices"
}
I see that you have mapped this to:
Code: Select all
{"params":[{"value":"0","key":"Armable"},{"value":"1","key":"Ackable"},{"value":"1","key":"Armed"},{"value":0,"key":"Tripped"}],"name":"Rookalarm beneden","type":"DevSmoke","id":"54","room":"Switches"}
So Armable = 0, which is good. Perhaps because "Ackable" = 1 this triggers it to be presented in the interface with a "Armed" button?
If you leave both parameters out, just is done in the
example API on Imperhome, both the smoke sensor and the motion detector appear without "Arm" button in the App. This is how it is done in the example API:
Code: Select all
{
"id": "dev11",
"name": "Smoke sensor",
"type": "DevSmoke",
"room": "roomID2",
"params": [
{
"key": "Armed",
"value": "1"
},
{
"key": "Tripped",
"value": "0"
}
]
},
]