DeCONZ, ZHA and Zigbee components and compatible hardware

I tried but failed, maybe you can share a working config and I try it out?

Not sure this is the right thread for this, eventually I open a new one. Nevertheless that’s my log

class HueDimmer(RemoteControlBase):
    """Example config."""

remote_control_living_room:
  module: remote_control
  class: HueDimmer
  remotes:
    - dimmer_switch_5
  long_press:
    1:
      - light.ambience_spot_1
      - light.ambience_spot_2
    3:
      - light.ambience_spot_5
      - light.ambience_spot_6
  multi_click:
    1:
      - light.ambience_spot_1
      - light.ambience_spot_2
    2:
      - light.ambience_spot_5
      - light.ambience_spot_6
    3:
      - light.ambience_spot_8
      - light.ambience_spot_9
    

    POWER_ON = BUTTON_1 * 1000
    DIM_UP = BUTTON_2 * 1000
    DIM_DOWN = BUTTON_3 * 1000
    POWER_OFF = BUTTON_4 * 1000

The example is out of date. You should change that to HueDimmer

Sorry, what, the module??

Aah, no sorry. Don’t know why it reacted on that. Pushed a new version of the file that just had some things tossed around. Try it out.

Disclaimer; this is all a work in progress, more documentation is needed and to split things up in different files later on

Make sure that the apps.yaml looks something like this

⇒ cat apps.yaml

remote_control_living_room:
  module: remote_control
  class: HueDimmer
  remotes:
    - dimmer_switch_5
  hold:
    1:
      - light.ambience_spot_3
      - light.ambience_spot_4
    3:
      - light.ambience_spot_7
      - light.ambience_spot_6
  click:
    1:
      - light.ambience_spot_1
      - light.ambience_spot_2
    2:
      - light.ambience_spot_5
      - light.ambience_spot_6
    3:
      - light.ambience_spot_8
      - light.ambience_spot_9```

Ohh so this part goes in apps.yaml and deleted from remote_control.py?

Sorry I promise to study more when have free time (and more free brain power)

Precisely.

Ok that error is gone, now I need to define this too …?

File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed File “/config/appdaemon/apps/remote_control.py”, line 21, in <module> class RemoteControl(RemoteControlBase): NameError: name ‘RemoteControlBase’ is not defined

Did you copy the whole file?

If you have copied it but the remote control base is on the bottom of the file. Go to my github and make sure you’re viewing master and copy the updated file

I searched your name on github but there are many, can you please give me the link

The link is 5 posts up

Oh I didn’t get it was your github. Downloaded and installed, no more error in appdaemon console, thanks.

Will try later the functionality with the dimner. Thanks!

1 Like

Love this deconz/hass, everything is so fast and smooth.
Multitude of Low price Zigbee devices, deconz multi brand single gateway solution, hass integration , working also without Internet

Highly recommended.

It’s a Zwave killer

3 Likes

Spread the love :heart:

Having a hard time trying to make the hue dimmer work. With the below configuration, what does it mean?

1 On, 2 UP, 3 Down, 4 Off buttons?

If I long press ON, what happens?

If I click two times ON what happens , scene.yellow_chandelier_lights? (its not)

remote_control_living_room: 
  module: remote_control 
  class: HueDimmer 
  remotes: 
      - dning_switch
  long_press:
    1:
      - light.ambience_spot_1
      - light.ambience_spot_2
    3:
      - light.ambience_spot_5
      - light.ambience_spot_6
  multi_click:
    1:
      - scene.bright_chandelier_lights
      - scene.yellow_chandelier_lights
      
    2:
      - scene.concentrate_chandelier_lights
    3:
      - scene.dimmed_chandelier_lights

Check my last example. It is click and hold now instead of multi click and long press

Hurray! I removed all Zigbee devices from Xiaomi Gateway(s), I am finally free from the cloud!

QUestion about the Xiaomi gateway: can I still use it: radio, alarm, Wifi binding for XIaomi cameras (I don’t use, but), Alarm, BLE for Miflora sensor … pretty useful object, but keeping it on it will keep the Zigbee radio on, probably, and that can interfere with my current network, or when no Zigbee devices is attached the Gateway is offline for the zigbee network?

Any clue?

The zigbe radio will probably not interfere anything if you don’t have any devices paired to it. Can’t you turn it off?

I haven’t seen/found anything about the possibility to turn on/off the Zigbee radio

Well there is no traffic on it when no devices are connected so it is probably negligable