Please raise an issue in github.com. But you need aiocasambi library in order to use this addon, it’s easiest to install it through pip and it only supports python 3.
It is the library that’s is doing the heavy lifting (following home assistant development vest practice).
The easiest way to install it is to follow the instructions and install it as a custom HACS repo.
Home assistant will download the library on its own.
You can always test your credentials by either using the casambi library or the aiocasambi library on its own (pip install it and follow the example).
Your credentials is probably the problem, but it’s hard to say without logs.
I would start with trouble shooting those first, to eliminate that possibility.
My guess is that your password is incorrect for Create network session:
Create network session
Create network (admin) session identified by email & password, requires use of API key (Header: X-Casambi-Key).
HTTP Request
POST https://door.casambi.com/v1/networks/session
Path Parameters
None
Request Body
{
**"email"** : "[email protected]",
**"password"** : "password"
}
First of all, thank you for working on this and the time spent!
I am running homeassistant on a Raspberyy Pi and I can’t seem to use pip.
I installed the casambi integration through HACS and I am trying to add the aoicasambi as a custom hacs repo.
But when I try to add it as a custom repo, I kepe getting a “Repostitory structure for master is not compliant” error.
Hi,
First please raise a github issue (easier to track)
You need to use pip3, aiocasambi and casambi is python3 only, you are probably using pip for python2, I am running test on my Raspberry Pi 4 from time to time and I install it on Raspbian (Raspberry Pi OS 32 bit) and that works fine
No I don’t know why you re getting repository structure for master is not compliant, but it sounds like its an issue with the project structure, I am running it myself on an Intel NUC and that works fine as a custom component.
Have you tried to download it through the official HACS store? It just made the cut and is now “officially” part of the store so installing it as a custom hacs repo is no longer necessary
Home assistant will install and manage the aiocasambi library for you, the aiocasambi version is pinned to the integration version, you don’t need to bother with that if you don’t want to help me with some python code that is
I started with a manual install and added lines to the config file.
Didn’t work, removed lines from config file.
Installed through HACS, did not add lines back to config file…
Sorry to bother because I did not pay attention.
I will mess with the config a bit more to see if I can get it to work. Thanks!
If I could be of service I would gladly help out, but apart from some yaml, data analysis and Business intelligence coding, my coding skills are very limited
Most people have problems with setting up the api side, I would trouble shoot that by using my first casambi library “casambi”, install it through pip: pip3 install casambi
yeah and they informed me about the fact that there will be a cost structure in a few months for the api, so no longer free.
your documentation was pretty clear for the most part, the mess-up earlier was me trying t do a few things too much at the same time
What I struggled the most with was getting the right user/setup process for the network and site.
I assumed that I can create a network and site and then give the registered api user all the rights to them, especially since the developer api console gace an authorized response.
But all need to be created by the email account registered to the api.
I think the api key isn’t associated with the site, just there for security purposes, they might have changed that.
Thats bad news, I don’t see me paying for the api access in its current state, the api (not my python library) isn’t even feature equivalent with the app. I hope they change that or start to support a local api option.
To follow up on my post from earlier: you were right (of course), it was an authentication issue. My API key had expired between the time I had validated the authentication through the Casambi API console, and the time at which I tried out this integration. After the renewal of my key, everything works beautifully.
Next up, deciding on an old device to act as an always-on gateway.
I got an information today from the support that Casambi API will not be free anymore. There is no establish cost structure for the moment but seems that something will be in place for 2022
Hopefully it will not cost too much too keep interaction between devices
Casambi is a real PITA with regards to integration, i.e. their closed ecosystem. Even though I would personally avoid it, I will be getting some equipment next year which unfortunately is based on Casambi. Ahead of this I have been looking into how to integrate it with HA and was hoping Olof’s integration would do the job (though I will also need blinds). Given what was written above about the API, I am now putting my hopes on this:
brief question, I’m a Home Assistant newbie who just migrated from iobroker, partly because of the opportunity to integrate my (Occhio) Casambi lights into the overall smart home system.
So far I’ve successfully installed the Home Assistant Integration via HACS, but I seem to struggle to get the correct lines Into the configuration.yaml (error from the loader: mapping values ar not allowed in here). When I test my casambi cloud credentials on API console, I only seem to be able to create Create network (admin) sessions, but no user sessions on the casambi cloud. Is this the reason for my problems? Or could anybody please provide an (anonymized) sample configuration.yaml section?