Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to use the example on using controllerx for color change on E1810 #52

Closed
fribse opened this issue Mar 7, 2020 · 8 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@fribse
Copy link

fribse commented Mar 7, 2020

Question

I'm trying to use the example in the docs, as the E1810 is already paired to the bulbs directly, I would like for it to handle the color cycling.

Additional information

  • Devices involved:
    • Model: E1810
    • TRÅDFRI bulb E27 CWS opal 600lm
  • Integration: deconz
  • AppDaemon version: 4.0.3
  • ControllerX version: 2.3.1
  • HACS version (if installed from there): 0.22.2
  • Home Assistant Core version: 0.106.5

AppDaemon app configuration

kitchen_dinnertable:
  module: controllerx
  class: E1810Controller
  controller: dinnertable_control 
  integration: deconz
  light: group.dinnertable
  actions:
    - arrow_left_hold
    - arrow_left_release
    - arrow_right_hold
    - arrow_right_release
    - arrow_right_click
    - arrow_left_click ```

## Logs

```text

Additional Context

For some reason the colous doesn't change, I can't figure out what I did wrong?
The controller name is fetched from deconz_event.

@fribse fribse added the question Further information is requested label Mar 7, 2020
@htvekov
Copy link
Contributor

htvekov commented Mar 7, 2020

Hi' fribse.

Only have z2m integration in house, but here it works with a single bulb.
Have you tested controlling a single bulb, just to rule out any issues with groups ?

Ikea bulbs HAVE issues with multiple attributes in calls (brightness and color change).

For more info on these Ikea bulb issues, you could check this (massive) thread: #45

Ciao !

@htvekov
Copy link
Contributor

htvekov commented Mar 7, 2020

Just made a group with a single bulb and tested.
Color change ok via z2m integration with exact same bulb and controller.

@fribse
Copy link
Author

fribse commented Mar 7, 2020

Really weird, I've changed it to a single bulb and checked that it was known as that in HA, and I see the events:

{
    "event_type": "deconz_event",
    "data": {
        "id": "dinnertable_control",
        "unique_id": "00:0d:6f:ff:fe:21:83:ac",
        "event": 4002
    },
    "origin": "LOCAL",
    "time_fired": "2020-03-07T16:05:27.754047+00:00",
    "context": {
        "id": "xxx",
        "parent_id": null,
        "user_id": null
    }
}

The apps.yaml:

kitchen_dinnertable:
  module: controllerx
  class: E1810Controller
  controller: dinnertable_control 
  integration: deconz
  light: light.dinnertable_1
  actions:
    - arrow_left_hold
    - arrow_left_release
    - arrow_right_hold
    - arrow_right_release
    - arrow_right_click
    - arrow_left_click  

I don't get it?

@sreknob
Copy link
Contributor

sreknob commented Mar 7, 2020

@fribse - what happens if you remove the actions? Unless you're using the remote for multiple things, you shouldn't have to list the actions you want.

@htvekov
Copy link
Contributor

htvekov commented Mar 7, 2020

@fribse

Can you change colors at all directly from HA via service calls ?
Just like my test example below (revice to your own entity_id)
The transition attribute is not actually needed unless you're using a Hue bridge for your lights.

image

@fribse
Copy link
Author

fribse commented Mar 7, 2020

@sreknob If I remove the 'actions' section then the coor change works, but the 'turn off/on' goes bezerk as it both gets the command directly and via the controllerx 😁
@htvekov I can change colors both via Google and via service calls.

@sreknob
Copy link
Contributor

sreknob commented Mar 7, 2020

@fribse - do you need it paired directly as well?

I think I see the issue though - you are using z2m actions but using deconz integration. You need to either use the doconz mappings or a custom controller with just the mappings you want.

Try:

kitchen_dinnertable:
  module: controllerx
  class: E1810Controller
  controller: dinnertable_control 
  integration: deconz
  light: light.dinnertable_1
  actions:
    - 4001
    - 4002
    - 4003
    - 5001
    - 5002
    - 5003

@fribse
Copy link
Author

fribse commented Mar 9, 2020

@sreknob You are absolutely right, as soon as I gave it the numbers instead it worked. I thought they were translated. Ok, good to know, now I can continue moving the other controllers and lights over that has color change as well :-)
Thankyou!

@fribse fribse closed this as completed Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants