Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report states #11973

Merged
merged 3 commits into from Jan 29, 2018
Merged

Report states #11973

merged 3 commits into from Jan 29, 2018

Commits on Jan 28, 2018

  1. Refactor Alexa Smart Home API

    Having an object per interface will make it easier to support
    properties.
    
    Ideally, properties are reported in context in all responses. However
    current implementation reports them only in response to a ReportState
    request. This seems to work sufficiently. As long as the device is
    opened in the Alexa app, Amazon will poll the device state every few
    seconds with a ReportState request.
    bitglue committed Jan 28, 2018
    Configuration menu
    Copy the full SHA
    80377f6 View commit details
    Browse the repository at this point in the history
  2. Report properties for some Alexa interfaces

    Fixes (mostly) home-assistant#11874.
    
    Other interfaces will need properties implemented as well.
    
    Implementing properties for just PowerController seems sufficient to
    eliminate the "There was a problem." error for any device that supports
    it, even if other interfaces are supported. Of course the additional
    properties will be reported incorrectly in the Alexa app.
    
    Includes a minor bugfix: `reportable` was previously placed incorrectly
    in the responses, so Amazon was ignoring it.
    bitglue committed Jan 28, 2018
    Configuration menu
    Copy the full SHA
    5eae9d1 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2018

  1. Configuration menu
    Copy the full SHA
    fa5b5df View commit details
    Browse the repository at this point in the history