The Door/Window Sensor will generate events when a door (or window) is open or closed.
Byte 0: 7-4 |
Byte 0: 3-0 |
Byte 1 |
Byte 3 |
Protocol version (4 bits) |
Counter (4 bits) |
Message Type Code (0x03) |
Event (0x01 in the example below)
|
Protocol Definition
The first 4 bits are defined by Radio Bridge for the protocol
The next 4 bits are a counter that goes from 0 to F (Hex) and repeats
Message Type
0x03 represents the Door/Window Sensor’s event type
Event
This byte represents the Door/Window Event
Event Payload Description
0x00 Magnet is present (the door/window is closed)
0x01 Magnet is not present (the door/window is open)
Example of a Door/Window Event Message
10 03 01
1 Protocol Version (currently always 0x1)
0 Packet Counter (increments by 1 each message and wraps from 0xF to 0x0)
03 Message Type Code (Door/Window Event = 0x03)
01 Event (Door Opened = 0x01)
The Radio Bridge Console will generate the following output for this message:
Door/Window Opened