I’m having an issue using the Google SDK to send a command to turn off a night light that used to work.
This device is a Tuya smart oil diffuser with a night light. If I use my voice I can turn off the night light. If I even use the Google SDK send TXT command in my automation and hit run it works.
But having this setup as an automation based off time or sun rise as a trigger will not turn the night light off.
I’ve even tried to setup a script with same results. I’m at a loss why this won’t work.
alias: Reese's Night Light Off
description: ''
trigger:
- platform: sun
event: sunrise
offset: 0
condition: []
action:
- service: google_assistant_sdk.send_text_command
data:
command: Turn Off Reese's Night Light
mode: single
I am creating this automation in Home Assistant UI. The odd part is I have a two of these night lights for both my kids and I have another automation setup that runs a script to turn one off and change the other to a lower brightness at night before they go to bed. This one works.
Only this automation to turn it off in the morning wont work. I’ve tried a set time or sunrise and none work but used to at one point. Also power cycled the device just to be sure it wasn’t a glitch. Sorry fairly new to HA and still learning.