shimmeringbee / controller

Implementation of home automation controller (a.k.a hub and gateway), initially focusing on Zigbee devices, written in Go.

Home Page:https://shimmeringbee.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websocket Endpoint /api/v1/websocket

pwood opened this issue · comments

In order to support real time updates in a UI, we want a websocket to provide realtime updates to the state of Zones and Devices.

This will also need events for ZoneCreate, ZoneDestroy, ZoneMove, as well as DeviceAddedToZone, DeviceRemovedFromZone - these do not currently exist. DeviceAdded, DeviceRemoved, DeviceLoaded are also needed (does DeviceLoaded need to be sepearate from DeviceAdded?).

The majority of this is done in the MQTT interface, but does not have anything to do with Metadata updates or Zone moves.

Progress

  • Initial messages work has been done.
  • Device Organiser metadata changes.
  • Mapping Events
  • Major Refactor (websocket/mqtt commonalities)