Kane610/deconz

Adding new lights cause web socket to restart

Closed this issue · 1 comments

When a new light gets added to deconz an added event is sent
{"e":"added","id":"43","r":"lights","t":"event","uniqueid":"00:17:88:00:00:00:00:00-0b"}

Since pydeconz expects the added event to hold a "light" dictionary in the event we instead get a value error. This needs to be handled some way, maybe add to poll a light resource when an added event is sent; GET /api//lights/

This is solved by deCONZ IIRC