Hello,
I have a yeelight color bulb S1, would it be possible to run a effect regardless which effect, state or color it currently is in ? Like a interruption, and then resume the previous state.
In automations i only succeeded to start a effect when i first put the command light.turn_on and include the desired effect, in this case “Disco”.
Yeelight itself has multiple fuctions like yeelight.set_mode under the call service tab, but when i select that one it says “Name of the light entity” “No matching entities found” so i cant start the effect that way.
The code as it shows in configuration.yaml:
- id: '1614535114488'
alias: You Got Mail
description: ''
trigger:
- type: opened
platform: device
device_id: 93b96b8276f0fec7cc834250a5ea0a97
entity_id: binary_sensor.door_detector_ias_zone
domain: binary_sensor
condition: []
action:
- service: media_player.play_media
data:
media_content_id: https://xxx.xxx.xxxduckdns.org:8123/local/TRescue.mp3
media_content_type: music
entity_id: media_player.bedroom_display
- service: light.turn_on
data:
effect: Disco
entity_id: light.yeelight_color4_0x00000000157fd60c
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: light.turn_off
data: {}
entity_id: light.yeelight_color4_0x00000000157fd60c
mode: single