aioamazondevices 3.5.2__tar.gz → 3.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/PKG-INFO +10 -1
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/README.md +9 -0
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/pyproject.toml +1 -1
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/__init__.py +1 -1
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/api.py +25 -1
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/const.py +37 -0
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/LICENSE +0 -0
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/py.typed +0 -0
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/sounds.py +0 -0
- {aioamazondevices-3.5.2 → aioamazondevices-3.6.0}/src/aioamazondevices/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: aioamazondevices
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.6.0
|
4
4
|
Summary: Python library to control Amazon devices
|
5
5
|
License: Apache-2.0
|
6
6
|
Author: Simone Chemelli
|
@@ -134,6 +134,13 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
134
134
|
<sub><b>Ivan F. Martinez</b></sub>
|
135
135
|
</a>
|
136
136
|
</td>
|
137
|
+
<td align="center">
|
138
|
+
<a href="https://github.com/AzonInc">
|
139
|
+
<img src="https://avatars.githubusercontent.com/u/11911587?v=4" width="100;" alt="AzonInc"/>
|
140
|
+
<br />
|
141
|
+
<sub><b>Flo</b></sub>
|
142
|
+
</a>
|
143
|
+
</td>
|
137
144
|
<td align="center">
|
138
145
|
<a href="https://github.com/lchavezcuu">
|
139
146
|
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
@@ -141,6 +148,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
141
148
|
<sub><b>Luis Chavez</b></sub>
|
142
149
|
</a>
|
143
150
|
</td>
|
151
|
+
</tr>
|
152
|
+
<tr>
|
144
153
|
<td align="center">
|
145
154
|
<a href="https://github.com/tronikos">
|
146
155
|
<img src="https://avatars.githubusercontent.com/u/9987465?v=4" width="100;" alt="tronikos"/>
|
@@ -111,6 +111,13 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
111
111
|
<sub><b>Ivan F. Martinez</b></sub>
|
112
112
|
</a>
|
113
113
|
</td>
|
114
|
+
<td align="center">
|
115
|
+
<a href="https://github.com/AzonInc">
|
116
|
+
<img src="https://avatars.githubusercontent.com/u/11911587?v=4" width="100;" alt="AzonInc"/>
|
117
|
+
<br />
|
118
|
+
<sub><b>Flo</b></sub>
|
119
|
+
</a>
|
120
|
+
</td>
|
114
121
|
<td align="center">
|
115
122
|
<a href="https://github.com/lchavezcuu">
|
116
123
|
<img src="https://avatars.githubusercontent.com/u/22165856?v=4" width="100;" alt="lchavezcuu"/>
|
@@ -118,6 +125,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
118
125
|
<sub><b>Luis Chavez</b></sub>
|
119
126
|
</a>
|
120
127
|
</td>
|
128
|
+
</tr>
|
129
|
+
<tr>
|
121
130
|
<td align="center">
|
122
131
|
<a href="https://github.com/tronikos">
|
123
132
|
<img src="https://avatars.githubusercontent.com/u/9987465?v=4" width="100;" alt="tronikos"/>
|
@@ -22,6 +22,7 @@ from langcodes import Language
|
|
22
22
|
from multidict import MultiDictProxy
|
23
23
|
from yarl import URL
|
24
24
|
|
25
|
+
from . import __version__
|
25
26
|
from .const import (
|
26
27
|
_LOGGER,
|
27
28
|
AMAZON_APP_BUNDLE_ID,
|
@@ -105,6 +106,7 @@ class AmazonSequenceType(StrEnum):
|
|
105
106
|
Sound = "Alexa.Sound"
|
106
107
|
Music = "Alexa.Music.PlaySearchPhrase"
|
107
108
|
TextCommand = "Alexa.TextCommand"
|
109
|
+
LaunchSkill = "Alexa.Operation.SkillConnections.Launch"
|
108
110
|
|
109
111
|
|
110
112
|
class AmazonMusicSource(StrEnum):
|
@@ -158,7 +160,8 @@ class AmazonEchoApi:
|
|
158
160
|
self._language = f"{lang_maximized.language}-{lang_maximized.region}"
|
159
161
|
|
160
162
|
_LOGGER.debug(
|
161
|
-
"Initialize library: domain <amazon.%s>, language <%s>, market: <%s>",
|
163
|
+
"Initialize library v%s: domain <amazon.%s>, language <%s>, market: <%s>",
|
164
|
+
__version__,
|
162
165
|
self._domain,
|
163
166
|
self._language,
|
164
167
|
self._market,
|
@@ -1019,6 +1022,17 @@ class AmazonEchoApi:
|
|
1019
1022
|
"skillId": "amzn1.ask.1p.tellalexa",
|
1020
1023
|
"text": message_body,
|
1021
1024
|
}
|
1025
|
+
elif message_type == AmazonSequenceType.LaunchSkill:
|
1026
|
+
payload = {
|
1027
|
+
**base_payload,
|
1028
|
+
"targetDevice": {
|
1029
|
+
"deviceType": device.device_type,
|
1030
|
+
"deviceSerialNumber": device.serial_number,
|
1031
|
+
},
|
1032
|
+
"connectionRequest": {
|
1033
|
+
"uri": "connection://AMAZON.Launch/" + message_body,
|
1034
|
+
},
|
1035
|
+
}
|
1022
1036
|
else:
|
1023
1037
|
raise ValueError(f"Message type <{message_type}> is not recognised")
|
1024
1038
|
|
@@ -1099,6 +1113,16 @@ class AmazonEchoApi:
|
|
1099
1113
|
device, AmazonSequenceType.TextCommand, message_body
|
1100
1114
|
)
|
1101
1115
|
|
1116
|
+
async def call_alexa_skill(
|
1117
|
+
self,
|
1118
|
+
device: AmazonDevice,
|
1119
|
+
message_body: str,
|
1120
|
+
) -> None:
|
1121
|
+
"""Call Alexa.LaunchSkill to launch a skill."""
|
1122
|
+
return await self._send_message(
|
1123
|
+
device, AmazonSequenceType.LaunchSkill, message_body
|
1124
|
+
)
|
1125
|
+
|
1102
1126
|
async def set_do_not_disturb(self, device: AmazonDevice, state: bool) -> None:
|
1103
1127
|
"""Set do_not_disturb flag."""
|
1104
1128
|
payload = {
|
@@ -150,6 +150,14 @@ DEVICE_TO_IGNORE: list[str] = [
|
|
150
150
|
"A2TF17PFR55MTB", # Alexa App for Android
|
151
151
|
"A1RTAM01W29CUP", # Alexa App for PC
|
152
152
|
"A18BI6KPKDOEI4", # ecobee4 Smart Thermostat with Built-in Alexa - issue #199
|
153
|
+
"A21Z3CGI8UIP0F", # Denon AVR-X1600H - issue #253
|
154
|
+
"A15ERDAKK5HQQG", # unsupported Sonos devices - issue #257
|
155
|
+
"A3GZUE7F9MEB4U", # Sony headset WH-1000XM3 - issue #269
|
156
|
+
"A23ZD3FSVQM5EE", # Sony headset WH-1000XM2 - issue #326
|
157
|
+
"A7S41FQ5TWBC9", # Sony headset WH-1000XM4 - issue #327
|
158
|
+
"A1L4KDRIILU6N9", # Sony headset WH-CH700N - issue #345
|
159
|
+
"A2IJJ9QXVOSYK0", # JBL TUNE770NC - issue #391
|
160
|
+
"AKOAGQTKAS9YB", # Amazon Echo Connect - issue #406
|
153
161
|
]
|
154
162
|
|
155
163
|
DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
@@ -262,6 +270,16 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
262
270
|
"model": "Fire Tablet HD 10 Plus",
|
263
271
|
"hw_version": "Gen11",
|
264
272
|
},
|
273
|
+
"A2OSP3UA4VC85F": {
|
274
|
+
"manufacturer": "Sonos Inc.",
|
275
|
+
"model": "Sonos One",
|
276
|
+
"hw_version": "Gen1",
|
277
|
+
},
|
278
|
+
"A2RG3FY1YV97SS": {
|
279
|
+
"manufacturer": "Sonos Inc.",
|
280
|
+
"model": "Sonos Move",
|
281
|
+
"hw_version": "Gen1",
|
282
|
+
},
|
265
283
|
"A2RU4B77X9R9NZ": {
|
266
284
|
"model": "Echo Link Amp",
|
267
285
|
"hw_version": None,
|
@@ -274,6 +292,11 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
274
292
|
"model": "Echo Show 8",
|
275
293
|
"hw_version": "Gen3",
|
276
294
|
},
|
295
|
+
"A2Z8O30CD35N8F": {
|
296
|
+
"manufacturer": "Sonos Inc.",
|
297
|
+
"model": "Sonos Arc",
|
298
|
+
"hw_version": "Gen1",
|
299
|
+
},
|
277
300
|
"A303PJF6ISQ7IC": {
|
278
301
|
"model": "Echo Auto",
|
279
302
|
"hw_version": "Gen1",
|
@@ -381,6 +404,11 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
381
404
|
"model": "Fire TV Stick",
|
382
405
|
"hw_version": "Gen1",
|
383
406
|
},
|
407
|
+
"AECNEXTDY5AD9": {
|
408
|
+
"manufacturer": "Cozyla",
|
409
|
+
"model": "Frame with Alexa",
|
410
|
+
"hw_version": None,
|
411
|
+
},
|
384
412
|
"AIPK7MM90V7TB": {
|
385
413
|
"model": "Echo Show 10",
|
386
414
|
"hw_version": "Gen3",
|
@@ -397,6 +425,10 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
397
425
|
"model": "Echo Stereo Pair",
|
398
426
|
"hw_version": "Virtual",
|
399
427
|
},
|
428
|
+
"AQ24620N8QD5Q": {
|
429
|
+
"model": "Echo Show 15",
|
430
|
+
"hw_version": "Gen2",
|
431
|
+
},
|
400
432
|
"ASQZWP4GPYUT7": {
|
401
433
|
"model": "Echo pop",
|
402
434
|
"hw_version": "Gen1",
|
@@ -410,6 +442,11 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
410
442
|
"model": "ecobee Switch+",
|
411
443
|
"hw_version": None,
|
412
444
|
},
|
445
|
+
"AVD3HM0HOJAAL": {
|
446
|
+
"manufacturer": "Sonos Inc.",
|
447
|
+
"model": "Sonos One",
|
448
|
+
"hw_version": "Gen2",
|
449
|
+
},
|
413
450
|
"AVU7CPPF2ZRAS": {
|
414
451
|
"model": "Fire Tablet HD 8 Plus",
|
415
452
|
"hw_version": "Gen10",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|