SunSet turn light bulb off

I tried writing a rule.
At sunride turn a HUE bulb off. The code is as follows:

  - id: "1"
      thingUID: astro:sun:local
      event: START
      channelUID: astro:sun:local:rise#event
    type: core.ChannelEventTrigger
conditions: []
  - inputs: {}
    id: "2"
      itemName: Huecolorlamp
      state: OFF
    type: core.ItemStateUpdateAction

Obviously the issue is the light did not go off in the morning. Not sure if I have the ‘Turn the light off’ part wrong, or the ‘Do this at sunrise’ part wrong. Still learning how all this works. Gotta get something to at least read the logs and see why things did not function.


If you want something external to happen, you generally need to issue a command. Commands and states are distinctly different things.

Ah, OK. So you are saying the second last line should be command: OFF? Or am I missing something totally?

Yes should use command not state

In the UI, for the Action change it to “send a command” from “update an item state”.

Thanks!! Still learning hoe OH works.