Hey,
Our built in decoder for these packages can't determine the data types based on the payload information. Therefore some values shown here can represent multiple things depending on sensor configuration and model. For the Milesight WS202 sensor the door
function is actually the same as Occupied. And the device_status
is the "light status". According to the manual for the device the light value is never transmitted. Only Bright/Dark.
You could change the type and name of these functions to match what the sensor is sending as data. I suggest changing the following:
door
--> occupied
device_status
--> light_status
I also suggest adding proper state_
meta to display the values correctly as shown below
For occupied
Key | Value |
state_occupied | 1 |
state_vacant | 0 |
text_occupied | Occupied |
text_vacant | Vacant |
For light status
key | value |
state_bright | 1 |
state_dark | 0 |
text_bright | Bright |
text_dark | Dark |
I will make a note to add these caveats to our documentation for the LoRa sensors