This page last changed on Jan 26, 2014 by nostep.

I see occasional and confusing data from the smoke detector. Here's the story.

I have a standard z-way setup on Raspberry Pi. I was able to "include" a First Alert ZCOMBO and get data from it. I wrote up a simple js to read some door switches and a Lowes siren. I added the ability for the smoke detector to trigger the siren and it works great. Here is the data when the smoke detector is triggered (note detector is device 12):

[2014-01-26 15:59:32.041] SETDATA devices.12.instances.0.commandClasses.113.data.V1event.type = 12 (0x0000000c)
[2014-01-26 15:59:32.041] SETDATA devices.12.instances.0.commandClasses.113.data.V1event.level = 255 (0x000000ff)
[2014-01-26 15:59:32.041] SETDATA devices.12.instances.0.commandClasses.113.data.V1event = Empty

This is the code when it stops it test (and goes quiet):

[2014-01-26 15:59:32.060] SETDATA devices.12.instances.0.commandClasses.113.data.V1event.type = 12 (0x0000000c)
[2014-01-26 15:59:48.630] SETDATA devices.12.instances.0.commandClasses.113.data.V1event.level = 0 (0x00000000)
[2014-01-26 15:59:48.630] SETDATA devices.12.instances.0.commandClasses.113.data.V1event = Empty

The V1event is the alarm, and a "level" of 255 means it went off. "type = 12" seems to exist upon testing the detector.

Now, here are strange codes which show up from time to time without warning (and setting off my siren).

[2014-01-26 17:31:11.456] SETDATA devices.12.instances.0.commandClasses.113.data.V1event.type = 13 (0x0000000d)
[2014-01-26 17:31:11.456] SETDATA devices.12.instances.0.commandClasses.113.data.V1event.level = 255 (0x000000ff)
[2014-01-26 17:32:10.914] SETDATA devices.12.instances.0.commandClasses.113.data.V1event = Empty

I cannot figure out how to test for V1event.type = 12. I only want to set off the siren when type is 12 and level =255, but "type" always comes back as undefined. Any help is appreciated.

code snippet:

//Smoke Alarm
zway.devices12.instances0.commandClasses113.data.V1event.bind(function()
{
if(this.type.value==12)
{
if (this.level.value == 255)

Unknown macro: { alarmStart(); }

}
});

Document generated by Confluence on Jun 05, 2016 09:36