Giter VIP home page Giter VIP logo

ha-linknx's Introduction

ha-linknx

This is a integration between Home Assistant (HA) and Linknx.

Installation

The files in this project should be extracted in the HA <config_dir>/custom_components/linknx/ (You might need to create the custom_components and linknx directories).

Add the following entry in your <config_dir>/configuration.yaml:

linknx:
  host: IP or hostname for the linknx REST gateway
  port: Port for the linknx REST gategay (default = 1028)

light:
  - platform: linknx
    entities:
      - { id: "light_garage", name: "Garage Light" }
      - { id: "cook_dinner", type: "scenario", name: "Cook dinner" }

switch:
  - platform: linknx
    entities:
      - { id: "switch_library", name: "Switch library" }

sensor:
  - platform: linknx
    entities:
      - { id: "outside_light", name="Outside light", type: "lx" }
      - { id: "outside_temp", name="Outside temperature", type: "°C" }

binary_sensor:
  - platform: linknx
    entities:
      - { id: "is_holiday", name: "Is it a holiday today" }

The integration currently supports light, switch, sensor and binary_sensor, is't still a lot of work in progress, but currently the following attributes are supported for each HA entity:

  • light

    • id: The linknx id (mandatory)
    • name: The name of the light in HA (mandatory)
    • type: "light" (default) or "scenario" - just give different icons (optional)
    • dim: The linknx id for the dimmer (3.007) - just supports up/down/stop right now (optional)
    • dimfactor: (default 15) - factor depending on how fast the dimmer dim (optional)
  • switch

    • id: The linknx id (mandatory)
    • name: The name of the switch in HA (mandatory)
  • sensor

    • id: The linknx id (mandatory)
    • name: The name of the sensor in HA (mandatory)
    • type: "lx" - for light or "°C" for temperature (this might change) (mandatory)
  • binary_sensor

    • id The linknx id (mandatory)
    • name: The name of the binary_sensor in HA (mandatory)
    • type: "binary" (default) or "workday" (just set another icon) (optional)

This project is currently a lot of work in progress, things that will change:

  • Name the sensor types differently
  • Use the linknx/pyknx library instead of my own implementation

ha-linknx's People

Contributors

johanekblad avatar

Stargazers

Anthony 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.