Skip to content

Latest commit

 

History

History
75 lines (62 loc) · 4.44 KB

File metadata and controls

75 lines (62 loc) · 4.44 KB

Floor Lamp


Device List Information

Key Value Type Description
deviceId String device ID
deviceName String device name
deviceType String device type. Floor Lamp
enableCloudService Boolean determines if Cloud Service is enabled or not for the current device
hubDeviceId String device's parent Hub ID

Device Status

Key Value Type Description
deviceId String device ID
deviceType String device type. Floor Lamp
online Boolean the connection status of the device. true or false
hubDeviceId String device's parent Hub ID
version String the current BLE and Wi-Fi firmware version, e.g. V3.1-6.3
power String ON/OFF state
brightness Integer the brightness value, range from 1 to 100
color String the color value, RGB "255:255:255"
colorTemperature Integer the color temperature value, range from 2700 to 6500

Control Commands

deviceType commandType Command command parameter Description
Floor Lamp command turnOn default set to ON state
Floor Lamp command turnOff default set to OFF state
Floor Lamp command toggle default toggle state
Floor Lamp command setBrightness {0-100} set brightness
Floor Lamp command setColor "{0-255}:{0-255}:{0-255}" set RGB color value
Floor Lamp command setColorTemperature {2700-6500} set color temperature

Webhook Events

Key Name Value Type Description
eventType String the type of events
eventVersion String the current event version
context Object the detail info of the event
deviceType String the type of the device
deviceMac String the MAC address of the device
powerState String ON/OFF state
brightness Integer attributes of the context object. the brightness value, range from 1 to 100
colorTemperature Integer attributes of the context object. the color temperature value, range from 2700 to 6500
color String the color value, in the format of RGB value, "255:255:255"
timeOfSample Long the time stamp when the event is sent
{
   "eventType": "changeReport",
    "eventVersion": "1",
    "context": {
        "deviceType": "Floor Lamp",
        "deviceMac": DEVICE_MAC_ADDR,
        "powerState": "ON",
        "brightness": 10,
        "color": "255:255:0",
        "colorTemperature": 3500,
        "timeOfSample": 123456789
    }
}