Handles data for a connected device. The 'state' object is specific to the device type
{
"name": "device_esp32_leds",
"description": "that device links one esp32 microCPU with 1 NFC reader, 1 motion sensor and 3 LEDs.",
"router": "192.168.0.19",
"state": {
"pir_state": {
"detected_something": false
},
"nfc_state": {
"is_activated": false
},
"led_state": {
"is_on": false,
"red_value": 144,
"green_value": 17,
"blue_value": 232
}
}
}
It must be valid
"192.168.0.19"
The state object contains all the properties that are relative to a connected device
Gives details about the motion sensor state
Indicates wether or not the motion sensor detected something
Represents the NFC reader state
true if the nfc reader has been activated. False if it has been disabled.
Gives details about the led state (active or not and color values)
Indicates wether or not the leds are active
Between 0 and 255
Between 0 and 255
Between 0 and 255
Additional Properties of any type are allowed.
Type: object