diff --git a/README.md b/README.md index 360e956..0c48e4e 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ def lambda_handler(event, context): response = http.request( 'POST', - '{}/alexa/smarthome'.format(base_url), + base_url, headers={ 'Authorization': 'Bearer {}'.format(token), 'Content-Type': 'application/json', @@ -197,7 +197,7 @@ def lambda_handler(event, context): * Click on the "Edit" button. * Click on the "Add environment variable" button. * Enter "BASE_URL" as the "Key". -* Enter "https://YOUR_DOMAIN" as the Value. +* Enter "https://YOUR_DOMAIN/alexa/smarthome" as the Value. * Click on the "Add environment variable" button. * Enter "DEBUG" as the "Key". * Enter "True" as the Value. diff --git a/alexa/alexa-device.html b/alexa/alexa-device.html index c2516e7..190c417 100644 --- a/alexa/alexa-device.html +++ b/alexa/alexa-device.html @@ -65,6 +65,7 @@ name: { value: "", required: true }, display_categories: { value: [], required: true, validate: function (dc) { return dc && dc.length > 0 } }, topic: { value: "", required: false }, + topic_filter: { value: false, required: false }, passthru: { value: false, required: false }, a_inputs: { value: ['AUX_1', 'AUX_2', 'AUX_3', 'AUX_4', 'AUX_5', 'AUX_6', 'AUX_7', 'BLURAY', 'CABLE', 'CD', 'COAX_1', 'COAX_2', 'COMPOSITE_1', 'DVD', 'GAME', 'HD_RADIO', 'HDMI_1', 'HDMI_2', 'HDMI_3', 'HDMI_4', 'HDMI_5', 'HDMI_6', 'HDMI_7', 'HDMI_8', 'HDMI_9', 'HDMI_10', 'HDMI_ARC', 'INPUT_1', 'INPUT_2', 'INPUT_3', 'INPUT_4', 'INPUT_5', 'INPUT_6', 'INPUT_7', 'INPUT_8', 'INPUT_9', 'INPUT_10', 'IPOD', 'LINE_1', 'LINE_2', 'LINE_3', 'LINE_4', 'LINE_5', 'LINE_6', 'LINE_7', 'MEDIA_PLAYER', 'OPTICAL_1', 'OPTICAL_2', 'PHONO', 'PLAYSTATION', 'PLAYSTATION_3', 'PLAYSTATION_4', 'SATELLITE', 'SMARTCAST', 'TUNER', 'TV', 'USB_DAC', 'VIDEO_1', 'VIDEO_2', 'VIDEO_3', 'XBOX'], required: false }, i_automation_management: { value: false, required: false }, @@ -1291,9 +1292,15 @@ + +
+ + +
+
- +