Read the statement by Michael Teeuw here.
Google Assistant Recipe to turn on the lights
-
I have this recipe that is executed once I say, I’m back home, Its already working,
recently I add it the model TuyaSL, SmartLife app, and Also It worked perfectly with GA,
I wanted to edit this recipe to turn on the light alongside the video playing, Can you please help me
var recipe = { transcriptionHooks: { "imBackHome": { pattern: "I am back home", command: "playVideoAndTurnOnLights" } }, commands: { "playVideoAndTurnOnLights": { shellExec: { exec: [ // Command to play the video using VLC "vlc --play-and-exit --volume 512 -f /home/---recipe/home.mp4", **(( What Can I add here to excuste the command to turn on the lights simultaneously.))** } } } }; exports.recipe = recipe;
Thank you
-
@Alexjons said in Recipe to turn on the lights:
recently I add it the model TuyaSL, SmartLife app, and Also It worked perfectly with GA,
what does that mean?
‘app’ sounds like on phone, and maybe GA on phone?
what do you say to GA on phone?
-
@sdetweil The SmartLife app is like Tuya App to control a bunch of smart home devices, I installed the model, “MMM-TuyaSL” and now I say, Jarvis, turn off the bed-room and voila.
I wish to add a command to this recipe ( that plays nice music once I’m back home, ) also to turn on the light simultaneously, but no luck so far,
I hope I was able to explain better
thank you so much
-
@Alexjons yes I understand quite well. i have a similar automation in my home assistant.
but it knows the light entities and an HA integration provides access to the device.when I enter my home zone, it unlocks the front door, turns on the lights(if it’s after sunset) and can play music if I want.
using the new HA voice support I can ask it to turn on any lights
I am sure that the tuya app provides the device identities to Google home, so they are accessible thru Google assistant (non MagicMirror)
-
@Alexjons
I’m not experienced withMMM-TuyaSL
, but that module looks likeREAD-AND-SHOW-ONLY
type. I couldn’t find any code for sending some commands or instructions outside. It means you cannot control your home devices with that module.
If you get some success with GA, it might not be related to MMM-TuyaSL, but the reason would be your HA devices are connected to GA.