Coder Social home page Coder Social logo

ics2000-hass's Introduction

ICS-2000 Home Assistant integration

This integration shows how you can use an ICS-2000 in Home Assistant.

Installation

light:                                      
  - platform: ics2000
    mac: MAC_HERE
    email: EMAIL_HERE
    password: PASSWORD_HERE_OR_secrets.yaml
    tries: 3  # Optional, defaults to 3
    sleep: 2  # Optional, defaults to 3

cover: # Zonnescherm / zonwering                                      
  - platform: ics2000
    mac: MAC_HERE
    email: EMAIL_HERE
    password: PASSWORD_HERE_OR_secrets.yaml
    # Removed tries and sleep. the stop command would not work with them
  • Restart Home Assistant

You may also add tries and sleep to the config. The ICS-2000/KAKU has no way of knowing what the current state of a connected device is and sometimes the command does not seem to reach the device. If you do not experience any failures, set tries to 1. Between tries, sleep seconds will be paused.

With default settings, the command will be sent 3 times with a 3 seconds sleep in between, leading to a 6 second runtime for the command: click - pause - click - pause - click.

Note that the actual sending of the command is done in a separate 'non-UI thread' and for that reason a check is done if a device has a thread running at that time.

Restart Home Assistant and add a 'Light' card to your dashboard using one of the 'light' entities.

Troubleshooting

When you receive an error the first time you'd like to add a 'Light' card, it may be helpful to add or test with a 'Button' card for the entity first and then add a 'light' card. It seems to trigger integration to be recognized as producing light entities.

Notes on testing on macOS

When installing dependencies on macOS it may be necessary (depending on your setup) to add some values to the environment (needs Homebrew):

brew install [email protected]
  
CPATH=/usr/local/Cellar/openssl\@1.1/1.1.1s/include/ \
  LIBRARY_PATH=/usr/local/Cellar/openssl\@1.1/1.1.1s/lib/ \
  pip install --upgrade -r dev_requirements.txt 

ics2000-hass's People

Contributors

rdegraafwhizzkit avatar balloob avatar stealthninja1o1 avatar fabaff avatar thecode avatar gjohansson-st avatar ludeeus avatar jcgoette avatar martinhjelmare avatar sillyfrog avatar schnabel avatar peddamat avatar dependabot[bot] avatar oldshaterhan avatar pattyland avatar wrt54g avatar rniemand avatar marvin-w avatar ernst79 avatar davidjb 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.