Eques Elf support for Python
Project description
Eques Elf python
Kudos to iamckn who has in-depth posts describing their work reverse engineering the Eques Elf smart plug devices and has gocode alongside it, at https://github.com/iamckn/eques
This module is adapted from it to provide a Python module to be used in HomeAssistant.
Command line usage
See helpdoc for specific details.
List devices
python src/main.py discover
[
{
"ip": "10.0.0.123",
"mac": "dc-4f-22-25-ab-cd",
"password": "foobar",
"state": true
}
]
Get status
python src/main.py send --cmd status --mac dc-4f-22-25-ab-cd --ip 10.0.0.123 --password foobar
[
{
"ip": "10.0.0.123",
"mac": "dc-4f-22-25-ab-cd",
"password": "foobar",
"state": true
}
]
Toggle device
Toggle first fetches state (cmd: status) then sends a set command.
python src/main.py send --cmd toggle --mac dc-4f-22-25-ab-cd --ip 10.0.0.123 --password foobar
[
{
"ip": "10.0.0.123",
"mac": "dc-4f-22-25-ab-cd",
"password": "foobar",
"state": false
}
]
Set device on
python src/main.py send --cmd set_on --mac dc-4f-22-25-ab-cd --ip 10.0.0.123 --password foobar
[
{
"ip": "10.0.0.123",
"mac": "dc-4f-22-25-ab-cd",
"password": "foobar",
"state": false
}
]
Set device off
python src/main.py send --cmd set_off --mac dc-4f-22-25-ab-cd --ip 10.0.0.123 --password foobar
[
{
"ip": "10.0.0.123",
"mac": "dc-4f-22-25-ab-cd",
"password": "foobar",
"state": false
}
]
API
See eques_local.py and use:
discover_commandstatus_commandoff_commandon_command
device.Device is used for carrying the device data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eques_elf-0.0.2.tar.gz.
File metadata
- Download URL: eques_elf-0.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aa6780f6fea721323135976cd96dd8e20fa419e893fddb3859ba85dcca49e3c
|
|
| MD5 |
d970a05c763c62e923929f3b7e0773d2
|
|
| BLAKE2b-256 |
ff950ed61d00ef726b3c74c7fb163cb6e99d1aa6253f07b3cd788b4fcc595f05
|
File details
Details for the file eques_elf-0.0.2-py3-none-any.whl.
File metadata
- Download URL: eques_elf-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b73061e13af0aebe08ccd0be3084c9eafd3f3a6824d43b24bc00303ffa2df97
|
|
| MD5 |
f459f386f5a17e7d8a7cecd791d727bf
|
|
| BLAKE2b-256 |
e60167287859da770767f5be7b1c88a46dae46f17eded5785799dbdbadc6e844
|