ZHA - IKEA five button remote

Credit to this post - Set a random color on a light

If you want “Left Button Short Press” and “Right Button Short Press” to mimic the default behaviour when paired with the IKEA Tradfri hub you can do the following:

Left Button Short Press

service: light.turn_on
data_template:
  hs_color:
    - >-
      {{ ((state_attr('light.living_room_lamp', 'hs_color')[0] or 0) - 30) % 360
      }}
    - 100
  transition: 1
entity_id: light.living_room_lamp

Right Button Short Press

service: light.turn_on
data_template:
  hs_color:
    - >-
      {{ (30 + (state_attr('light.living_room_lamp', 'hs_color')[0] or 0)) % 360
      }}
    - 100
  transition: 1
entity_id: light.living_room_lamp

Not optimal as the state_attr in the template refers to the entity_id, which takes away from the spirit of Blueprints, but it gets the job done :slight_smile: