Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95486

Automation to set same random colour on two Hue lights

$
0
0

@m90att wrote:

Hi,

I hope this is the right category…

For a while I’ve used the following to change my Hue lights colour randomly at 5 minute intervals.

- id: '1573472848968'
  alias: Hall Lightstrip Random
  description: ''
  trigger:
  - hours: '*'
    minutes: /05
    platform: time_pattern
    seconds: '00'
  condition:
  - after: sunset
    condition: sun
  - before: '21:59:59'
    condition: time
  action:
  - data:
      effect: random
      entity_id: light.hue_lightstrip_plus_1
    service: light.turn_on

Now I have a second Hue lightstrip that I want to operate the same way as the first, same colour, changing at the same time. I added the following to the action…

  - data:
      effect: random
      entity_id: light.hue_lightstrip_plus_2
    service: light.turn_on

and it turned on and changed at the same time but to a different random colour unsurprisingly.

Can anyone suggest how I can get them both to change to the same random colour please?

Many thanks,

Matt

Posts: 8

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95486

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>