Skip to content

discrepancy between Documentation (onlineStatus) and JSON (online) for RGBICWW Floor Lamp #481

@lamusique

Description

@lamusique

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

  1. Set WebHook
  2. 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

  • OS:
  • Software:
  • Node:
  • npm:

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions