Iam trying to fetch a Routing Alarm Sensor so that i could make something happens when it changes it state.
In this case its a Everspring Flood Detector and my Element is named Alarm Water 21-0-156-5 Everspring.
To fetch a SwitchBinary or Switchmultilevel then i do like this in my config file for the module
Code: Select all
"device": {
"field": "enum",
"datasource": "namespaces",
"enum": "namespaces:devices_switchBinary:deviceId,namespaces:devices_switchMultilevel:deviceId",
"required": true
}
I tried with:
http://ip:8083/ZAutomation/api/v1/namespaces and there i could find the device
Code: Select all
{
"deviceId":"ZWayVDev_zway_21-0-156-5-A",
"deviceName":"Alarm Water 21-0-156-5 Everspring"
}
Code: Select all
"id":"devices_sensorBinary"
Code: Select all
"enum": "namespaces:devices_sensorBinary:deviceId"
maybe someone has done this already and know the namespace or could point me in the direction where i could find the information.