Skip to main content

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_command
  • status_command
  • off_command
  • on_command

device.Device is used for carrying the device data.

Metadata

Release files for eques-elf 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eques-elf 0.0.2
File Size Uploaded Provenance Actions
eques_elf-0.0.2.tar.gz 5.3 kB Without provenance Details for eques_elf-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eques-elf 0.0.2
File Interpreter ABI Platform Actions
eques_elf-0.0.2-py3-none-any.whl Python 3 none any Details for eques_elf-0.0.2-py3-none-any.whl

Total release size: 11.0 kB

Release files / eques_elf-0.0.2.tar.gz

Download URL eques_elf-0.0.2.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3aa6780f6fea721323135976cd96dd8e20fa419e893fddb3859ba85dcca49e3c
BLAKE2b-256 checksum
How to use checksums
ff950ed61d00ef726b3c74c7fb163cb6e99d1aa6253f07b3cd788b4fcc595f05
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / eques_elf-0.0.2-py3-none-any.whl

Download URL eques_elf-0.0.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b73061e13af0aebe08ccd0be3084c9eafd3f3a6824d43b24bc00303ffa2df97
BLAKE2b-256 checksum
How to use checksums
e60167287859da770767f5be7b1c88a46dae46f17eded5785799dbdbadc6e844
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for eques-elf 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page