aioamazondevices 6.1.3__py3-none-any.whl → 6.2.0__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "6.1.3"
3
+ __version__ = "6.2.0"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -30,6 +30,7 @@ from yarl import URL
30
30
  from . import __version__
31
31
  from .const import (
32
32
  _LOGGER,
33
+ ALEXA_INFO_SKILLS,
33
34
  AMAZON_APP_BUNDLE_ID,
34
35
  AMAZON_APP_ID,
35
36
  AMAZON_APP_NAME,
@@ -998,6 +999,10 @@ class AmazonEchoApi:
998
999
  "uri": "connection://AMAZON.Launch/" + message_body,
999
1000
  },
1000
1001
  }
1002
+ elif message_type in ALEXA_INFO_SKILLS:
1003
+ payload = {
1004
+ **base_payload,
1005
+ }
1001
1006
  else:
1002
1007
  raise ValueError(f"Message type <{message_type}> is not recognised")
1003
1008
 
@@ -1088,6 +1093,14 @@ class AmazonEchoApi:
1088
1093
  device, AmazonSequenceType.LaunchSkill, message_body
1089
1094
  )
1090
1095
 
1096
+ async def call_alexa_info_skill(
1097
+ self,
1098
+ device: AmazonDevice,
1099
+ message_type: str,
1100
+ ) -> None:
1101
+ """Call Info skill. See ALEXA_INFO_SKILLS . const."""
1102
+ return await self._send_message(device, message_type, "")
1103
+
1091
1104
  async def set_do_not_disturb(self, device: AmazonDevice, state: bool) -> None:
1092
1105
  """Set do_not_disturb flag."""
1093
1106
  payload = {
aioamazondevices/const.py CHANGED
@@ -432,3 +432,23 @@ DEVICE_TYPE_TO_MODEL: dict[str, dict[str, str | None]] = {
432
432
  "hw_version": "Gen2",
433
433
  },
434
434
  }
435
+
436
+ ALEXA_INFO_SKILLS = [
437
+ "Alexa.Calendar.PlayToday",
438
+ "Alexa.Calendar.PlayTomorrow",
439
+ "Alexa.Calendar.PlayNext",
440
+ "Alexa.Date.Play",
441
+ "Alexa.Time.Play",
442
+ "Alexa.News.NationalNews",
443
+ "Alexa.FlashBriefing.Play",
444
+ "Alexa.Traffic.Play",
445
+ "Alexa.Weather.Play",
446
+ "Alexa.CleanUp.Play",
447
+ "Alexa.GoodMorning.Play",
448
+ "Alexa.SingASong.Play",
449
+ "Alexa.FunFact.Play",
450
+ "Alexa.Joke.Play",
451
+ "Alexa.TellStory.Play",
452
+ "Alexa.ImHome.Play",
453
+ "Alexa.GoodNight.Play",
454
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aioamazondevices
3
- Version: 6.1.3
3
+ Version: 6.2.0
4
4
  Summary: Python library to control Amazon devices
5
5
  License: Apache-2.0
6
6
  Author: Simone Chemelli
@@ -0,0 +1,12 @@
1
+ aioamazondevices/__init__.py,sha256=oT6YOexUE4rV5rAbI-rUuZ6XGk2jXwetnm_lzg-wTSU,276
2
+ aioamazondevices/api.py,sha256=spUjgxRW9qPKVzV9RwIX4QzkxrqwCrvM-MbdSxAE6u4,41973
3
+ aioamazondevices/const.py,sha256=38dhNRpwEJf0FgFQGjt3ONhLdQxjiNrnlcrmQ1AY8oU,11306
4
+ aioamazondevices/exceptions.py,sha256=JDnSFi_7oEhqK31sHXf0S_cyMoMjiRJuLp4ow7mYgLY,643
5
+ aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ aioamazondevices/query.py,sha256=AGHHzefzfYzB7RLWPtlFxYc_rpUZdoeApsU2jYz3urQ,2053
7
+ aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
8
+ aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
9
+ aioamazondevices-6.2.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
10
+ aioamazondevices-6.2.0.dist-info/METADATA,sha256=HLWbqGs_h6-Jb-Ck5ojVO3S87c_KLT8MiuIbxAsOiU8,7623
11
+ aioamazondevices-6.2.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
12
+ aioamazondevices-6.2.0.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=xeVWui7vweRIpKp3JwYLPcG-tXnRhz-cFfImDeXVFWU,276
2
- aioamazondevices/api.py,sha256=C4XD9GvRmwL-sc-dRlaWzarlLzeqq8N4rTymCdyF0-Q,41579
3
- aioamazondevices/const.py,sha256=bqJmaStichdm0zB1RQYXa4OPz2gU2JnmUFQHeItlnZE,10808
4
- aioamazondevices/exceptions.py,sha256=JDnSFi_7oEhqK31sHXf0S_cyMoMjiRJuLp4ow7mYgLY,643
5
- aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- aioamazondevices/query.py,sha256=AGHHzefzfYzB7RLWPtlFxYc_rpUZdoeApsU2jYz3urQ,2053
7
- aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
8
- aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
9
- aioamazondevices-6.1.3.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
10
- aioamazondevices-6.1.3.dist-info/METADATA,sha256=WBhhAbei9OCzT63keD7HIoOVOnmu3Vy2EqitmtTEADQ,7623
11
- aioamazondevices-6.1.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
12
- aioamazondevices-6.1.3.dist-info/RECORD,,