pywemo 1.4.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.
Files changed (40) hide show
  1. pywemo/README.md +69 -0
  2. pywemo/__init__.py +33 -0
  3. pywemo/color.py +79 -0
  4. pywemo/discovery.py +194 -0
  5. pywemo/exceptions.py +94 -0
  6. pywemo/ouimeaux_device/LICENSE +12 -0
  7. pywemo/ouimeaux_device/__init__.py +679 -0
  8. pywemo/ouimeaux_device/api/__init__.py +1 -0
  9. pywemo/ouimeaux_device/api/attributes.py +131 -0
  10. pywemo/ouimeaux_device/api/db_orm.py +197 -0
  11. pywemo/ouimeaux_device/api/long_press.py +168 -0
  12. pywemo/ouimeaux_device/api/rules_db.py +467 -0
  13. pywemo/ouimeaux_device/api/service.py +363 -0
  14. pywemo/ouimeaux_device/api/wemo_services.py +25 -0
  15. pywemo/ouimeaux_device/api/wemo_services.pyi +241 -0
  16. pywemo/ouimeaux_device/api/xsd/__init__.py +1 -0
  17. pywemo/ouimeaux_device/api/xsd/device.py +3888 -0
  18. pywemo/ouimeaux_device/api/xsd/device.xsd +95 -0
  19. pywemo/ouimeaux_device/api/xsd/service.py +3872 -0
  20. pywemo/ouimeaux_device/api/xsd/service.xsd +93 -0
  21. pywemo/ouimeaux_device/api/xsd_types.py +222 -0
  22. pywemo/ouimeaux_device/bridge.py +506 -0
  23. pywemo/ouimeaux_device/coffeemaker.py +92 -0
  24. pywemo/ouimeaux_device/crockpot.py +157 -0
  25. pywemo/ouimeaux_device/dimmer.py +70 -0
  26. pywemo/ouimeaux_device/humidifier.py +223 -0
  27. pywemo/ouimeaux_device/insight.py +191 -0
  28. pywemo/ouimeaux_device/lightswitch.py +11 -0
  29. pywemo/ouimeaux_device/maker.py +54 -0
  30. pywemo/ouimeaux_device/motion.py +6 -0
  31. pywemo/ouimeaux_device/outdoor_plug.py +6 -0
  32. pywemo/ouimeaux_device/switch.py +32 -0
  33. pywemo/py.typed +0 -0
  34. pywemo/ssdp.py +372 -0
  35. pywemo/subscribe.py +782 -0
  36. pywemo/util.py +139 -0
  37. pywemo-1.4.0.dist-info/LICENSE +54 -0
  38. pywemo-1.4.0.dist-info/METADATA +192 -0
  39. pywemo-1.4.0.dist-info/RECORD +40 -0
  40. pywemo-1.4.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,95 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema
