Analysis
The documentation for device status on this repo says
RGBICWW Floor Lamp returns onlineStatus: string in JSON
but
online: boolean
in its actual JSON.
I don't know other device types with online or onlineStatus that I haven't got but doubtful.
Expected Behavior
consistent between Documentation and real JSON
Steps To Reproduce
- Set WebHook
- Check a JSON that SwitchBot requests
Logs
{"eventType":"changeReport","eventVersion":"1","context":{"brightness":100,"color":"255:255:255","colorTemperature":2700,"deviceMac":"ABCDEFGHIJKL","deviceType":"RGBICWW Floor Lamp","online":true,"powerState":"OFF","timeOfSample":1778083298814}}
N.B. I masked the deviceMac
Configuration
just set webhook on SwitchBot API
Environment
Additional Context
No response
Analysis
The documentation for device status on this repo says
RGBICWW Floor Lamp returns onlineStatus: string in JSON
but
online: boolean
in its actual JSON.
I don't know other device types with online or onlineStatus that I haven't got but doubtful.
Expected Behavior
consistent between Documentation and real JSON
Steps To Reproduce
Logs
{"eventType":"changeReport","eventVersion":"1","context":{"brightness":100,"color":"255:255:255","colorTemperature":2700,"deviceMac":"ABCDEFGHIJKL","deviceType":"RGBICWW Floor Lamp","online":true,"powerState":"OFF","timeOfSample":1778083298814}} N.B. I masked the deviceMacConfiguration
just set webhook on SwitchBot APIEnvironment
Additional Context
No response