ControllerX. Bring full functionality to light and media player controllers

Hi Xavi

I can confirm that it fires a 1, 2 and 3 clicks and hold on each button using Z2M.

I notice you only have one of the Aqara remotes supported. Can I provide details for you on those? I have those throughout my house. I have the one button, two, powered and not powered.

I will have a play with your custom config above.

Thanks again for the quick responses

PS I also have a number of E1810 Controllers. I have tested your software on a single Gledopto bulb. Everything works. The only thing that is not quite right is the single click in the middle. If you click to toggle off when you click again to toggle on it starts at the lowest brightness, vs the brightness it was turn off at. I can click to turn up the brightness but is this the sort of behavior you expect?

Hi @bdb1,

Thanks for letting mw know about the triple action. I added this into the docs and it will be reflected in the next release.

I have added them already in the dev branch. This is the issue related to this.

What do you mean by powered and not powered? I thought these controllers were all battery-powered.

No, this is not the default behaviour. You are not the first one that experienced this. I will like to know what is the problem behind this. I will PM you if you don’t mind so you can help me debug this further.

Thanks :slight_smile:

Trying to get Pico Remotes working with these errors on start

2020-05-04 11:50:10.187171 INFO pico_office_hallway: 🎮 ControllerX v2.6.0
2020-05-04 11:50:10.187651 WARNING pico_office_hallway: ------------------------------------------------------------
2020-05-04 11:50:10.188145 WARNING pico_office_hallway: Unexpected error running initialize() for pico_office_hallway
2020-05-04 11:50:10.188550 WARNING pico_office_hallway: ------------------------------------------------------------
2020-05-04 11:50:10.189217 WARNING pico_office_hallway: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 143, in initialize_app
    await init()
  File "/config/appdaemon/apps/controllerx/core/type/light_controller.py", line 116, in initialize
    await super().initialize()
  File "/config/appdaemon/apps/controllerx/core/controller.py", line 262, in initialize
    await super().initialize()
  File "/config/appdaemon/apps/controllerx/core/controller.py", line 31, in initialize
    integration = self.get_integration(self.args["integration"])
KeyError: 'integration'

2020-05-04 11:50:10.189571 WARNING pico_office_hallway: ------------------------------------------------------------

Here is my Configuration

pico_office_hallway:
  module: controllerx
  class: LutronCasetaProPicoLightController
  controller: sensor.remotes_pico
  intergration: state
  light: light.office
  # mapping:
  #   "1": on_full_brightness
  #   "8": hold_brightness_up
  #   "2": set_half_brightness
  #   "16": hold_brightness_down
  #   "4": "off"
  #   "0": release
  # smooth_power_on: true

Tried with and without mapping same results

Any ideas of why there is the error I have the sensors working via Node Red but have disconnected so there is no conflict. Is it my integration of “state”?
Yes I’m using @upsert intergration for Lutron Caseta Pro

Hi @DrJeff,

I see there is a typo in your configuration, you typed intergration and it should be integration.

This is why you received this error, because it cannot find the integration in your config.

1 Like

Oops never can Spell! :nerd_face: Thanks

Works Like a charm!

1 Like

Are you using the Connected bulb remotes? LZL4BWHL01 (Lutron) I do not get the ON button in events on any of my remotes. That is a total of about 5 remotes in Deconz. So I know its not your configuration but just wanted to know if any one else is having the same problem.

Should be button event 1002

I do not possess any Lutron device, so I cannot help you with this, but do you mean that when you press the top button you not receive the event 1002? However, you receive the others?

Correct I get all other states but the “on” “1002” state, but it’s on all my Connected Bulb Remotes in controllerX or even in deconz_event

I have a feeling it’s a bigger issue with DeconZ

1 Like

Yes, I guess so as well. There is a discord server for deconz, you can probably ask there:

1 Like

Aqara powered ie 240v versions of the 1 and two pole switches.

Happy for you to PM me anytime :slight_smile: Maybe we set up a time when you and I can co-ordinate time zones. Very happy to help with this excellent product.

Based on the Aqara Opple?

I already did. I sent you a couple or 3 questions for you to explore, to know where is the problem coming from.

Thanks :slight_smile:

v2.7.0 is now released :partying_face:

This minor change does not contain breaking changes.

:pencil2: Features

  • Add open_position and close_position attributes to CoverController. Defaults are 0 for close and 100 for open.

:hammer: Fixes

  • Add triple action to WXCJKG13LM documentation
  • Make CustomCoverController available to the user configuration [ #77 ]

:video_game: New devices

@cooldude204 you can test out the new integration for Lutron Aurora.

@bdb1 you can test out the new integration for the two other remaining Aqara Opple

Thanks :slight_smile:

As soon as they arrive from China. They are on a slow boat I think!
Can I also get the upgrade instructions?

Just testing now for you.

Don’t worry. Just found it in HACS

Hey Xavi

OK so This is what I have in apps.yaml

It does nothing

controller_test:
  module: controllerx
  class: CustomLightController
  controller: jack_tradfri
  integration: deconz
  light: group.jacks_lights
  mapping:
    4002: off
    5002: on

Hi @bdb1,

If you want the latest update (v2.7.0), you will need to get it from HACS, but you will also need to restart the AppDaemon addon.

So if you press the left/right arrow of your E1810 controller, it does not turn on the group of lights?

Cheers,
Xavi M.

Have updated to 2.7 just now, restarted appdaemon. Pasted in the code above. Hit save. Waited. Pushed the arrows and all other buttons, nothing. Paste back in the original code. Bam away she goes. Checked that deconz is sending the 4002 and 5002 and it is.

I only have the code mentioned above in the .yaml. Is that correct?

My bad… I gave you the wrong config. AppDaemon uses PyYAML to parse the yaml and this parses on and off keywords to booleans. The correct configuration to try is:

controller_test:
  module: controllerx
  class: CustomLightController
  controller: jack_tradfri
  integration: deconz
  light: group.jacks_lights
  mapping:
    4002: "off"
    5002: "on"

My bad, sorry for this.