zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Supporting effects: colorloop from Home Assistant Hue

Open Morphy99 opened this issue 7 years ago • 33 comments

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

Morphy99 avatar Jul 28 '19 14:07 Morphy99

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. )

trekker25 avatar Aug 07 '19 21:08 trekker25

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

kvvoff avatar Aug 08 '19 05:08 kvvoff

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[bot] avatar Oct 07 '19 06:10 stale[bot]

remove stale

Koenkk avatar Oct 07 '19 07:10 Koenkk

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[bot] avatar Dec 06 '19 07:12 stale[bot]

bump

LukeHandle avatar Dec 06 '19 08:12 LukeHandle

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[bot] avatar Feb 04 '20 10:02 stale[bot]

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.

burningTyger avatar Mar 21 '20 18:03 burningTyger

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

Morphy99 avatar May 03 '20 23:05 Morphy99

bump?

poblabs avatar Jul 09 '20 16:07 poblabs

bump?

fwelvering avatar Jul 15 '20 13:07 fwelvering

bump?

Sven1988 avatar Aug 14 '20 15:08 Sven1988

bump?

Mr-Groch avatar Oct 18 '20 14:10 Mr-Groch

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).

Koenkk avatar Oct 19 '20 11:10 Koenkk

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?

Mr-Groch avatar Oct 19 '20 14:10 Mr-Groch

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

Aerallo avatar Oct 22 '20 13:10 Aerallo

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!)

Morphy99 avatar Oct 22 '20 14:10 Morphy99

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 avatar Oct 22 '20 16:10 gotschi

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[bot] avatar Nov 22 '20 00:11 github-actions[bot]

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

townsmcp avatar Jan 23 '21 01:01 townsmcp