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

Flash light red when motion detected

$
0
0

@MDLefevere wrote:

Hi there,

I’m trying to flash my Philips Hue Playbars red one time when a motion detector detects motion.
I’ve been searching around a bit but can’t find a way to get it working.
I’ve tried to put the following code in automation.yaml but I think I’m missing something.

#automation:
- alias: 'Flash Lights'
  trigger:
    platform: state
    entity_id: binary_sensor.0x00158d00031cd4ef_contact
    to: 'on'
  action:
    service: light.turn_on
    entity_id: light.playbar_links
      data:
        entity_id: light.playbar_links
        flash: short
        rgb_color: [252,3,3]

Any help is really appreciated :slight_smile:

Posts: 11

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles