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

Change light from white to blue with automation

$
0
0

@JamesDenby wrote:

I am trying to get my first (actually second) automation to work. I have a hue color light that is normally on, and set to warm white. I have an open/close sensor on a humidor that is triggered when the humidor is opened. My first attempt to get the light to toggle when the door is opened worked fine. I then wanted to automate it so that the humidor opening would change the light from white to blue. Here is my automation:

- id: '1578250812536'
  alias: Turn light blue if sensor activated
  description: Humidor opening activates Notification
  trigger:
  - device_id: 126bc8bc99f14acfa7301e323592e76f
    domain: binary_sensor
    entity_id: binary_sensor.openclose_44
    platform: device
    type: opened
  condition: []
  action:
  - alias: ''
    data:
      brightness: 255
      color:
      - 0
      - 0
      - 255
    entity_id: light.notification
    service: light.turn_on

I built this using the automation editor within Home Assistant. Although I don’t get any errors with this, I don’t get any action either. Perhaps someone could point out the obvious mistake I am making?

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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