-
-
Notifications
You must be signed in to change notification settings - Fork 32k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger Alexa routines from toggles and buttons #67889
Conversation
Hey there @home-assistant/cloud, @ochlocracy, mind taking a look at this pull request as it has been labeled with an integration ( |
54d244c
to
8107727
Compare
Bonehead move on my part. I was not getting events because I forgot to put |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @mdegat01 👍
8107727
to
de655d9
Compare
Proposed change
Switches and input booleans are double listed as both
Alexa.PowerController
andAlexa.ContactSensor
interfaces. This enables users to trigger routines from their state changes using the smart home option. Buttons and input buttons are also double listed asAlexa.SceneController
andAlexa.EventDetectionSensor
, the latter specifically withsupportsNotDetected
set tofalse
. This enables users to make routines which trigger when the button is pressed.This change really has no impact on existing use cases with Alexa. I specifically did not change the display categories so devices appear exactly as they did before and work in the same use cases they did before (alexa can press buttons and change switches/toggles from routines). They just now also appear as routine starter options under "smart home".
It's a bit unintuitive in this particular menu since you see this UI for buttons:
Button pretending its a presence detector
Switch pretending its a contact sensor
But it is in line with what users were already doing to solve this use case, it just makes it easier (no YAML/template knowledge required). And we can guide them through it with a bit of documentation.
This will help users interested in HA but invested in Alexa able to transition more slowly by leveraging their existing routines. It also gives all users a way to leverage devices and services which can be integrated with Alexa but not with HA.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: