Hello
Can someone please take a look at my yaml code? I want to have a Zigbee Light bulb flash eight times before staying on for 300 seconds (five minutes). This is to occur when the Washing Machine has finished. Ideally if there was a sensor available that would tell me when the washer lid is being lifted, I could then use that to turn off the bulb, but I don’t think that option is available. I’m using the LG ThinQ App to integrate the Washer and Dryer with Home Assistant. The bulb should be triggered by the “binary_sensor.washer_wash_complete”, but that isn’t happening. I think this is the correct sensor to use. I’ve also included the most recent history of this sensor. I’ve notice (in HA history) the sensor sends an “off” signal when the wash is complete. Does this mean in my code I should have “from: on” set to “from: off”?
Thanks in advance for any help that can be provided.
- id: '1682694410171'
alias: Washer Notification
description: ''
trigger:
- platform: state
entity_id: binary_sensor.washer_wash_complete
from: 'on'
to:
condition: []
action:
- service: light.turn_on
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
target:
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 1
- service: light.turn_off
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
- delay:
seconds: 1
- service: light.turn_on
entity_id: light.washer_dryer_notification_bulb_mintransitionlight
data:
brightness: 255
rgb_color:
- 0
- 128
- 255
- delay:
seconds: 300
- service: light.turn_off