Coder Social home page Coder Social logo

home_assistant_casambi's Introduction

Home assistant Casambi Lights support

GitHub release (latest by date) hacs_badge GitHub issues GitHub last commit GitHub

This is project is a custom component for supporting Casambi Lights in Home Assistant. All lights will be automatically discovered. The light state is sent to Home Assistant mainly by websocket, but this integration also polls Casambis REST API periodically. Home Assistant can be integrated with Google Home, Amazon Alexa and much more.

It uses a separate library (also written by me), link to library project: https://github.com/olofhellqvist/aiocasambi

Supported modes

These modes are implemented:

  • on/off
  • brightness
  • color temperature
  • rgb
  • rgbw

Usage

Prerequisite

Installation

"Manual" Installation

Just place the directory "casambi" in to your 'custom_components' folder.

Installation via HACS

  1. Setup HACS https://hacs.xyz/
  2. HACS -> Integrations -> Casambi -> Install

Installation via HACS (custom repository)

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 correct category.
  7. Click the "ADD" button.

Configuration

Add these lines in your configuration.yml

light:
  platform: casambi
  email: !secret casambi_email
  api_key: !secret casambi_api_key
  network_password : !secret casambi_network_password # The network password
  user_password : !secret casambi_user_password # The site password for your user

Optional arguments:

light:
  platform: casambi
  ...
  network_timeout: 30    #default is 300 seconds
  scan_interval: 60      #default is 60 seconds

Of course you need to make sure you have the secrets available.

Troubleshot

Enable logging in your configuration.yml

logger:
  default: info
  logs:
    homeassistant.components.casambi: debug
    custom_components.casambi: debug
    aiocasambi: debug

Todo list

Links to what needs to be done next: https://developers.home-assistant.io/docs/integration_quality_scale_index/ , https://developers.home-assistant.io/docs/creating_component_code_review/ and https://developers.home-assistant.io/docs/creating_platform_code_review/ .

Other Casambi projects

Authors

  • Olof Hellqvist - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Disclaimer

This custom component is neither affiliated with nor endorsed by Casambi.

home_assistant_casambi's People

Contributors

hellqvio86 avatar robsonke avatar jakobjuelich avatar

Watchers

James Cloos avatar  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.