How do you write a Google Action that posts to an API on the local network
How do you write a Google Action that posts to an API on the local network
I'm just starting out writing Google Actions for some home automation projects. I can't seem to find information on how to write an action that will POST to an API on the local network. I don't want to go outside the firewall to automate devices and services located on the local LAN. I have provided an image of what I'm looking to do.
1 Answer
1
You can't do this. The Google Home device doesn't (generally) have access to the local network and aside from basic voice processing, your Actions run in the cloud rather than the local device itself.
Most devices that appear to act locally all contact a cloud-based service to do what they want. This allows your Assistant to act on them, even when the Assistant device (such as your phone) isn't on the LAN.
Your options are pretty narrow:
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
A raspberry pi can be connected to the network and serve as a simple hub for local devices.
– Nick Felker
Aug 29 at 16:06