Giter Site home page Giter Site logo

casambi-bt-hass's Introduction

Home Assistant integration for Casambi using Bluetooth

Discord

This is a Home Assistant integration for Casambi networks using Bluetooth. Since this is an unofficial implementation of the rather complex undocumented protocol used by the Casambi app there may be issues in networks configured differently to the one used to test this integration. Please see the information below on how to report such issues.

A more mature HA integration for Casambi networks can be found under https://github.com/hellqvio86/home_assistant_casambi. This integration requires a network gateway to always connect the network to the Casambi cloud.

Network configuration

See https://github.com/lkempf/casambi-bt#casambi-network-setup for the proper network configuration. If you get "Unexcpected error" or "Failed to connect" different network configurations are the most common cause. Due to the high complexity of the protocol I won't be able to support all configurations allthough I might try if the suggested config doesn't work and the fix isn't to complex.

Installation

Manual

Place the casambi_bt folder in the custom_components folder.

HACS

Add this repository as custom repository in the HACS store (HACS -> integrations -> custom repositories):

  1. Setup HACS https://hacs.xyz/
  2. Go to integrations section.
  3. Click on the 3 dots in the top right corner.
  4. Select "Custom repositories"
  5. Add the URL to the repository.
  6. Select the integration category.
  7. Click the "ADD" button.
  8. Search for the Casambi Bluetooth integration and install it.

Features

Functionality exposed to HA:

  • Lights
  • Light groups
  • Scenes

Supported control types:

  • Dimmer
  • White
  • Rgb
  • OnOff
  • Temperature (Only for units since there are some open problems for groups.)

Not supported yet:

  • Switches
  • Sensors
  • Additional control types (e.g. temperature, vertical, ...)
  • Networks with classic firmware

Reporting issues

Before reporting issues make sure that you have the debug log enabled for all relevant components. This can be done by placing the following in configuration.yaml of your HA installation:

logger:
  default: info
  logs:
    CasambiBt: debug
    custom_components.casambi_bt: debug

The log might contain sensitive information about the network (including your network password and the email address used for the network) so sanitize it first or mail it to the address on my github profile referencing your issue.

Development

When developing you might also want to change https://github.com/lkempf/casambi-bt. To make this more convenient run

pip install -e PATH_TO_CASAMBI_BT_REPO

in the homeassistant venv and then start HA with

hass -c config --skip-pip-packages casambi-bt

If you are unsure what these terms mean you might want to have a look at https://developers.home-assistant.io/docs/development_environment first.

casambi-bt-hass's People

Contributors

lkempf avatar cfenner avatar mintnl avatar tjorim avatar luap99 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.