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.
- pywemo/README.md +69 -0
- pywemo/__init__.py +33 -0
- pywemo/color.py +79 -0
- pywemo/discovery.py +194 -0
- pywemo/exceptions.py +94 -0
- pywemo/ouimeaux_device/LICENSE +12 -0
- pywemo/ouimeaux_device/__init__.py +679 -0
- pywemo/ouimeaux_device/api/__init__.py +1 -0
- pywemo/ouimeaux_device/api/attributes.py +131 -0
- pywemo/ouimeaux_device/api/db_orm.py +197 -0
- pywemo/ouimeaux_device/api/long_press.py +168 -0
- pywemo/ouimeaux_device/api/rules_db.py +467 -0
- pywemo/ouimeaux_device/api/service.py +363 -0
- pywemo/ouimeaux_device/api/wemo_services.py +25 -0
- pywemo/ouimeaux_device/api/wemo_services.pyi +241 -0
- pywemo/ouimeaux_device/api/xsd/__init__.py +1 -0
- pywemo/ouimeaux_device/api/xsd/device.py +3888 -0
- pywemo/ouimeaux_device/api/xsd/device.xsd +95 -0
- pywemo/ouimeaux_device/api/xsd/service.py +3872 -0
- pywemo/ouimeaux_device/api/xsd/service.xsd +93 -0
- pywemo/ouimeaux_device/api/xsd_types.py +222 -0
- pywemo/ouimeaux_device/bridge.py +506 -0
- pywemo/ouimeaux_device/coffeemaker.py +92 -0
- pywemo/ouimeaux_device/crockpot.py +157 -0
- pywemo/ouimeaux_device/dimmer.py +70 -0
- pywemo/ouimeaux_device/humidifier.py +223 -0
- pywemo/ouimeaux_device/insight.py +191 -0
- pywemo/ouimeaux_device/lightswitch.py +11 -0
- pywemo/ouimeaux_device/maker.py +54 -0
- pywemo/ouimeaux_device/motion.py +6 -0
- pywemo/ouimeaux_device/outdoor_plug.py +6 -0
- pywemo/ouimeaux_device/switch.py +32 -0
- pywemo/py.typed +0 -0
- pywemo/ssdp.py +372 -0
- pywemo/subscribe.py +782 -0
- pywemo/util.py +139 -0
- pywemo-1.4.0.dist-info/LICENSE +54 -0
- pywemo-1.4.0.dist-info/METADATA +192 -0
- pywemo-1.4.0.dist-info/RECORD +40 -0
- pywemo-1.4.0.dist-info/WHEEL +4 -0
pywemo/util.py
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"""Miscellaneous utility functions."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import os
|
|
5
|
+
import socket
|
|
6
|
+
from dataclasses import dataclass
|
|
7
|
+
from datetime import datetime, timedelta
|
|
8
|
+
|
|
9
|
+
import ifaddr
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def interface_addresses() -> list[str]:
|
|
13
|
+
"""
|
|
14
|
+
Return local address for broadcast/multicast.
|
|
15
|
+
|
|
16
|
+
Return local address of any network associated with a local interface
|
|
17
|
+
that has broadcast (and probably multicast) capability.
|
|
18
|
+
"""
|
|
19
|
+
addresses = []
|
|
20
|
+
|
|
21
|
+
for iface in ifaddr.get_adapters():
|
|
22
|
+
for addr in iface.ips:
|
|
23
|
+
if not (addr.is_IPv4 and isinstance(addr.ip, str)):
|
|
24
|
+
continue
|
|
25
|
+
if addr.ip == "127.0.0.1":
|
|
26
|
+
continue
|
|
27
|
+
|
|
28
|
+
addresses.append(addr.ip)
|
|
29
|
+
|
|
30
|
+
return addresses
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def get_callback_address(host: str, port: int) -> str | None:
|
|
34
|
+
"""Return IP address & port used by devices to send event notifications."""
|
|
35
|
+
pywemo_callback_address = os.getenv("PYWEMO_CALLBACK_ADDRESS")
|
|
36
|
+
if pywemo_callback_address is not None:
|
|
37
|
+
return pywemo_callback_address
|
|
38
|
+
|
|
39
|
+
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
|
40
|
+
try:
|
|
41
|
+
sock.connect((host, 9))
|
|
42
|
+
return f"{sock.getsockname()[0]}:{port}"
|
|
43
|
+
except OSError:
|
|
44
|
+
return None
|
|
45
|
+
finally:
|
|
46
|
+
del sock
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def signal_strength_to_dbm(value: dict[str, str] | str) -> int:
|
|
50
|
+
"""Convert signal strength percentage into a RSSI dBm value.
|
|
51
|
+
|
|
52
|
+
WeMo devices use the algorithm described here to convert a RSSI dBm value
|
|
53
|
+
into a signal strength percentage:
|
|
54
|
+
https://community.cambiumnetworks.com/t/cnmaestro-wifi-analyzer-tool/63471
|
|
55
|
+
|
|
56
|
+
signal_strength_to_dbm is meant to be used with the
|
|
57
|
+
basicevent.GetSignalStrength UPnP Action.
|
|
58
|
+
|
|
59
|
+
signal_strength = device.basicevent.GetSignalStrength()
|
|
60
|
+
signal_strength_to_dbm(signal_strength)
|
|
61
|
+
or
|
|
62
|
+
signal_strength_to_dbm(signal_strength["SignalStrength"])
|
|
63
|
+
"""
|
|
64
|
+
if isinstance(value, dict):
|
|
65
|
+
percent_str = value["SignalStrength"]
|
|
66
|
+
else:
|
|
67
|
+
percent_str = value
|
|
68
|
+
|
|
69
|
+
percent = round(float(percent_str))
|
|
70
|
+
if percent >= 100:
|
|
71
|
+
return -50
|
|
72
|
+
if percent >= 24:
|
|
73
|
+
return round((percent - 24) * 10 / 26 - 80)
|
|
74
|
+
if percent > 0:
|
|
75
|
+
return round(percent * 10 / 26 - 90)
|
|
76
|
+
return -90
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
@dataclass
|
|
80
|
+
class MetaInfo:
|
|
81
|
+
"""Parsed output of the metainfo.GetMetaInfo() Action."""
|
|
82
|
+
|
|
83
|
+
mac: str
|
|
84
|
+
serial_number: str
|
|
85
|
+
device_sku: str
|
|
86
|
+
firmware_version: str
|
|
87
|
+
access_point_ssid: str
|
|
88
|
+
model_name: str
|
|
89
|
+
|
|
90
|
+
@classmethod
|
|
91
|
+
def from_meta_info(cls, value: dict[str, str] | str) -> MetaInfo:
|
|
92
|
+
"""Initialize from metainfo.GetMetaInfo() output."""
|
|
93
|
+
info_str = value["MetaInfo"] if isinstance(value, dict) else value
|
|
94
|
+
if not info_str.isprintable():
|
|
95
|
+
raise ValueError("Invalid characters found in MetaInfo")
|
|
96
|
+
values = info_str.split("|")
|
|
97
|
+
if len(values) < 6:
|
|
98
|
+
raise ValueError(f"Could not unpack MetaInfo: {info_str}")
|
|
99
|
+
return cls(*values[:6])
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@dataclass
|
|
103
|
+
class ExtMetaInfo: # pylint: disable=too-many-instance-attributes
|
|
104
|
+
"""Parsed output of the metainfo.GetExtMetaInfo() Action."""
|
|
105
|
+
|
|
106
|
+
current_client_state: int
|
|
107
|
+
ice_running: int
|
|
108
|
+
nat_initialized: int
|
|
109
|
+
last_auth_value: int
|
|
110
|
+
uptime: timedelta
|
|
111
|
+
firmware_update_state: int
|
|
112
|
+
utc_time: datetime
|
|
113
|
+
home_id: str
|
|
114
|
+
remote_access_enabled: bool
|
|
115
|
+
model_name: str
|
|
116
|
+
|
|
117
|
+
@classmethod
|
|
118
|
+
def from_ext_meta_info(cls, value: dict[str, str] | str) -> ExtMetaInfo:
|
|
119
|
+
"""Initialize from metainfo.GetExtMetaInfo() output."""
|
|
120
|
+
info_str = value["ExtMetaInfo"] if isinstance(value, dict) else value
|
|
121
|
+
if not info_str.isprintable():
|
|
122
|
+
raise ValueError("Invalid characters found in ExtMetaInfo")
|
|
123
|
+
values = info_str.split("|")
|
|
124
|
+
if not len(values) > 9:
|
|
125
|
+
raise ValueError(f"Could not unpack ExtMetaInfo: {info_str}")
|
|
126
|
+
|
|
127
|
+
hours, minutes, seconds = (int(v) for v in values[4].split(":"))
|
|
128
|
+
return cls(
|
|
129
|
+
current_client_state=int(values[0]),
|
|
130
|
+
ice_running=int(values[1]),
|
|
131
|
+
nat_initialized=int(values[2]),
|
|
132
|
+
last_auth_value=int(values[3]),
|
|
133
|
+
uptime=timedelta(hours=hours, minutes=minutes, seconds=seconds),
|
|
134
|
+
firmware_update_state=int(values[5]),
|
|
135
|
+
utc_time=datetime.utcfromtimestamp(int(values[6])),
|
|
136
|
+
home_id=values[7],
|
|
137
|
+
remote_access_enabled=bool(int(values[8])),
|
|
138
|
+
model_name=values[9],
|
|
139
|
+
)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Copyright 2014 Paulus Schoutsen
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
20
|
+
|
|
21
|
+
------------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
The pyWeMo project also contains files that were originally from the
|
|
24
|
+
ouimeaux project. https://github.com/iancmcc/ouimeaux/
|
|
25
|
+
The following license applies to all content within the pywemo/ouimeaux_device
|
|
26
|
+
directory:
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2014, Ian McCracken
|
|
29
|
+
All rights reserved.
|
|
30
|
+
|
|
31
|
+
Redistribution and use in source and binary forms, with or without
|
|
32
|
+
modification, are permitted provided that the following conditions are met:
|
|
33
|
+
|
|
34
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
35
|
+
list of conditions and the following disclaimer.
|
|
36
|
+
|
|
37
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
38
|
+
this list of conditions and the following disclaimer in the documentation
|
|
39
|
+
and/or other materials provided with the distribution.
|
|
40
|
+
|
|
41
|
+
* Neither the name of ouimeaux nor the names of its contributors may be used to
|
|
42
|
+
endorse or promote products derived from this software without specific prior
|
|
43
|
+
written permission.
|
|
44
|
+
|
|
45
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
46
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
47
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
48
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
49
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
50
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
51
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
52
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
53
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
54
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pywemo
|
|
3
|
+
Version: 1.4.0
|
|
4
|
+
Summary: Lightweight Python module to discover and control WeMo devices
|
|
5
|
+
Home-page: https://github.com/pywemo/pywemo
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: wemo,api
|
|
8
|
+
Author: Eric Severance
|
|
9
|
+
Author-email: pywemo@esev.com
|
|
10
|
+
Requires-Python: >=3.8.1,<4.0.0
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Requires-Dist: ifaddr (>=0.1.0)
|
|
18
|
+
Requires-Dist: lxml (>=4.6)
|
|
19
|
+
Requires-Dist: requests (>=2.0)
|
|
20
|
+
Requires-Dist: urllib3 (>=1.26.0)
|
|
21
|
+
Project-URL: Repository, https://github.com/pywemo/pywemo
|
|
22
|
+
Description-Content-Type: text/x-rst
|
|
23
|
+
|
|
24
|
+
pyWeMo |Build Badge| |PyPI Version Badge| |Coverage| |PyPI Downloads Badge| |Docs Badge| |Scorecard Badge| |Best Practices Badge| |SLSA 3 Badge|
|
|
25
|
+
================================================================================================================================================
|
|
26
|
+
Python 3 module to setup, discover and control WeMo devices.
|
|
27
|
+
|
|
28
|
+
Dependencies
|
|
29
|
+
------------
|
|
30
|
+
pyWeMo depends on Python packages: requests, ifaddr, lxml, urllib3
|
|
31
|
+
|
|
32
|
+
How to use
|
|
33
|
+
----------
|
|
34
|
+
|
|
35
|
+
.. code-block:: python
|
|
36
|
+
|
|
37
|
+
>>> import pywemo
|
|
38
|
+
>>> devices = pywemo.discover_devices()
|
|
39
|
+
>>> print(devices)
|
|
40
|
+
[<WeMo Insight "AC Insight">]
|
|
41
|
+
|
|
42
|
+
>>> devices[0].toggle()
|
|
43
|
+
|
|
44
|
+
For advanced usage, the ``device.explain()`` method will print all known actions that the device reports to PyWeMo.
|
|
45
|
+
|
|
46
|
+
If discovery doesn't work on your network
|
|
47
|
+
-----------------------------------------
|
|
48
|
+
Automatic discovery may not work reliably on some networks.
|
|
49
|
+
In that case, you can use the device with an IP or hostname:
|
|
50
|
+
|
|
51
|
+
.. code-block:: python
|
|
52
|
+
|
|
53
|
+
>>> import pywemo
|
|
54
|
+
>>> url = pywemo.setup_url_for_address("192.168.1.192")
|
|
55
|
+
>>> print(url)
|
|
56
|
+
http://192.168.1.192:49153/setup.xml
|
|
57
|
+
>>> device = pywemo.discovery.device_from_description(url)
|
|
58
|
+
>>> print(device)
|
|
59
|
+
<WeMo Maker "Hi Fi Systemline Sensor">
|
|
60
|
+
|
|
61
|
+
Please note that ``discovery.device_from_description`` requires a ``url`` with an IP address, rather than a hostname.
|
|
62
|
+
This is needed for the subscription update logic to work properly.
|
|
63
|
+
In addition, recent versions of the WeMo firmware may not accept connections from hostnames and will return a 500 error.
|
|
64
|
+
|
|
65
|
+
The ``setup_url_for_address`` function will lookup a hostname and provide a suitable ``url`` with an IP address.
|
|
66
|
+
|
|
67
|
+
If the WeMo device is not on your network, you can also connect to it directly.
|
|
68
|
+
After connecting, if the ``pywemo.discover_devices()`` doesn't work, you can get the IP Address by running an ``arp -a`` and use that in ``pywemo.setup_url_for_address``:
|
|
69
|
+
|
|
70
|
+
.. code-block::
|
|
71
|
+
|
|
72
|
+
$ arp -a
|
|
73
|
+
_gateway (10.22.22.1) at [MAC ADDRESS REMOVED] [ether]
|
|
74
|
+
|
|
75
|
+
.. code-block:: python
|
|
76
|
+
|
|
77
|
+
>>> import pywemo
|
|
78
|
+
>>> url = pywemo.setup_url_for_address("10.22.22.1")
|
|
79
|
+
>>> device = pywemo.discovery.device_from_description(url)
|
|
80
|
+
>>> print(device)
|
|
81
|
+
<WeMo Switch "Wemo Mini">
|
|
82
|
+
>>> device.setup(ssid='MY SSID', password='MY NETWORK PASSWORD')
|
|
83
|
+
('1', 'success')
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Testing new products
|
|
88
|
+
--------------------
|
|
89
|
+
If both methods above are not successful, then ``pywemo`` may not support your WeMo product yet.
|
|
90
|
+
This may be particularly true if it is a new WeMo product.
|
|
91
|
+
To test this, you can use a debug flag, ``pywemo.discover_devices(debug=True)`` or ``pywemo.discovery.device_from_description(url, debug=True)``.
|
|
92
|
+
If an ``UnsupportedDevice`` is found, then it is highly likely that the product can be added to ``pywemo``.
|
|
93
|
+
This ``UnsupportedDevice`` will allow manual interaction, but please open an issue to get first class support for the device.
|
|
94
|
+
|
|
95
|
+
Device Reset and Setup
|
|
96
|
+
----------------------
|
|
97
|
+
PyWeMo includes the ability to reset and setup devices, without using the Belkin app or needing to create a Belkin account.
|
|
98
|
+
This can be particularly useful if the intended use is fully local control, such as using Home Assistant.
|
|
99
|
+
|
|
100
|
+
Reset
|
|
101
|
+
~~~~~
|
|
102
|
+
Reset can be performed with the ``reset`` method, which has 2 boolean input arguments, ``data`` and ``wifi``.
|
|
103
|
+
WeMo devices contain a hardware reset procedure as well, so use of ``pywemo`` is for convenience or if physical access is not available.
|
|
104
|
+
This ``reset`` method may not work on all devices.
|
|
105
|
+
|
|
106
|
+
======================================= ================= =======================
|
|
107
|
+
Method in ``pywemo`` Clears Name in WeMo App
|
|
108
|
+
======================================= ================= =======================
|
|
109
|
+
``device.reset(data=True, wifi=False)`` name, icon, rules Clear Personalized Info
|
|
110
|
+
``device.reset(data=False, wifi=True)`` wifi information Change Wi-Fi
|
|
111
|
+
``device.reset(data=True, wifi=True)`` everything Factory Restore
|
|
112
|
+
======================================= ================= =======================
|
|
113
|
+
|
|
114
|
+
Setup
|
|
115
|
+
~~~~~
|
|
116
|
+
|
|
117
|
+
Device setup is through the ``setup`` method, which has two required arguments: ``ssid`` and ``password``.
|
|
118
|
+
The user must first connect to the devices locally broadcast access point, which typically starts with "WeMo.", and then discover the device there.
|
|
119
|
+
Once done, pass the desired SSID and password (WPA2/AES encryption only) to the ``setup`` method to connect it to your wifi network.
|
|
120
|
+
|
|
121
|
+
``device.setup(ssid='wifi_name', password='special_secret')``
|
|
122
|
+
|
|
123
|
+
A few important notes:
|
|
124
|
+
|
|
125
|
+
- Not all devices are currently supported for setup.
|
|
126
|
+
- For a WeMo without internet access, see `this guide <https://github.com/pywemo/pywemo/wiki/WeMo-Cloud#disconnecting-from-the-cloud>`_ to stop any blinking lights.
|
|
127
|
+
- If connecting to an open network, the password argument is ignored and you can provide anything, e.g. ``password=None``.
|
|
128
|
+
- If connecting to a WPA2/AES-encrypted network, OpenSSL is used to encrypt the password by the ``pywemo`` library.
|
|
129
|
+
It must be installed and available on your ``PATH`` via calling ``openssl`` from a terminal or command prompt.
|
|
130
|
+
|
|
131
|
+
Firmware Warning
|
|
132
|
+
----------------
|
|
133
|
+
Starting in May of 2020, Belkin started requiring users to create an account and login to the app (Android app version 1.25).
|
|
134
|
+
In addition to the account, most of the app functionality now requires a connection to the cloud (internet access), even for simple actions such as toggling a switch.
|
|
135
|
+
All of the commands that go through the cloud are encrypted and cannot be easily inspected.
|
|
136
|
+
This raises the possibility that Belkin could, in the future, update WeMo device firmware and make breaking API changes that can no longer be deciphered.
|
|
137
|
+
If this happens, ``pywemo`` may no longer function on that device.
|
|
138
|
+
Thus it would be prudent to upgrade firmware cautiously and preferably only after confirming that breaking API changes have not been introduced.
|
|
139
|
+
|
|
140
|
+
Developing
|
|
141
|
+
----------
|
|
142
|
+
Setup and builds are fully automated.
|
|
143
|
+
You can run the build pipeline locally via:
|
|
144
|
+
|
|
145
|
+
.. code-block::
|
|
146
|
+
|
|
147
|
+
# setup, install, format, lint, test and build:
|
|
148
|
+
./scripts/build.sh
|
|
149
|
+
|
|
150
|
+
Note that this will install a git ``pre-commit`` hook.
|
|
151
|
+
For this hook to work correctly, ``poetry`` needs to be globally accessible on your ``PATH`` or the local virtual environment must be activated.
|
|
152
|
+
This virtual environment can be activated with:
|
|
153
|
+
|
|
154
|
+
.. code-block::
|
|
155
|
+
|
|
156
|
+
. .venv/bin/activate
|
|
157
|
+
|
|
158
|
+
History
|
|
159
|
+
-------
|
|
160
|
+
This started as a stripped down version of `ouimeaux <https://github.com/iancmcc/ouimeaux>`_, copyright Ian McCracken, but has since taken its own path.
|
|
161
|
+
|
|
162
|
+
License
|
|
163
|
+
-------
|
|
164
|
+
All contents of the pywemo/ouimeaux_device directory are licensed under a BSD 3-Clause license. The full text of that license is maintained within the pywemo/ouimeaux_device/LICENSE file.
|
|
165
|
+
The rest of pyWeMo is released under the MIT license. See the top-level LICENSE file for more details.
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
.. |Build Badge| image:: https://github.com/pywemo/pywemo/workflows/Build/badge.svg
|
|
169
|
+
:target: https://github.com/pywemo/pywemo/actions?query=workflow%3ABuild
|
|
170
|
+
:alt: GitHub build status
|
|
171
|
+
.. |PyPI Version Badge| image:: https://img.shields.io/pypi/v/pywemo
|
|
172
|
+
:target: https://pypi.org/project/pywemo/
|
|
173
|
+
:alt: Latest PyPI version
|
|
174
|
+
.. |Coverage| image:: https://coveralls.io/repos/github/pywemo/pywemo/badge.svg?branch=main
|
|
175
|
+
:target: https://coveralls.io/github/pywemo/pywemo?branch=main
|
|
176
|
+
:alt: Coveralls coverage
|
|
177
|
+
.. |PyPI Downloads Badge| image:: https://img.shields.io/pypi/dm/pywemo
|
|
178
|
+
:target: https://pypi.org/project/pywemo/
|
|
179
|
+
:alt: Number of PyPI downloads
|
|
180
|
+
.. |Docs Badge| image:: https://github.com/pywemo/pywemo/actions/workflows/docs.yml/badge.svg
|
|
181
|
+
:target: https://pywemo.github.io/pywemo/
|
|
182
|
+
:alt: API Documentation
|
|
183
|
+
.. |Scorecard Badge| image:: https://api.securityscorecards.dev/projects/github.com/pywemo/pywemo/badge
|
|
184
|
+
:target: https://securityscorecards.dev/viewer/?uri=github.com/pywemo/pywemo
|
|
185
|
+
:alt: OpenSSF Scorecard
|
|
186
|
+
.. |Best Practices Badge| image:: https://bestpractices.coreinfrastructure.org/projects/7467/badge
|
|
187
|
+
:target: https://bestpractices.coreinfrastructure.org/projects/7467
|
|
188
|
+
:alt: OpenSSF Best Practices
|
|
189
|
+
.. |SLSA 3 Badge| image:: https://slsa.dev/images/gh-badge-level3.svg
|
|
190
|
+
:target: https://github.com/pywemo/pywemo/releases/latest#user-content-SLSA
|
|
191
|
+
:alt: SLSA level 3
|
|
192
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
pywemo/README.md,sha256=R8Wukt5JbfA-mORbvI_gyk1INAQ556XTLvOSeu3P3e4,2889
|
|
2
|
+
pywemo/__init__.py,sha256=EF4qCw0GNmNsWV6MZNr1eeArx6OvvDy-akB_dRqsuZg,1254
|
|
3
|
+
pywemo/color.py,sha256=eGQd0MODHV_tBCDW9BUDQ_MLvmR0k0MkhIj_s38bfuE,2762
|
|
4
|
+
pywemo/discovery.py,sha256=1yI-QRrOQL0_-h-UoNv9huZ6obcMMCBZOp_NJcV2rNk,6806
|
|
5
|
+
pywemo/exceptions.py,sha256=WY5iIf-JRfu9TzOqKa7vsGspqakY3UryYn6ugLlEDvQ,2759
|
|
6
|
+
pywemo/ouimeaux_device/LICENSE,sha256=Ff3shOWJ0P7xPBq6BsFxkORe6BP2iaWj5ydiE0s7B6k,1468
|
|
7
|
+
pywemo/ouimeaux_device/__init__.py,sha256=75NxqCVOX_0iRTGllGo-J7xfHhgP8EPdIjzjDtQniXg,26370
|
|
8
|
+
pywemo/ouimeaux_device/api/__init__.py,sha256=TYTMhVymF43pAOH1M1oHZ-7El7G6tTAGBIMrfEGeYOs,23
|
|
9
|
+
pywemo/ouimeaux_device/api/attributes.py,sha256=SxfqNOlCOMP4DrlrK5o0T5NApDq_p-Y5h3m99F2EcZU,4843
|
|
10
|
+
pywemo/ouimeaux_device/api/db_orm.py,sha256=ODLZZZ6Nfz2OWrKcCVucDml8eVQy-uwHV-P6k4VBW2U,6733
|
|
11
|
+
pywemo/ouimeaux_device/api/long_press.py,sha256=GM6Eg8lb7rVTxGgdkV2VvrPf9BK7KIvHthILeyrOvTc,6059
|
|
12
|
+
pywemo/ouimeaux_device/api/rules_db.py,sha256=1CugXrlg6zHN07ebhK5e68DYUTPxRStf_EfNGpoY_JE,14976
|
|
13
|
+
pywemo/ouimeaux_device/api/service.py,sha256=qeNThZXVPEuRIM9Xou8aVk34Up8F1ei1O6E_X8_FCMo,12705
|
|
14
|
+
pywemo/ouimeaux_device/api/wemo_services.py,sha256=z5wbX10ok2ltdpucJr0H6Cy9CoIoCb3vfbkeMdWt8qc,912
|
|
15
|
+
pywemo/ouimeaux_device/api/wemo_services.pyi,sha256=Amybn9pfO-EJUge6gYPeADw-_iQYmqfP_fSB1mlkpQk,6838
|
|
16
|
+
pywemo/ouimeaux_device/api/xsd/__init__.py,sha256=xv1RKXPNighlx3L88tkedXQfSDYI5ifA8zPmSiXdiyY,60
|
|
17
|
+
pywemo/ouimeaux_device/api/xsd/device.py,sha256=pQiE_wLh0-25mG97tx3azb4lb_UXX8zKH4spXD1r59k,126897
|
|
18
|
+
pywemo/ouimeaux_device/api/xsd/device.xsd,sha256=D4yqFUD-kDXUXWz3Y2No_XTiNRY2TbxecjV5wEbh5Gw,4305
|
|
19
|
+
pywemo/ouimeaux_device/api/xsd/service.py,sha256=RBh2o958Y8qIx89CdbG0z0P7-5IWF_k-9ihhHIGOQco,122589
|
|
20
|
+
pywemo/ouimeaux_device/api/xsd/service.xsd,sha256=Hqzc1ovP7q8SbW-IDN7ZaLQCN_vP50Qrqx7PDAbDAyQ,3526
|
|
21
|
+
pywemo/ouimeaux_device/api/xsd_types.py,sha256=pUzyktm26SK6nnwAJYVINkYx4tLFE0MDK4lOaLIOZ5A,7275
|
|
22
|
+
pywemo/ouimeaux_device/bridge.py,sha256=yI_JCCqyO6Ye_Ol3wDtBuvVUuX82V4c1StnFEsqzMd8,18975
|
|
23
|
+
pywemo/ouimeaux_device/coffeemaker.py,sha256=B80yKYZCJKr9tC-Zf7Bc4YlHYj74jAq2GLANsL_TqQo,3345
|
|
24
|
+
pywemo/ouimeaux_device/crockpot.py,sha256=PXPvFRfwNXyvkhkQJl3Hcdf1VEpazJ2DGOrfa5WGKpQ,5035
|
|
25
|
+
pywemo/ouimeaux_device/dimmer.py,sha256=k_GJIcMygOZ2VjzSlJslYh3T0X3BxyakcyNecvi4gA8,2398
|
|
26
|
+
pywemo/ouimeaux_device/humidifier.py,sha256=dnqwTOlWun1crsBR8E5H-oMF0851qz2K_o3cH6qVDhs,7162
|
|
27
|
+
pywemo/ouimeaux_device/insight.py,sha256=EVcFWZN2UVNj4vA4xrDk7FdbVvnELSdKg9OJ200BT4w,6125
|
|
28
|
+
pywemo/ouimeaux_device/lightswitch.py,sha256=_lbaLmxPIKhWLmjEhZ6NBSzFHDvg9sW0Z3Dn4PiO5mw,328
|
|
29
|
+
pywemo/ouimeaux_device/maker.py,sha256=azcPLnFBJRDgjAEV6oVVdaOGGg0JMLaPztuGtTafnNw,1645
|
|
30
|
+
pywemo/ouimeaux_device/motion.py,sha256=ZepSPKKZxo8HPZ391z7SHIxmZXdV5vrEJBfac3z1NHg,141
|
|
31
|
+
pywemo/ouimeaux_device/outdoor_plug.py,sha256=M8AmM_eaU43JaIPF1F-NGoY-zaE99JQucNs_BOCC-DU,157
|
|
32
|
+
pywemo/ouimeaux_device/switch.py,sha256=VMLyoXRwOIFbjnwR2GcFRzwkzDNqVawu5z3f_9M7cB8,1023
|
|
33
|
+
pywemo/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
+
pywemo/ssdp.py,sha256=koDFc8INDuWzPNWftnfCOpSUz4t3Q9giB6GeSbMOZVw,12531
|
|
35
|
+
pywemo/subscribe.py,sha256=j_zbbgnWZZRPSE5fmpsX1sIPGbCxzGQmNIiI1GZ_dvA,29780
|
|
36
|
+
pywemo/util.py,sha256=LHOD-MSIkl78jElP5uFnZVJ9dBovhYQ_2Gx2JRlbgxs,4417
|
|
37
|
+
pywemo-1.4.0.dist-info/LICENSE,sha256=uEhWS0rrkJ-nVSDY4avaxJrszZOBwR_hIOiBVkd4Sk8,2831
|
|
38
|
+
pywemo-1.4.0.dist-info/METADATA,sha256=CK0Q67O21Lr6C_TAJll9tJBW6yv0CV3TC2cqCjKfksc,9130
|
|
39
|
+
pywemo-1.4.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
40
|
+
pywemo-1.4.0.dist-info/RECORD,,
|