aioamazondevices 6.4.5__py3-none-any.whl → 9.0.2__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.
- aioamazondevices/__init__.py +1 -1
- aioamazondevices/api.py +333 -825
- aioamazondevices/const/__init__.py +1 -0
- aioamazondevices/{const.py → const/devices.py} +47 -106
- aioamazondevices/const/http.py +36 -0
- aioamazondevices/const/metadata.py +44 -0
- aioamazondevices/const/queries.py +97 -0
- aioamazondevices/const/schedules.py +61 -0
- aioamazondevices/{sounds.py → const/sounds.py} +2 -1
- aioamazondevices/http_wrapper.py +349 -0
- aioamazondevices/login.py +445 -0
- aioamazondevices/structures.py +65 -0
- aioamazondevices/utils.py +23 -1
- {aioamazondevices-6.4.5.dist-info → aioamazondevices-9.0.2.dist-info}/METADATA +18 -4
- aioamazondevices-9.0.2.dist-info/RECORD +19 -0
- aioamazondevices/query.py +0 -84
- aioamazondevices-6.4.5.dist-info/RECORD +0 -12
- {aioamazondevices-6.4.5.dist-info → aioamazondevices-9.0.2.dist-info}/WHEEL +0 -0
- {aioamazondevices-6.4.5.dist-info → aioamazondevices-9.0.2.dist-info}/licenses/LICENSE +0 -0
aioamazondevices/query.py
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"""GraphQL Queries."""
|
|
2
|
-
|
|
3
|
-
QUERY_DEVICE_DATA = """
|
|
4
|
-
query getDevicesBaseData {
|
|
5
|
-
listEndpoints(
|
|
6
|
-
listEndpointsInput: {
|
|
7
|
-
displayCategory: "ALEXA_VOICE_ENABLED"
|
|
8
|
-
includeHouseholdDevices: true
|
|
9
|
-
}
|
|
10
|
-
)
|
|
11
|
-
{
|
|
12
|
-
endpoints {
|
|
13
|
-
endpointId: id
|
|
14
|
-
friendlyNameObject { value { text } }
|
|
15
|
-
manufacturer { value { text } }
|
|
16
|
-
model { value { text} }
|
|
17
|
-
serialNumber { value { text } }
|
|
18
|
-
softwareVersion { value { text } }
|
|
19
|
-
creationTime
|
|
20
|
-
enablement
|
|
21
|
-
displayCategories {
|
|
22
|
-
all { value }
|
|
23
|
-
primary { value }
|
|
24
|
-
}
|
|
25
|
-
alexaEnabledMetadata {
|
|
26
|
-
iconId
|
|
27
|
-
isVisible
|
|
28
|
-
category
|
|
29
|
-
capabilities
|
|
30
|
-
}
|
|
31
|
-
legacyIdentifiers {
|
|
32
|
-
dmsIdentifier {
|
|
33
|
-
deviceType { value { text } }
|
|
34
|
-
}
|
|
35
|
-
chrsIdentifier { entityId }
|
|
36
|
-
}
|
|
37
|
-
legacyAppliance { applianceId }
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
"""
|
|
42
|
-
|
|
43
|
-
QUERY_SENSOR_STATE = """
|
|
44
|
-
query getEndpointState($endpointId: String!, $latencyTolerance: LatencyToleranceValue) {
|
|
45
|
-
endpoint(id: $endpointId) {
|
|
46
|
-
endpointId: id
|
|
47
|
-
features(latencyToleranceValue: $latencyTolerance) {
|
|
48
|
-
name
|
|
49
|
-
instance
|
|
50
|
-
properties {
|
|
51
|
-
name
|
|
52
|
-
type
|
|
53
|
-
accuracy
|
|
54
|
-
error { type message }
|
|
55
|
-
__typename
|
|
56
|
-
... on Illuminance {
|
|
57
|
-
illuminanceValue { value }
|
|
58
|
-
timeOfSample
|
|
59
|
-
timeOfLastChange
|
|
60
|
-
}
|
|
61
|
-
... on Reachability {
|
|
62
|
-
reachabilityStatusValue
|
|
63
|
-
timeOfSample
|
|
64
|
-
timeOfLastChange
|
|
65
|
-
}
|
|
66
|
-
... on DetectionState {
|
|
67
|
-
detectionStateValue
|
|
68
|
-
timeOfSample
|
|
69
|
-
timeOfLastChange
|
|
70
|
-
}
|
|
71
|
-
... on TemperatureSensor {
|
|
72
|
-
name
|
|
73
|
-
value {
|
|
74
|
-
value
|
|
75
|
-
scale
|
|
76
|
-
}
|
|
77
|
-
timeOfSample
|
|
78
|
-
timeOfLastChange
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
"""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
aioamazondevices/__init__.py,sha256=OFf1p25xoL4BCdFQmpphXf541iLmm0Py8LC_rJYPL98,276
|
|
2
|
-
aioamazondevices/api.py,sha256=uTWsZagMQDZ4I-v8lpk9xCTebxUTMDXMU6JE4NANhPc,50367
|
|
3
|
-
aioamazondevices/const.py,sha256=BZTyUku94uQa50R1ZeXo1h585xgUNT_Pb7KAifjawWc,12266
|
|
4
|
-
aioamazondevices/exceptions.py,sha256=gRYrxNAJnrV6uRuMx5e76VMvtNKyceXd09q84pDBBrI,638
|
|
5
|
-
aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
aioamazondevices/query.py,sha256=SKn-fXFUnXnCvmKd6IvAGdkFL7sBzhYBEAZ0aZ2ez9E,1800
|
|
7
|
-
aioamazondevices/sounds.py,sha256=CXMDk-KoKVFxBdVAw3MeOClqgpzcVDxvQhFOJp7qX-Y,1896
|
|
8
|
-
aioamazondevices/utils.py,sha256=RzuKRhnq_8ymCoJMoQJ2vBYyuew06RSWpqQWmqdNczE,2019
|
|
9
|
-
aioamazondevices-6.4.5.dist-info/METADATA,sha256=k0QHRnM6juLj756-Okw0vq_8FVolrQR7SCF2FF7UdU8,7648
|
|
10
|
-
aioamazondevices-6.4.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
11
|
-
aioamazondevices-6.4.5.dist-info/licenses/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
|
|
12
|
-
aioamazondevices-6.4.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|