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

Supporting effects: colorloop from Home Assistant Hue #1791

Closed
Morphy99 opened this issue Jul 28, 2019 · 31 comments
Closed

Supporting effects: colorloop from Home Assistant Hue #1791

Morphy99 opened this issue Jul 28, 2019 · 31 comments
Labels
feature request Feature request stale Stale issues

Comments

@Morphy99
Copy link

Bug Report

What happened

I want to use the effects option which is normally available in HA for Hue bulbs. I've tried it with mine and I get this in the zigbee2mqtt log:
No converter available for 'effect' (colorloop)

Is this not possible to implement or is there some script I can use?

What did you expect to happen

Bulb colour cycle

How to reproduce it (minimal and precise)

My automation code:
light_colour_cycle: alias: Hue Light Colour Cycle sequence: - service: light.turn_on data: entity_id: light.fireplace_light effect: colorloop brightness: 255 transition: 5

Debug Info

zigbee2mqtt version: 1.5.1
CC253X firmware version: 20190223

@Koenkk Koenkk added the feature request Feature request label Jul 29, 2019
@trekker25
Copy link

How does this work in the Hue system? Is the color loop inside the lamp firmware?

Or is the hue bridge sending out lots of Zigbee messages?
I made a color effect directly inside HASS but is flooding the Zigbee network after a while.
(Making a disco with 8 color gu10 spots in a group. Kids like it. )

@kvvoff
Copy link

kvvoff commented Aug 8, 2019

I asked Gledopto about the effects, this is what they answered:
image

@stale
Copy link

stale bot commented Oct 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issues label Oct 7, 2019
@Koenkk
Copy link
Owner

Koenkk commented Oct 7, 2019

remove stale

@Koenkk Koenkk closed this as completed Oct 7, 2019
@Koenkk Koenkk reopened this Oct 7, 2019
@stale stale bot removed the stale Stale issues label Oct 7, 2019
@stale
Copy link

stale bot commented Dec 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issues label Dec 6, 2019
@LukeHandle
Copy link

bump

@stale stale bot removed the stale Stale issues label Dec 6, 2019
@stale
Copy link

stale bot commented Feb 4, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issues label Feb 4, 2020
@stale stale bot closed this as completed Feb 11, 2020
@burningTyger
Copy link

I'd very much like to have the loop too. I'm using a Müller tint color strip and using it with the vendor remote control it offers a color loop.

@Morphy99
Copy link
Author

Morphy99 commented May 3, 2020

Shame I'm looking at appdaemon for this but I think it's still going to flood mqtt

@poblabs
Copy link

poblabs commented Jul 9, 2020

bump?

@fwelvering
Copy link

bump?

2 similar comments
@Sven1988
Copy link

bump?

@Mr-Groch
Copy link

bump?

@Koenkk Koenkk reopened this Oct 19, 2020
@Koenkk
Copy link
Owner

Koenkk commented Oct 19, 2020

