UserModule Routing Alarm Sensor

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Isaksson
Posts: 133
Joined: 10 Apr 2013 09:43

UserModule Routing Alarm Sensor

Post 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.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: UserModule Routing Alarm Sensor

Post by PoltoS »

You also need to change in options field the optionLabel in accordance to enum field in schema.
Isaksson
Posts: 133
Joined: 10 Apr 2013 09:43

Re: UserModule Routing Alarm Sensor

Post by Isaksson »

Thanks, i will look into that.
Post Reply