tfriedel / python-lightify

Python module for Osram lightify. This is a work in progress.
Apache License 2.0
18 stars 9 forks source link

Unknown device type id: 0 #21

Closed pixeldoc2000 closed 4 years ago

pixeldoc2000 commented 4 years ago

I'm getting the following error with Home-Assistant 0.102.3 & 0.103.0 and my Osram Lightify Gateway (current FW).

2019-12-12 01:29:53 INFO (SyncWorker_5) [homeassistant.loader] Loaded osramlightify from homeassistant.components.osramlightify 2019-12-12 01:29:54 INFO (MainThread) [homeassistant.components.light] Setting up light.osramlightify 2019-12-12 01:29:54 WARNING (SyncWorker_16) [lightify] Unknown device type id: 0. Please report to https://github.com/tfriedel/python-lightify 2019-12-12 01:29:54 INFO (SyncWorker_16) [lightify] Initializing lightify, version=1.0.7.2

OleksandrBerchenko commented 4 years ago

Thanks for your report! Several questions:

  1. What device triggers this error? Review your Lightify devices on Home Assistant UI and find the one that has "unknown device" in its device name attribute. What is it? Does it work correctly?
  2. Did you see this error before, or only after some "trigger" like Gateway Firmware update?
pixeldoc2000 commented 4 years ago
  1. This is my Entitiy List with Lightify Devices in Home Assistant: grafik There are two devices that are showing with there Lightify id rather the a custom name configured via Lightify App. I'll have to check if these devices are still active.

This is a screenshot from my Lightify App: grafik There is an unknown device. Maybe thats causing the error in HA. I'm going the remove the unknown device and check if the error disappears.

  1. I'm don't know at which point in time the error started to appear in the HA Log
OleksandrBerchenko commented 4 years ago

There is an unknown device. Maybe thats causing the error in HA.

I'm sure it is. If Osram Lightify can't identify a device, it probably sends "0" as its device type and HA plugin throws a warning.

Let me know whether removing that device fixes the issue or not.

Thanks!

OleksandrBerchenko commented 4 years ago

@pixeldoc2000 Have removing the unknown device from Osram Lightify app helped?

Thanks!

pixeldoc2000 commented 4 years ago

@OleksandrBerchenko Yes.

Thx.

OleksandrBerchenko commented 4 years ago

A bit of off-topic: @pixeldoc2000, @tfriedel, have you updated your Lightify application with a mandatory Gateway firmware upgrade to version 1.5.1.0? If yes, does this library still work as expected? Especially when working with scenes? Changelog says: "increased maximum number of 32 scenes". To do that they would probably need to change binary offsets in API response.

Personally, I didn't upgrade firmware yet :)

Thanks!

pixeldoc2000 commented 4 years ago

@OleksandrBerchenko yes, i'm running the latest gateway version, but i've not tested scenes. grafik