Nooby: Turn on hue light in red

Hi together,

I just started to use HomeAssistant. I think its a really cool tool, but I have to get used to that tool.

So what I am doing is, to test some automatations “by click”.
For test purposes, I just have

1 Hue Switch
1 Hue color bulb

I understand how to turn off, on, flash…
Its quite easy, because of the very self explanatory user interface.

Nevertheless, when I go to automatations and choose the:
trigger: “click” on hue switch
Actions:

  • Device
  • Hue bulb
  • Turn on bulb
  • brightness_pct: 100
  • flash: long

I cannot choose any color here.

When I go to “Edit in YAML” see the following:

alias: xxx4->TEST TEST TEST
description: How to set colors
trigger:

  • device_id: 9745973c453b363405ef180a23600c99
    domain: hue
    platform: device
    type: remote_button_short_release
    subtype: turn_off
    condition: []
    action:
  • type: turn_on
    device_id: 45593a5850daab96113ac454e3ea9feb
    entity_id: light.hue_color_spot_1
    domain: light
    mode: single

I tried to add:
color_name: red --> did not work, couldnt save

or

rgb_color: 144,116,64 --> did not work, couldnt save

Error:

Message malformed: extra keys not allowed @ data [color_name]
Message malformed: extra keys not allowed @ data [rgb_color]

Would be nice to get a feedback from you where my error is.

I have absolutely no idea what it’s supposed to look like in the UI, nor how your hue devices are connected to homeassistant, but if I wanted to turn a light on red when I pressed the on button of a hue remote, this is the automation I would use…

alias: light on red
trigger:
  platform: state
  entity_id: sensor.hue_remote
  to: 'on-press' 
action:
  service: light.turn_on
  data:
    entity_id: light.1
    color_name: red

Hope this helps.

Thanks a lot, that helped!

When you choose an action in the UI, you have different types.
I used “Device” but the correct one would be “Call Service”.

Thanks for help :wink:

1 Like