3
+ targetNamespace="urn:schemas-upnp-org:device-1-0"
4
+ xmlns:tns="urn:schemas-upnp-org:device-1-0"
5
+ xmlns="urn:schemas-upnp-org:device-1-0"
6
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
7
+ attributeFormDefault="qualified" elementFormDefault="qualified">
8
+
9
+ <xs:annotation>
10
+ <xs:documentation>
11
+ XML Schema for UPnP device descriptions in real XSD format
12
+ (not like the XDR one from Microsoft)
13
+ Created by Michael Weinrich 2007
14
+ </xs:documentation>
15
+ </xs:annotation>
16
+
17
+ <xs:element name="root">
18
+ <xs:complexType>
19
+ <xs:all>
20
+ <xs:element name="specVersion" type="SpecVersionType" minOccurs="1" maxOccurs="1" />
21
+ <xs:element name="URLBase" type="xs:string" minOccurs="0" maxOccurs="1" />
22
+ <xs:element name="device" type="DeviceType" minOccurs="1" maxOccurs="1" />
23
+ </xs:all>
24
+ <xs:anyAttribute/>
25
+ </xs:complexType>
26
+ </xs:element>
27
+
28
+ <xs:complexType name="SpecVersionType">
29
+ <xs:all>
30
+ <xs:element name="major" type="xs:int" minOccurs="1" />
31
+ <xs:element name="minor" type="xs:int" minOccurs="1"/>
32
+ </xs:all>
33
+ </xs:complexType>
34
+
35
+ <xs:complexType name="DeviceType">
36
+ <xs:sequence>
37
+ <xs:element name="deviceType" type="xs:string" minOccurs="1" maxOccurs="1" />
38
+ <xs:element name="friendlyName" type="xs:string" minOccurs="1" maxOccurs="1" />
39
+ <xs:element name="manufacturer" type="xs:string" minOccurs="1" maxOccurs="1" />
40
+ <xs:element name="manufacturerURL" type="xs:string" minOccurs="0" maxOccurs="1" />
41
+ <xs:element name="modelDescription" type="xs:string" minOccurs="0" maxOccurs="1" />
42
+ <xs:element name="modelName" type="xs:string" minOccurs="1" maxOccurs="1" />
43
+ <xs:element name="modelNumber" type="xs:string" minOccurs="0" maxOccurs="1" />
44
+ <xs:element name="modelURL" type="xs:string" minOccurs="0" maxOccurs="1" />
45
+ <xs:element name="serialNumber" type="xs:string" minOccurs="0" maxOccurs="1" />
46
+ <xs:element name="UDN" type="xs:string" minOccurs="1" maxOccurs="1" />
47
+ <xs:element name="macAddress" type="xs:string" minOccurs="0" maxOccurs="1" />
48
+ <xs:element name="UPC" type="xs:string" minOccurs="0" maxOccurs="1" />
49
+ <xs:element name="iconList" type="IconListType" minOccurs="0" maxOccurs="1" />
50
+ <xs:element name="serviceList" type="ServiceListType" minOccurs="0" maxOccurs="1" />
51
+ <xs:element name="deviceList" type="DeviceListType" minOccurs="0" maxOccurs="1" />
52
+ <xs:element name="presentationURL" type="xs:string" minOccurs="0" maxOccurs="1" />
53
+ <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" />
54
+ </xs:sequence>
55
+ </xs:complexType>
56
+
57
+ <xs:complexType name="IconListType">
58
+ <xs:sequence>
59
+ <xs:element name="icon" minOccurs="1" maxOccurs="unbounded">
60
+ <xs:complexType>
61
+ <xs:all>
62
+ <xs:element name="mimetype" type="xs:string" minOccurs="1" maxOccurs="1" />
63
+ <xs:element name="width" type="xs:int" minOccurs="1" maxOccurs="1" />
64
+ <xs:element name="height" type="xs:int" minOccurs="1" maxOccurs="1" />
65
+ <xs:element name="depth" type="xs:int" minOccurs="1" maxOccurs="1" />
66
+ <xs:element name="url" type="xs:string" minOccurs="1" maxOccurs="1" />
67
+ </xs:all>
68
+ </xs:complexType>
69
+ </xs:element>
70
+ </xs:sequence>
71
+ </xs:complexType>
72
+
73
+ <xs:complexType name="ServiceListType">
74
+ <xs:sequence>
75
+ <xs:element name="service" minOccurs="1" maxOccurs="unbounded">
76
+ <xs:complexType>
77
+ <xs:all>
78
+ <xs:element name="serviceType" type="xs:string" minOccurs="1" maxOccurs="1" />
79
+ <xs:element name="serviceId" type="xs:string" minOccurs="1" maxOccurs="1" />
80
+ <xs:element name="SCPDURL" type="xs:string" minOccurs="1" maxOccurs="1" />
81
+ <xs:element name="controlURL" type="xs:string" minOccurs="1" maxOccurs="1" />
82
+ <xs:element name="eventSubURL" type="xs:string" minOccurs="1" maxOccurs="1" />
83
+ </xs:all>
84
+ </xs:complexType>
85
+ </xs:element>
86
+ </xs:sequence>
87
+ </xs:complexType>
88
+
89
+ <xs:complexType name="DeviceListType">
90
+ <xs:sequence>
91
+ <xs:element name="device" type="DeviceType" minOccurs="1" maxOccurs="unbounded"/>
92
+ </xs:sequence>
93
+ </xs:complexType>
94
+
95
+ </xs:schema>