Page 1 of 1

UserModule Routing Alarm Sensor

Posted: 28 Jun 2015 19:51
by Isaksson
Hello.
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
            }
But what namespace should i use to find all Routing Alarm Sensors?

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"
}
in

Code: Select all

"id":"devices_sensorBinary"
so i tried with

Code: Select all

"enum": "namespaces:devices_sensorBinary:deviceId"
but it did not show that device.

maybe someone has done this already and know the namespace or could point me in the direction where i could find the information.

Re: UserModule Routing Alarm Sensor

Posted: 29 Jun 2015 02:14
by PoltoS
You also need to change in options field the optionLabel in accordance to enum field in schema.

Re: UserModule Routing Alarm Sensor

Posted: 29 Jun 2015 22:39
by Isaksson
Thanks, i will look into that.