core/homeassistant/components
Phil Frost 7d6ef4445e Report states (#11973)
* 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.

* Report properties for some Alexa interfaces

Fixes (mostly) #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.
2018-01-28 17:00:34 -08:00
..
ads Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
alarm_control_panel Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
alexa Report states (#11973) 2018-01-28 17:00:34 -08:00
automation Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
binary_sensor Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
calendar Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
camera Fix 11982 - uvc don't handle null as username (#11984) 2018-01-28 10:50:23 +01:00
climate Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
cloud Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
config Fixed typo in automation.py (#11116) 2017-12-13 10:17:12 +01:00
counter Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
cover Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
deconz Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
device_tracker Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
emulated_hue Clarify emulated hue warning (#11910) 2018-01-25 11:20:37 +01:00
fan Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
frontend Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
google_assistant Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
group Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
homematic Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
http Upgrade aiohttp_cors to 0.6.0 (#11310) 2017-12-27 09:17:03 +01:00
ihc Ihc component and platforms (#10916) 2018-01-20 16:29:50 +01:00
image_processing Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
light Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
lock Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
mailbox Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
media_player Update panasonic_viera to 0.3 (#11989) 2018-01-28 09:16:06 +01:00
mqtt Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
notify Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
persistent_notification Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
recorder Upgrade sqlalchemy to 1.2.2 (#11956) 2018-01-27 11:58:52 -08:00
remember_the_milk Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
remote Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
scene Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
sensor Fixed Canary temperature sensor and remapped air quality value (#11355) 2018-01-28 15:30:46 -08:00
switch Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
system_log Add "write" service to system_log (#11901) 2018-01-26 12:41:52 +01:00
telegram_bot Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
timer Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
tts Make Google TTS secure (#11031) 2018-01-19 16:27:40 +02:00
vacuum Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
weather Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
wink Update python-wink version and multiple wink fixes/updates. (#11833) 2018-01-25 11:31:38 -05:00
zha Fix zha color probe (#11670) 2018-01-15 14:25:59 -08:00
zwave Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
__init__.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
abode.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
alarmdecoder.py Alarmdecoder add validation of the zone types (#11488) 2018-01-11 13:53:14 -08:00
alert.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
amcrest.py Protect sensitive information for Amcrest cameras (#10569) 2017-11-23 16:38:53 -08:00
android_ip_webcam.py
apcupsd.py
api.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
apple_tv.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
arduino.py
arlo.py Update Pyarlo to 0.1.2 (#11626) 2018-01-13 20:00:04 +01:00
asterisk_mbox.py Update header and make it less verbose (#11774) 2018-01-18 23:04:18 +01:00
axis.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
bbb_gpio.py
blink.py
bloomsky.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
browser.py
canary.py Fixed Canary temperature sensor and remapped air quality value (#11355) 2018-01-28 15:30:46 -08:00
coinbase.py Upgrade coinbase to 2.0.7 (#11992) 2018-01-28 18:04:40 +01:00
comfoconnect.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
configurator.py Convert configurator to use markdown (#10668) 2017-11-20 14:11:55 +01:00
conversation.py Upgrade fuzzywuzzy to 0.16.0 (#11331) 2017-12-29 10:06:39 +01:00
daikin.py Added new climate component from Daikin (#10983) 2018-01-04 11:05:27 +01:00
datadog.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
demo.py
device_sun_light_trigger.py
dialogflow.py Clean up Alexa.intent and DialogFlow.intent (#11492) 2018-01-07 01:39:32 +01:00
digital_ocean.py Upgrade python-digitalocean to 1.13.2 (#11311) 2017-12-27 09:20:44 +01:00
discovery.py (Re)Enable Daikin autodiscovery (#11842) 2018-01-21 06:08:42 +01:00
dominos.py Reload closest store on api menu request (#10962) 2017-12-05 10:47:48 +01:00
doorbird.py DoorBird feature update (#11193) 2017-12-29 10:05:45 +01:00
downloader.py Adjust logging in downloader component (#10622) 2017-11-16 22:05:08 -08:00
duckdns.py Add link to docs and update ordering (#10062) 2017-10-23 12:18:23 +02:00
dweet.py
dyson.py
ecobee.py upgrade ecobee (#11878) 2018-01-23 23:03:54 +01:00
eight_sleep.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
emoncms_history.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
enocean.py Fix for API change of new enocean package (#10328) 2017-11-04 12:58:02 +01:00
envisalink.py
feedreader.py
ffmpeg.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
foursquare.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
gc100.py Updated gc100 package requirement to 1.0.3a (#10484) 2017-11-09 17:54:45 +01:00
goalfeed.py Add Goalfeed platform (#11098) 2018-01-28 14:04:40 +01:00
google.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
google_domains.py Fix lint google-domains (#10135) 2017-10-25 15:43:02 +02:00
graphite.py
hassio.py Hass.io panel v2 (#11860) 2018-01-23 11:39:55 +01:00
hdmi_cec.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
history.py History order bugfix and opt-in option (#11686) 2018-01-16 11:48:10 -08:00
history_graph.py
hive.py Fix for hive aux_heat target temperature display (#11884) 2018-01-23 16:16:38 -08:00
hue.py Use API to discover Hue if no bridges specified (#11909) 2018-01-25 14:55:14 +01:00
ifttt.py
influxdb.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
input_boolean.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
input_datetime.py Correct input_datetime initial value parsing (#10417) 2017-11-15 23:16:22 -08:00
input_number.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
input_select.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
input_text.py Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00
insteon_local.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
insteon_plm.py
intent_script.py
introduction.py Change introduction card to use persistent notification (#10265) 2017-11-01 09:10:36 +01:00
ios.py fix ios component config generation (#10923) 2017-12-03 14:59:22 -08:00
iota.py Upgrade pyota to 2.0.4 (#11991) 2018-01-28 18:04:54 +01:00
isy994.py Huge ISY994 platform cleanup, fixes support for 5.0.10 firmware (#11243) 2017-12-26 09:26:37 +01:00
joaoapps_join.py
juicenet.py
keyboard.py
keyboard_remote.py Allow using more than one keyboard remote (#11061) 2017-12-13 20:07:23 -08:00
kira.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
knx.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
lametric.py Fix lametric sound (#10562) 2017-11-14 10:40:44 +01:00
linode.py Linode (#9936) 2017-10-27 16:19:47 +02:00
lirc.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
litejet.py
logbook.py Perform logbook filtering on the worker thread (#11161) 2017-12-16 00:04:27 -08:00
logentries.py
logger.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
lutron.py Adding support for Lutron covers (#11602) 2018-01-13 19:11:20 +01:00
lutron_caseta.py upgrade to new pylutron_caseta with TLS (#10286) 2017-11-10 12:17:25 +01:00
mailgun.py
map.py Change line separator to LN (#11662) 2018-01-15 14:24:12 -08:00
maxcube.py
media_extractor.py Upgrade youtube_dl to 2018.01.21 (#11955) 2018-01-27 11:59:07 -08:00
microsoft_face.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
mochad.py Serialize mochad requests (#11029) 2017-12-08 09:18:52 -08:00
modbus.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
mqtt_eventstream.py
mqtt_statestream.py Implement entity and domain exclude/include for Alexa (#10647) 2017-11-17 21:10:24 -08:00
mychevy.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
mycroft.py
mysensors.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
namecheapdns.py Make host optional (#10063) 2017-10-23 15:24:04 +02:00
neato.py Fix for Neato D3 and D5 (#11775) 2018-01-18 23:37:24 +01:00
nest.py
netatmo.py Netatmo httperror403 fix (#10659) 2017-11-18 14:36:01 -08:00
no_ip.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
nuheat.py add a bit more test coverage 2017-12-26 11:12:28 -08:00
nuimo_controller.py
octoprint.py Catch everything when calling to OctoPrint API to fix #10557 (#11457) 2018-01-05 18:07:09 +01:00
panel_custom.py Fix panel_custom (#10303) 2017-11-03 21:18:32 -07:00
panel_iframe.py Panel_Iframe - Allow relative urls in config (#11832) 2018-01-26 22:31:40 -08:00
pilight.py
plant.py plant - check history for min_brightness (#9534) 2018-01-18 23:46:12 -08:00
prometheus.py Support pushing all sensors and fix wrong metrics. (#11159) 2018-01-08 17:11:45 +01:00
proximity.py
python_script.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
qwikswitch.py
rainbird.py Added rainsensor (#11023) 2017-12-25 10:07:17 +01:00
raincloud.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
raspihats.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
rest_command.py
rflink.py Spelling fixes (#11940) 2018-01-27 11:58:27 -08:00
rfxtrx.py Fixed rfxtrx binary_sensor KeyError on missing optional device_class (#11925) 2018-01-26 13:45:02 +01:00
ring.py Load Ring camera only with Ring Protect plan activated (#10739) 2017-11-25 12:15:12 +01:00
rpi_gpio.py
rpi_pfio.py
rss_feed_template.py
satel_integra.py
script.py Clean up entity component (#11691) 2018-01-22 22:54:41 -08:00
scsgate.py
services.yaml Snips add say and say_actions services (new) (#11596) 2018-01-12 10:19:43 -08:00
shell_command.py Make shell_command async (#10741) 2017-11-23 17:28:31 -08:00
shiftr.py Upgrade paho-mqtt to 1.3.1 (#9874) 2017-10-15 10:12:43 -07:00
shopping_list.py Shopping list: add item HTTP API (#10674) 2017-11-20 21:44:22 -08:00
skybell.py
sleepiq.py
snips.py Snips - (fix) removed endSession mqtt response on error and unknown intents (#11908) 2018-01-24 22:50:36 -08:00
spc.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
splunk.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
statsd.py
sun.py
tado.py
tahoma.py add generic rollershutter agian, was missing in last merge (#11788) 2018-01-18 23:47:35 -08:00
tellduslive.py Upgrade tellduslive library version (closes https://github.com/home-assistant/home-assistant/issues/10922) (#10950) 2017-12-04 17:26:07 +01:00
tellstick.py Update tellcore-net to 0.4 (#11087) 2017-12-11 18:32:48 +01:00
tesla.py Fixes for PEP257 (#11810) 2018-01-20 22:35:38 -08:00
thethingsnetwork.py
thingspeak.py
toon.py Fix PEP8 and PEP257 issues (#10108) 2017-10-24 18:36:08 +02:00
tradfri.py Update pytradfri to 4.1.0 (#10521) 2017-11-22 09:37:20 +00:00
twilio.py
updater.py Core support for hass.io calls & Bugfix check_config (#11571) 2018-01-12 15:29:58 +01:00
upnp.py
usps.py
velbus.py
velux.py
vera.py Added Vera scenes (#10424) 2017-12-07 07:47:19 +01:00
verisure.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
volvooncall.py Volvo on call: Optional use of Scandinavian miles. Also add average fuel consumption property (#11051) 2017-12-10 13:57:44 -08:00
vultr.py Add platform and sensors for Vultr VPS (#9928) 2017-11-05 14:10:14 +01:00
wake_on_lan.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
waterfurnace.py Bump waterfurnace library to 0.3.0 (#11888) 2018-01-24 08:24:54 +01:00
weblink.py Weblink - Allow relative urls in config (#11808) 2018-01-26 22:30:39 -08:00
websocket_api.py Lazy loading of service descriptions (#11479) 2018-01-07 14:54:16 -08:00
wemo.py Wemo Dimmer Support (#10882) 2018-01-15 23:08:48 +01:00
xiaomi_aqara.py fixed async function called in a thread (#11882) 2018-01-23 22:44:07 +01:00
zabbix.py
zeroconf.py
zigbee.py Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00
zone.py Move constant to 'const.py' and use already defined ones (#10211) 2017-10-29 17:28:07 +01:00
zoneminder.py Remove execution file perm (#11563) 2018-01-09 23:55:14 -08:00