Hi! all,
I’m new to Home Assistant. I managed to add Yeelight and Broadlink RM Pro as light and switch. With Emulated_Hue, I am able to use Amazon Echo Dot to control my Yeelight and send single command via Broadlink RM Pro.
Next, I would like to send a combo infrared command for switching TV channel which consists of two infrared commands separated by a delay of 0.5 seconds. I plan to do it through script.
Here’s the problem I am facing. So far, I have no success in triggering the script by Amazon Echo Dot. I can use the following command to control my Yeelight:
“Alexa, turn on living room light”
However, when I try :
“Alexa, turn on back office light”
Echo Dot returns :"sorry, I couldn;t find a device or group named “back office light”.
Can anyone help me figure out what goes wrong and how I can use Amazon Echo Dot to control scripts?
In the script test, I used my Yeelight light for a more visible result and the relevant configuration section is like here:
customize: script.ceiling_light: emulated_hue: true emulated_hue_name: "back office light"
emulated_hue: exposed_domains: - light - script - switch
script: ceiling_light: alias: "Ceiling Light" sequence: # This is written using the Script Syntax - service: light.toggle entity_id: light.living_room_light - delay: seconds: 5 - service: light.toggle entity_id: light.living_room_light
The output of http://:8300/api/pi/lights looks like this:
> {"light.living_room_light": {"modelid": "HASS123", "name": "Living Room Light", "state": {"bri": 255, "on": true, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "light.living_room_light"}, "script.ceiling_light": {"modelid": "HASS123", "name": "back office light", "state": {"bri": 0, "on": false, "reachable": true}, "swversion": "123", "type": "Dimmable light", "uniqueid": "script.ceiling_light"}