aioamazondevices 3.5.3__tar.gz → 3.7.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.3 → aioamazondevices-3.7.0}/PKG-INFO +10 -1
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/README.md +9 -0
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/pyproject.toml +1 -1
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/src/aioamazondevices/__init__.py +1 -1
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/src/aioamazondevices/api.py +25 -1
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/src/aioamazondevices/const.py +5 -0
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/LICENSE +0 -0
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/src/aioamazondevices/py.typed +0 -0
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.0}/src/aioamazondevices/sounds.py +0 -0
- {aioamazondevices-3.5.3 → aioamazondevices-3.7.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.7.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 = {
|
@@ -242,6 +242,11 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
|
|
242
242
|
"model": "Echo Dot Clock",
|
243
243
|
"hw_version": "Gen5",
|
244
244
|
},
|
245
|
+
"A2F7IJUT32OLN4": {
|
246
|
+
"manufacturer": "Samsung Electronics Co., Ltd.",
|
247
|
+
"model": "Soundbar Q990D",
|
248
|
+
"hw_version": None,
|
249
|
+
},
|
245
250
|
"A2GFL5ZMWNE0PX": {
|
246
251
|
"model": "Fire TV",
|
247
252
|
"hw_version": "Gen3",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|