Zigbee gas detector for kitchen

Yep, changing out the values in the switch statement does make it work as expected, as far as the app and SHM is concerned.

There is a test button, but it doesn’t seem to trigger any zigbee messages. I think what it is doing for it’s test is simply checking for the alarm state (0x0003) and not finding it set, the unit declares operation normal. (this thing is odd… part of the alarm is spoken voice of “Operation: normal” when the alarm state clears (or using test button) and “Danger, evacuate!” when alarm state is triggered.) Worst part is that the voice is not a native english speaking voice, lol.