mikejac/node-red-contrib-google-smarthome

A request of support to improve the list of commands

Closed this issue · 2 comments

Hello,
I use the node-red-contrib-google-smarthome software to drive a small robot like R2D2. It works very well! I configured the Device node as a REMOTE_CONTROL in Node-Red. So, my robot runs if I say 'Hey Google avance' (I'm French), it stops if I say 'Hey Google arrete', it goes to the right side if I say 'Hey Google précédant', it goes to the left side if I say 'Hey Google suivant'. What do I have to do to add many new commands like 'go to the kitchen' or 'take the pencil' ? Is there a device with wich I can find in the message payload what I said in GOOGLE ASSISTANT ? Or Is there a device that uses a JASON input file where the commands are described and that I can easily modify ?
Thanks for your help !
Best regards.
Serge Martin

Hi

Interesting project!

Unfortunately you can't really add new commands. At least not in Google smarthome projects. The commands for the smarthome stuff are defined by Google and cannot be changed.

You would have to use node-red-contrib-google-action-dialogflow or similar to freely define new commands.

In node-red-contrib-google-smarthome, you can try using other traits. These are just some ideas that might work. I didn't try it myself, so I don't know if it actually works.

The Application trait allows you to define a list of applications. It's intended for things like "Hey Google, start Netflix on the smart TV". You could try adding applications named "take the pencil" etc.

For "go to the kitchen", the StartStop trait might be used. This trait trait takes a list of zones. It's intended for vacuum cleaners and similar devices, so you can say "Hey Google, send the vacuum cleaner to the bedroom".

Or you could try using scenes. They are intended for things like "Hey Google, start evening mode" to dim all lights down. You can try naming your scene "take the pencil" and say "Hey Google, activate take the pencil" (or maybe even "take the pencil" if Google is smart enough to recognize the scene by its name only).

Best regards
Caprico

Closing this now. Feel free to reopen.