lkempf / casambi-bt-hass

33 stars 12 forks source link

Version too new. Unexpected answer from device! #93

Open VincentVrijburg opened 5 hours ago

VincentVrijburg commented 5 hours ago

Describe the bug The integration seems to be unable to add the necessary entities to control luminaires. The integration did add the network and the scenes I have in that network. This means I can control the luminaires through scenes from HA, but not the luminaires individually yet.

To Reproduce Steps to reproduce the behavior:

  1. Have a casambi network with the latest firmware (Evolution).
  2. Update your devices firmware (Evolution/44.1 in my scenario).
  3. Enable logging for integration in HA
  4. Check the logs

Expected behavior What I expect to happen is the integration to discover all the devices I have in the network and add them as entities to control in HA. I do see in the logs that my network is discovered and the two devices I have in there are discovered as well, with their names, identifiers, etc. That is being saved to path /config/.storage/casambi_bt/{deviceId}/{networkId}.json.

Reloading the integration goes without any error in the HA frontend. Trying to add another hub does give a 500 error, see screenshot below and logs below.

Screenshots If applicable, add screenshots to help explain your problem.

image

Versions

Logs These are the only errors I was able to extract from the logs. I had this set multiple times.

2024-11-14 20:52:34.956 WARNING (MainThread) [CasambiBt._client] Version too new. Your network version is 11. Highest supported version is 10. Continue at your own risk.
2024-11-14 20:52:35.561 ERROR (MainThread) [CasambiBt._client] Unexpected answer from device! Wrong device or protocol version? Trying to continue.
2024-11-14 20:52:51.287 ERROR (MainThread) [homeassistant.helpers.http] Unable to serialize to JSON. Bad data found at $.data_schema[0].description.suggested_value=...(<class 'voluptuous.schema_builder.Undefined'>
2024-11-14 20:53:21.259 ERROR (MainThread) [homeassistant.helpers.http] Unable to serialize to JSON. Bad data found at $.data_schema[0].description.suggested_value=...(<class 'voluptuous.schema_builder.Undefined'>
lkempf commented 3 hours ago

Interesting. That's the first proper report of the new version breaking something

Could you provide debug logs? If the config flow already fails this has to be done following the steps in https://github.com/lkempf/casambi-bt-hass?tab=readme-ov-file#reporting-issues.