Casambi and Home Assistant

Hi,

I’m planning to start with Home Assistant, but would like to know a few things which are Casambi related:

  1. Anno 2024, what’s the situation about Casambi integration in HA? Are there good integrations available? If so, which ones? Do they need some dev key I should acquire as a user?
  2. How easy is it to code an integration myself, in the sense of availability of the Casambi API (dev key needed? What does it cost? Is it guaranteed to get it?) and feature-wise (how fleixble is it? Are a lot of features possible? Or is it way too strict/closed?)?
  3. More concretely: let’s say I would like something complex, like when a water leak is detected by a Zigbee water sensor, is then possible to put on a certain Casambi bulb/luminary (through HA of course)? Or let’s say I want to turn off a group of Casambi bulbs/luminaries, when another certain bulb is on for a certain amount of time? Are these types of things possible? If so, I would guess integration is quite good. Or do I see this wrongly?
  4. What’s supported best on HA? Casambi or Zigbee based stuff?

Thanks for getting me on track!

Regards,
Pedro

  1. Get the casambi-bt-hass integration (search in HACS for lkempf, the name of the creator). If your home assistant instance is too far away, use an ESP32 bluetooth proxy. I have this one (via PoE): ESP32-POE - Open Source Hardware Board See http://esphome.io on how to install the firmware.
  2. Ask the developer of the existing integrations (either the bluetooth one or the one via the cloud API)
  3. This works very well!
  4. Zigbee has been around longer but I don’t think it supports as many features as casambi. I think people usually get into casambi because they buy
    fancy design lighting solutions, where casambi is becoming common. It supports large wireless networks and allows for control of light temperature, brightness, light color,… Someone correct me if I’m wrong but I don’t think zigbee supports this without a proprietary zigbee hub that is specific to your light bulb. That’s the advantage of casambi!
3 Likes

Hello,

Can you please explain me how to use the Csambi integration for Home Assistant? I already have the API key from Casambi, but I am strugling to creat the network gateway. I already have an ESP32 bluetooth proxy nearby.

Regards Nuno

Hi Flimofly. I have setup a Bluetooth adapter as described. It’s integrated in ESp-home a discovered by HA.

However what fails now is the Casambi BT integration. The network ID is easy enough to find but the password might be the problem. Which password is this? Can you help me please. I think I am very close but it’s just not configuring.

Have you tried the password from the Occhio air app?

I usethe Casambi app. I have tried that password but it doesn’t work.

Just downloaded Occhio air. Exactly the same as tgw Casambi app.

Still no result.

I have the following configuration in the Occhio app:

  • under Network Setup > Network Settings: Evolution firmware
  • under Network Setup > Sharing Settings: “Open” ; Administrator password set (passwords can only be set successfully if bluetooth connection to the network is available and luminaires are on)
  • under Network Setup > Performance > Devices always visible
1 Like

Thanks. I will follow that one through.

Done all of it. Still unexpected error.

I still doubt the admin password. Somehow it feels if it isn’t saved properly.

Password checked out. Works. I have both Casambi app and Occhio synchronised.

Maybe I am looking at the wrong place. The adapter seems to work fine.

Why is it in blue? Does that mean anything ?

Any further advice since you got it working…?

It’s working. All has been resolved. Latest version of Casambi_bt and the right password in combination with the Bluetooth proxy works as a charm! Thank for the idea!

Hi everyone, I got information that casambi actually support matter? if yes could we discover its system via matter? Anybody able to discover it?

Thanks

I am struggling as well with adding my casambi lights. So far I have the

Casambi-bt integration
working bluetooth proxy (olimex esp32-poe)
When adding the casambi device in HA i need to enter:

-bluetooth mac adres
-password

I have set up an admin account password in de casambi app (also tried the occhio air app but seems identical). Have the same network setup as you mentioned.

The bluetooth mac address is already filled in, no idea where i can find the network ID of my casambi lights, can’t seem to find it in the (iOS) app. Did you use android by any chance? Any other tips…

edit: I found the network ID/mac address in the app, which was correct. Also have a correct password but in the bluetooth logs I connects to the casambi lights but get’s disconnected

Hi,

At this stage mine is disconnected as well. Some months ago it got disconnected and remotely i havent been able to restore it. It’s the adapter which is the problem for me.

Around xmas i will be able to check whats wrong.

I tried creating a new network, setup lights in new network. 1 admin password. new mac address/networkID. I came from the classic firmware, so I upgraded the lamps to the latest FW yesterday (evolution 47)…
I use the logs of the bluetooth proxy where after connecting it disconnects with code 0x13 which is some sort of authentication error… I am going to throw in the towel for now :slight_smile: alas

Two options, that are a bit more expensive but work reliable:

  1. Atios SmartCore + Casambi CBU-DCS: basically the CBU-DCS makes Casambi lights available via DALI, and Atios SmartCore then controls them via Matter, meaning easy integration in HA.

  2. We do not have a timeline yet, but at some point Atios LumaPort for a direct integration of Casambi Lights into Matter / HA will be available.

See also this HA forum thread here

Thanks… but find it a bit overkill… at least for my case. I got 2 terrace lamps which use casambi. All other stuff is KNX or some shelly/zwave devices. Never really use those 2 casambi lights, but after reading about the bluetooth proxy, I wanted to fiddle around with it… so far no luck :slight_smile: I’m thinkering with the yaml file for the proxy bluetooth atm…

just an update… I always got connection errors with adding the casambi_bt devices (entering passwork of the network). I saw in the logs the olimex bluetooth proxy got buffer issues. By default HA sets the logger level to debug, changing it the info made my network discovered :slight_smile: yay…
now i can control the lights!!
you need to wait a bit between commands, connection seems to get lost, but after x amount of seconds it seems to work. In my case I just want to turn on the lights when the sun sets and turn them off at a specific time, so… great!
This is my working yaml file in HA:

substitutions:
  name: olimex-esp32-poe-iso-390774
  friendly_name: Bluetooth Proxy 390774

packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/olimex/olimex-esp32-poe-iso.yaml@main

esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}

api:
  encryption:
    key: m7Y4KlgAsGwNR6XCNzsjXBUtZY8trhdGF4PerrHSrqA=
  reboot_timeout: 0s

 # optimizing for buffer issues
logger:
  level: INFO  # was DEBUG before

esp32_ble_tracker:
  scan_parameters:
    interval: 1100ms
    window: 320ms  # lowered from 1100ms for buffer

I used this fork of the github integration: GitHub - rankjie/casambi-bt-hass
Works better than the orginal one :slight_smile:

I’m using this fork too and it works well however I do get lights becoming unavailable sometimes. I can get them back online by reloading the casambi network.

Any idea why this might happen?

1 Like

No idea, my ESP32 that I use for the proxy also has the same issue. Reloading does fix it yes :slight_smile:

Just an update… I ordered the new version from olimex (esp32-poe2)
and it more or less worked straight out of the box. For now (since yesterday at least) my Casambi lights work seamlessly. Happy :slight_smile: