ndomaingue / SEMS

Integration of SEMS Portal for Solar PV plant with IFTTT and Google Nest Mini Hub
0 stars 0 forks source link

IFTTT SEMS Applet for Google Home #3

Open ndomaingue opened 3 years ago

ndomaingue commented 3 years ago

User verbally asks Google Home for details on the current power generation statistics. Applet collects up to data data from the SEMS server and speaks the information back to the requester.

The applet needs to make two REST API calls, the first to collect a token and the second to use the token to collect the data. Selected pieces of data will be extracted and structured for reporting. The report notification must be able to say things like "Kilowatts" and "Kilowatt hours", so some mapping from acronyms to long text is required. Ideally, the time of day and whether the Sun is up can be used to present a richer and more meaningful report can be applied.

ndomaingue commented 3 years ago

IFTTT Triger: Google Assistant - Say a Simple Phrase

To which, Google Assistant responds: "Connecting to SEMS Portal to collect the information. Please wait."

ndomaingue commented 3 years ago

Creating the Then action is a challenge. The service 'Webhooks' is for sending REST APIs, but in the default view, it does not seem to enable customisation of the Headers. Customising the Headers is critical for the REST API flow to the SEMS Portal.

ndomaingue commented 3 years ago

There is a recent Reddit post from IFTTT asking for next ideas. I have responded with request that Webhooks include customisation of headers. https://www.reddit.com/r/ifttt/comments/ngezx8/ifttt_is_expanding_its_services_tell_us_what_youd/