I've checked how this works with the Hue hub (https://labs.meethue.com/formulas/huelabs/colorloop) but it's doing nothing more then sending the hue_move command which is already supported (https://www.zigbee2mqtt.io/information/mqtt_topics_and_message_structure.html#zigbee2mqttfriendly_nameset).

Possibly we could make this more friendly by allowing it via e.g. {"effect": "color_loop"} but the problem I'm having with this is that it doesn't allow to specify the speed (so it can only be added if many people agree on the same default values).

@Mr-Groch
Copy link

Mr-Groch commented Oct 19, 2020

Yes, please add support for "effect" attrubute with "colorloop" value, as this is one of the standard attributes supported in light.ligt_on home assistant service: https://www.home-assistant.io/integrations/light/. Not only philips hue, but also OSRAM (LEDVANCE) bulbs supports that effect - https://community.home-assistant.io/t/supported-light-effects-for-ledvance-bulbs/195866 (maybe also some other bulbs will support this).

Maybe "transition" value can be used as time for full loop?

@github-actions github-actions bot removed the stale Stale issues label Oct 20, 2020
@Aerallo
Copy link

Aerallo commented Oct 22, 2020

Is there a way to use the hue_move command from within a home assistant script? That would be even better.

@Morphy99 Morphy99 reopened this Oct 22, 2020
@Morphy99
Copy link
Author

Is there a way to use the hue_move command from within a home assistant script? That would be even better.

Damn phone stopped responding when I opened the page and somehow hit closed!
I've implemented the hue_move via a button hold press from my IKEA remote, didn't know it existed tbh. It's just a input_boolean switch with mqtt_publish command to turn on. I was looking to control the speed as well but that would involve some kind of data template with the mqtt command which is above my skill level (or lack of!)

@gotschi
Copy link

gotschi commented Oct 22, 2020

here's what I use in zha (native HA zigbee) to set the colorloop speed for a hue bloom,
maybe this is helping in some way

  initial_state: true
  alias: Bad Bewegung
  trigger:
  - entity_id: binary_sensor.bad_motion_sensor
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      ieee: '00:17:88:01:00:1c:ef:1e'
      endpoint_id: 11
      cluster_id: 8
      command: 4
      cluster_type: in
      command_type: server
      args:
        - 51
        - 50.0
    service: zha.issue_zigbee_cluster_command
  - data:
      ieee: '00:17:88:01:00:1c:ef:1e'
      endpoint_id: 11
      cluster_id: 6
      command: 1
      cluster_type: in
      command_type: server
    service: zha.issue_zigbee_cluster_command
  - data:
      ieee: '00:17:88:01:00:1c:ef:1e'
      endpoint_id: 11
      cluster_id: 768
      command: 68
      cluster_type: in
      command_type: server
      args:
        - 7
        - 2
        - 1
        - 50.0
        - 0
    service: zha.issue_zigbee_cluster_command```

@github-actions
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale issues label Nov 22, 2020
@townsmcp
Copy link

here's what I use in zha (native HA zigbee) to set the colorloop speed for a hue bloom,
maybe this is helping in some way

  initial_state: true
  alias: Bad Bewegung
  trigger:
  - entity_id: binary_sensor.bad_motion_sensor
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      ieee: '00:17:88:01:00:1c:ef:1e'
      endpoint_id: 11
      cluster_id: 8
      command: 4
      cluster_type: in
      command_type: server
      args:
        - 51
        - 50.0
    service: zha.issue_zigbee_cluster_command
  - data:
      ieee: '00:17:88:01:00:1c:ef:1e'
      endpoint_id: 11
      cluster_id: 6
      command: 1
      cluster_type: in
      command_type: server
    service: zha.issue_zigbee_cluster_command
  - data:
      ieee: '00:17:88:01:00:1c:ef:1e'
      endpoint_id: 11
      cluster_id: 768
      command: 68
      cluster_type: in
      command_type: server
      args:
        - 7
        - 2
        - 1
        - 50.0
        - 0
    service: zha.issue_zigbee_cluster_command```

@gotschi where do you find out how to do the arguments and what each value means? I can’t seem to find out anything other than number of supported commands but not what each command does

@fitim7
Copy link

fitim7 commented Mar 14, 2021

Are there news about that? Don't understand, why there are those unnecessary effects like "blink", "breath" or "okay" .. but not a colorloop? Yes, you can start them with "hue_move", but this is just unnecessary complicated. We need a simple implemented colorloop for color devices... deconz has implemented this so long ago...

@Krystm
Copy link

Krystm commented Nov 4, 2021

I just moved over and agree this would be great, or random even to start a light with random color unless I am missing that. I saw the effect as others said in both ZHA and deconz but neither could run my network properly. So here I am.

@dm82m
Copy link

dm82m commented Nov 14, 2021

Moved from hue access point to ZHA, used “colorloop” effect before and now. Basically it’s working. But the loop was slower and smoother with hue access point compared to ZHA. Any idea here?

@townsmcp
Copy link

townsmcp commented May 8, 2022

Has anyone been able to move this further along? I like the idea of somehow using ‘transition’ to determine the loop speed

@deviantintegral
Copy link
Contributor

You can use the mqtt.publish service to trigger hue_move. I have the following in an automation for an as-slow-as-possible loop:

service: mqtt.publish
data:
  topic: zigbee2mqtt/Desk Backlight/set
  payload: "{\"state\": \"on\", \"hue_move\": 1, \"saturation_move\": 1}"

@t112013
Copy link

t112013 commented Jan 10, 2023

Does this work with ikea bulbs ?

@bplatypus
Copy link

Hi,
Does it work? Because my standard Hue bulbs are doing nothing when I select 'colorloop' in HA or in z2m web interface (under 'Exposes' tab).

For me, the following effects are doing something, others not:

  • Blink (blink once in white)
  • Breathe (works ok!)
  • Okay (become green for 2 seconds)
  • Channel_change (becomes orange for few seconds)

'Candle', 'Fireplace' and 'colorloop' are doing nothing :-(

@kristianrl
Copy link

@bplatypus and @t112013, take a look at @deviantintegral's comment: #1791 (comment) - I don't think it'll ever work with IKEA bulbs.

@bplatypus
Copy link

@kristianrl I'm not using ikea bulb. Only Philips Hue bulbs.

@Oggymator
Copy link

I can tell you, that the GLEDOPTO goods use the ZigBee Standard functions.
So yes, color loop is supported for most ZigBee Lights I think.
You can set the start color and also the speed of the color loop.

It would be awesome if we got any function like that into Z2M
@Koenkk

@slugzero
Copy link
Contributor

slugzero commented Jun 9, 2024

As of release 1.37.1, colorloop effect is available for all color lights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request stale Stale issues
Projects
None yet
Development

No branches or pull requests