lkempf / casambi-bt-hass

32 stars 12 forks source link

Issues with initial setup #64

Closed ldehaas1612 closed 8 months ago

ldehaas1612 commented 10 months ago

Description of the bug When homeassistant starts, casambi is being discovered, then I enter (what I think) is the correct password and I immediately get an unexpected error in return. Thanks for any help in advance!

To Reproduce Steps to reproduce the behavior:

  1. Boot homeassistant and go to devices.
  2. Click on casambi_bt
  3. Enter the password and check the MAC address is correct.
  4. be greeted with the error explained.

Screenshots picture of the error Unexpected error

Versions

Logs home-assistant_2023-12-27T17-41-16.959Z.log

ldehaas1612 commented 10 months ago

Still might be worth investigating this further, but I found a valid workaround to be creating a new network in Casambi and moving all compatible devices into the new network one by one. Only then I would start the integration and afterwards finish adding new devices to casambi app such as the smart button and hue integration (since HA is not fully setup yet). Thanks for the awesome integration! Now it works just perfect and I love the fact that it's a non cloud integration. Keep up the good work!

lkempf commented 10 months ago

Thanks. I've already looked at the log you attached and there seems to be an error handling invalid unit types. However, I can't tell why your network has a unit with invalid type.

ldehaas1612 commented 10 months ago

Right, yeah that was my thought after two days of trying as well. We have a Xpress remote from casambi, Philips Hue linked and some Occhio fixtures. I feel like in hindsight it must be the remote that was the culprit. Or would Hue connectivity also mess with the functionality? Thanks for the quick support!

bikeophilipp commented 8 months ago

Having the same issue and error message as @ldehaas1612 . I have only one Occhio Mito Sospeso in one Network and I get the error. Password and connection from other devices work. Maybe the Device is not supported?

ldehaas1612 commented 8 months ago

@bikeophilipp, I actually managed to get everything working in the end! We also have de Occhio Mito Sospeso and another Occhio light fixture, but they work just fine. What I did in the end was creating a new network, placing all devices I knew worked on this platform in there. So all light fixtures, no Philips Hue bridge and no remotes/switches. Then attaching the system to Casambi as instructed by the project and then if you want/need, add the remote and Hue bridge back into the Casambi or Occhio Air app afterwards. Doing this allowed me to have control in every way possible Hope this helps you out also.

reda1978 commented 8 months ago

@bikeophilipp Could you by any change with this setup control the vertical lighting of Mito Sospeso? I mean only through BT not with Casambi API. Me, I can’t. Nor the temperature control.

ldehaas1612 commented 8 months ago

@reda1978, you were referencing @bikeophilipp, but since he doesn't have a working setup, I thought I'd chip in my experience. For me, I can actually control brightness and temperature using home assistant. However the up/down mode I haven't figured out yet. I think it might me supported by @lkempf, but so far there are no cards that properly support it I think. Right now I'm using the minimalist ui theme to set the lights.

reda1978 commented 8 months ago

Sorry for the referencing :-)

From my end, I gave up the BT setup and went with the Casamabi API to have full control over lighting features with HA. But I am still hoping that the BT setup will allow for vertical lighting and having everything in local network.

Cheers,

bikeophilipp commented 8 months ago

Hi @ldehaas1612 thanks for the support. I will create a new network first and add the one lamp that I have. Hope it works. Could you also help me with finding the BT MAC address? I cannot find it anywhere in the App. Maybe you could provide a screenshot? When I connect with the addonn however it shows me a MAC address which I assume is the correct one...? @reda1978 The up/down control is not so important for me and also explained in the Readme that this does not work. Just changing the brightness and turning it on/off is sufficient for now

ldehaas1612 commented 8 months ago

@reda1978, I went and upgraded to the evolution version for the network and am therefore not able to use the api anymore. Also, no new api developer codes were supplied by Casambi Europe, so that was no option for me anyways. I'll keep using the BT way right now since it does everything I want anyways 😅

ldehaas1612 commented 8 months ago

@bikeophilipp no worries, i think there was a detailed description out there somewhere, but I made some screenshots anyways. Screenshot_20240216-114626~3 Screenshot_20240216-114637~2 Screenshot_20240216-114725~3 Short written version is: Go to your casambi/occhio air app. Go to your network you want to incorporate Top right corner, select edit and click on any light in the network Go to details NetworkID: This is you network MAC address. Make sure your new network follows all details and features as suggested by Ikempf in the readme. Hope this helps!

bikeophilipp commented 8 months ago

@ldehaas1612 you helped a lot. I did exactly as you said in creating a new network and added my lamp. I had to update the Firmware from Classic to Evolution first but after the new network was created and the lamp added, the HA Addon worked smooth. @lkempf Thanks a lot for the addon. Really helps a lot to manage my lamp using HA

lkempf commented 8 months ago

I just fixed the underlying bug in CasambiBt, it should work without separating networks in the next integration version.