dclbas wrote:
> While setting up the fulfillment section under dialogflow, I had another
> question for the Webhooks instruction:
>
> "In the Headers section, replace insert_your_long_lived_token_here with
> your long lived access token ID generated by Home Assistant."
>
> What do I put in for the "Enter key" entry, and for the
> "insert_your_long_lived_token_here" is it my duckdns token or where is
> it generated by Home Assistant?
>
> Thanks in advance for you help.
I assume you generated a long lived token already for the shell scripts
to use with HA_Token entry. If not, to generate a long lived token, go
to your HA GUI, click on the 3 bars in left hand corner of the GUI and
this will call up the side menu, then click on the username at the top
in my case it's "yl". This will call up the user profile, scroll down
to Long Lived Access tokens and create a token for This application
(mine is called Shell_DialogFlow) to help me remember what it's for.
When you do this you will get a long string of values which is your
token. Copy it and put it some place safe so you can use it for the
shell scripts and DialogFlow. This is basically the password to access
HA for these two applications.
I also assume in HA GUI, you have setup the integration for DialogFlow
Webhook which when enabled will give you a unique Webhook_ID to access
HA. This is located on the menu under Configuration then Integration.
Save this WebHook_ID for use in DialogFlow
Your fulfillment link in DialogFlow should look like:
Code:
--------------------
URL: https://Your_domain.duckdns.org/api/webhook/Your_web_hook_id
Headers: Authorization Bearer Your_long_lived_access_token
Content-Type application/json
DOMAINS: Enable webhook for all domains
--------------------
Ynot.
*software* - logitech media server version: 7.9.1, home assistant
0.75.3, dialogflow - v.2 api, lms controls app - voice control of lms,
openmediavault 4.1.9 - storage
*add-ons* - spotty, upnp / dlna bridge, chromecast bridge,
*players* - sonos, upnp, pi3 - pi core player 3.5.0, android- sb player
v1.4.0, airplay to googlehome and minis
*hardware* - server - i7-3.4ghz, 4gb ram, 6tb storage, debian - 4.16.5
------------------------------------------------------------------------
ynot1234567890's Profile: http://forums.slimdevices.com/member.php?userid=66569
View this thread: http://forums.slimdevices.com/showthread.php?t=109273
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins