Coder Social home page Coder Social logo

notherealmarco / ha-tradfri-remote Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 9 KB

Control multiple Home Assistant devices with a single zigbee2mqtt connected IKEA TRÅDFRI remote.

License: MIT License

Python 100.00%
home-assistant ikeatradfri tradfri-control tradfri tradfri-ikea-gateway appdaemon hass zigbee2mqtt zigbee

ha-tradfri-remote's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rmnbw73 mattia-08

ha-tradfri-remote's Issues

Controlling color_temp

Thanks for this, works well and just what I needed, saves me doing scripts and automations to achieve something similar but much more convoluted.

Currently brightness_up/down_hold does nothing (for me at least), I was toying with the idea before using this as way to change the color_temp.

Would that be viable possibility?

KeyError: 'zigbee_names'

Hi,

I'm trying to use this app with
https://github.com/notherealmarco/appdaemon-light-dimmer plugin (having 1 zigbee and 2 yeelight bulbs, wifi version)
but dimming seems not working with yeelight lights.
When I press some of the dim buttons, got

2021-01-27 19:13:19.996299 WARNING remote_1: ------------------------------------------------------------
2021-01-27 19:13:19.995169 WARNING remote_1: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 900, in worker
    funcref(
  File "/config/appdaemon/apps/real_tradfri_remote/real_tradfri_remote.py", line 194, in button_pressed
    self.log(self.args['zigbee_names'])
KeyError: 'zigbee_names'

2021-01-27 19:13:19.990441 WARNING remote_1: ------------------------------------------------------------
2021-01-27 19:13:19.989473 WARNING remote_1: Worker Ags: {'id': '3cf2fabf82d44b0bbd9d284a803fb18d', 'name': 'remote_1', 'objectid': '04a06c03c7544deb9364eae38e2fdc11', 'type': 'state', 'function': >, 'attribute': 'state', 'entity': 'sensor.tradfri_remote_control_action', 'new_state': 'brightness_down_hold', 'old_state': '', 'pin_app': True, 'pin_thread': 0, 'kwargs': {'__thread_id': 'thread-0'}}
2021-01-27 19:13:19.988400 WARNING remote_1: Unexpected error in worker for App remote_1:
2021-01-27 19:13:19.983907 WARNING remote_1: ------------------------------------------------------------

appdaemon version 4.0.5

my config:
remote_1:
  module: real_tradfri_remote
  class: TradfriRemote
  groups:
    group_1:
      - light.kitchen_light
    group_2:
      - light.ceiling_light
    group_3:
      - light.bedroom_light
  right_arrow_mode: scenes
  scenes:
    - scene.kitchen_warm_white
    - scene.kitchen_cold_white
  hold_group: 1
  left_hold_device: 2
  right_hold_device: 3
  reset_after: 10
  remote: sensor.tradfri_remote_control_action

light_dimmer:
  module: light_dimmer
  class: NoTheDimmer

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.