Giter Club home page Giter Club logo

tradfri_dimmer's Introduction

Appdeamon app to use Ikea Tradfri switches as dimmers

Loosely based on a Gist by Claudio Bartoli

Introduction

This app is a basic approach to dimming lights with Ikea Trädfri switches. On the round switch it uses the "brighter" and "darker" buttons, on the square one it uses "O" and "I". A short press on "brighter" or "I" will switch the light on, a press on "darker" or "O" will switch it off. If you hold "brighter" or "I" the light will dim UP, holding "darker" or "0" will dim it down. It's a simple app but works fine for me. I reduced the original three files to one. Considering this is my first Python script there will probably be errors in it, feel free to let me know.

Installation

The repository can be added to HACS. If you don't know what that is, this script probably is not for you...

Configuration

  • Multiple lights can be added for a dimmer, they will be dimmed individually. Adding groups is not possible as they do not report back brightness.
  • Add the remote name and the type, either "ROUND" or "SQUARE"
  • You can set minimum and maximum values for dimming which will be applied to all lights connected to the dimmer. Absolute minimum is 0, the maximum is 255.
  • The dimmer is updating values (about) every half second. The step size determines how fast dimming is.
---
  remote_aanrecht_brightness:
    module: tradfri
    class: TradfriRemoteDimmer
    lights:
      - light.inbouwspots_aanrecht_keuken
      - light.ledstrip_aanrecht_keuken
    remote:
      id: tradfri_remote_control
      type: ROUND
    dimmer:
      step: 10
      min: 0
      max: 255

  remote_bureau_brightness:
    module: tradfri
    class: TradfriRemoteDimmer
    lights:
      - light.pendel_bureau
      - light.inbouwspots_bureau
      - light.opbouwspots_bureau
    remote:
      id: tradfri_on_off_switch
      type: SQUARE
    dimmer:
      step: 10
      min: 0
      max: 255

tradfri_dimmer's People

Watchers

 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.