Add Google Assistant integration (#1110)

* Add Google Assistant integration

* Fix card actions
This commit is contained in:
Paulus Schoutsen 2018-04-19 21:55:26 -04:00 committed by GitHub
parent 75ae672ef9
commit a832566715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@
<link rel="import" href="../../../src/layouts/hass-subpage.html"> <link rel="import" href="../../../src/layouts/hass-subpage.html">
<link rel="import" href="../../../src/util/hass-mixins.html"> <link rel="import" href="../../../src/util/hass-mixins.html">
<link rel="import" href='../../../src/resources/ha-style.html'> <link rel="import" href='../../../src/resources/ha-style.html'>
<link rel="import" href='../../../src/components/buttons/ha-call-api-button.html'>
<link rel="import" href="../ha-config-section.html"> <link rel="import" href="../ha-config-section.html">
@ -44,6 +45,9 @@
color: var(--primary-color); color: var(--primary-color);
font-weight: 500; font-weight: 500;
} }
a {
color: var(--primary-color);
}
</style> </style>
<hass-subpage header='Cloud Account'> <hass-subpage header='Cloud Account'>
<div class='content'> <div class='content'>
@ -90,19 +94,44 @@
<paper-card heading='Alexa'> <paper-card heading='Alexa'>
<div class="card-content"> <div class="card-content">
With the Alexa integration for Home Assistant Cloud you'll be able to control all your Home Assistant devices via any Alexa-enabled device. With the Alexa integration for Home Assistant Cloud you'll be able to control all your Home Assistant devices via any Alexa-enabled device.
<ul>
<li>
<a href='https://alexa.amazon.com/spa/index.html#skills/dp/B0772J1QKB/?ref=skill_dsk_skb_sr_2' target='_blank'>
Activate the Home Assistant skill for Alexa
</a>
</li>
<li>
<a href='https://home-assistant.io/cloud/alexa/' target='_blank'>
Config documentation
</a>
</li>
</ul>
<p><em>This integration requires an Alexa-enabled device like the Amazon Echo.</em></p> <p><em>This integration requires an Alexa-enabled device like the Amazon Echo.</em></p>
</div> </div>
</paper-card>
<paper-card heading='Google Assistant'>
<div class="card-content">
With the Google Assistant integration for Home Assistant Cloud you'll be able to control all your Home Assistant devices via any Google Assistant-enabled device.
<ul>
<li>
<a href='https://assistant.google.com/services/a/uid/00000091fd5fb875' target='_blank'>
Activate the Home Assistant skill for Google Assistant
</a>
</li>
<li>
<a href='https://home-assistant.io/cloud/google_assistant/' target='_blank'>
Config documentation
</a>
</li>
</ul>
<p><em>This integration requires a Google Assistant-enabled device like the Google Home or Android phone.</em></p>
</div>
<div class='card-actions'> <div class='card-actions'>
<a href='https://alexa.amazon.com/spa/index.html#skills/dp/B0772J1QKB/?ref=skill_dsk_skb_sr_2' target='_blank'> <ha-call-api-button
<paper-button> hass='[[hass]]'
Home Assistant Alexa skill path='cloud/google_actions/sync'
</paper-button> >Sync devices</ha-call-api-button>
</a>
<a href='https://home-assistant.io/components/cloud.alexa/' target='_blank'>
<paper-button>
Documentation
</paper-button>
</a>
</div> </div>
</paper-card> </paper-card>
</ha-config-section> </ha-config-section>