Using IFTTT, I am able to send POST REST requests, which then it is able to flip the lights on/off on my Raspberry Pi.
I can make a GET REST request (using postman) to get the value of the light, but I can't seem to figure out how to get google home/assistant to read that value for me.
Value returned from the GET REST request:
{
"id": "sw1",
"state": "off",
"name": "Pi light"
}
This is the flow:
Question:
"Hey Google, is the light on or off?"
Google assistant answer:
"The light is turned on" or "The light is turned off"
I have searched everywhere, tried a couple things using IFTTT webhooks, but I just don't seem to be able to connect the dots.
How can this be achieved?