Is there a Google Home integration example?

It’s pretty straight forward using IFTTT. I have a few photons controlling my sofa and garage door which can be controlled using Google Home voice commands.

With IFTTT you can select Google Assistant as the IF and recognize any voice command (exclude hey/ok google when you write it). Then THAT a Particle function as the output. Something like this should be enough to control the onboard LED.

#include "application.h"

int toggle_light(String command) {
    digitalWrite(D7, !digitalRead(D7));
    return 0;
}

void setup() {
    pinMode(D7, OUTPUT);
    Particle.function("toggle_light", toggle_light);
}
1 Like