OpenHausIO / connector

Connector between backend & local network
MIT License
1 stars 2 forks source link

Refactor connector #54

Open mStirner opened 6 months ago

mStirner commented 6 months ago

Refactor the connector, to work primary with the bridge requests/events from the backend. See https://github.com/OpenHausIO/backend/issues/460

Keep the legacy bridging stuff, and remove it in future versions when the support of the legacy streams is removed in the backend.

Due to various problems that the device id is needed, create a lookup table where we get the device id only from the interface id.

{"uuid":"e15a06c3-9c3c-45e4-806b-7b7b697ed69","device":"6647b4e8fba2a6e4a98bc211","interface":"6647b4e8fba2a6e4a98bc215","type":"request"}

The "device" property should not be needed.