Casambi WebSocket Service
Casambi WebSocket service is used for receiving event and state information from Casambi bluetooth mesh network. This kind of event information can change very often and depends on state of the device.
WebSocket Service URL: wss://door.casambi.com/v1/bridge/
Event and state information received via WebSocket connection does not contain all the same device information as what is received via the REST API requests even though in some parts they may overlap. Purpose of event data is to offer supplemental state information that complements the data received from REST API. Recommended way to use WebSocket services is to first request information about network and it devices trough REST API and then create related WebSocket connection to receive additional state data.
You can find more information about WebSocket protocol and how to use it from here: WebSocket API
Version History
- /v1
- Receive network related event and device state information
- Basic light control and dimming options for network, related devices and scenes
Changes
- 13.05.2020 - Creating WebSocket connection, opening wires and receiving event data.
- 07.12.2020 - Sending control messages via WebSocket.
- 04.03.2021 - Datalogging and API documentation added. FAQ page added.
- 15.08.2021 - Added javascript code example how to create WebSocket connection, open wire and receive event data.
- 16.11.2022 - Added max limit of 20 different wires per network (and one per same WebSocket).