-
Notifications
You must be signed in to change notification settings - Fork 352
feat: Add PSUControl eWeLink plugin #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chrismin13
wants to merge
7
commits into
OctoPrint:gh-pages
Choose a base branch
from
chrismin13:gh-pages
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fbc4504
feat: Add PSUControl eWeLink plugin
chrismin13 a91ec70
fix: rename tag 'psu control' to 'psucontrol'
chrismin13 0f1d1a9
docs: finalize tags (smartplug, control)
chrismin13 766c71e
fix: Remove mention of XOR obfuscation
chrismin13 6489b40
fix: use plugin repository links for OctoPrint-PSUControl
chrismin13 30a6d3c
chore: bump minimum Python version to 3.9 to match ewelink dependency
chrismin13 c278f4c
chore: bump octoprint version to a more recent one to align with pyth…
chrismin13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| --- | ||
| layout: plugin | ||
|
|
||
| id: psucontrol_ewelink | ||
| title: PSU Control - eWeLink | ||
| description: Control your 3D printer's power supply using eWeLink smart switches (Sonoff, etc.) through the PSU Control plugin. | ||
| authors: | ||
| - Christos Miniotis | ||
| license: MIT | ||
|
|
||
| date: 2026-01-07 | ||
|
|
||
| homepage: https://github.com/chrismin13/OctoPrint-PSUControl-eWeLink | ||
| source: https://github.com/chrismin13/OctoPrint-PSUControl-eWeLink | ||
| archive: https://github.com/chrismin13/OctoPrint-PSUControl-eWeLink/archive/main.zip | ||
|
|
||
| # Privacy policy for cloud service usage | ||
| privacypolicy: https://github.com/chrismin13/OctoPrint-PSUControl-eWeLink/blob/main/PRIVACY.md | ||
|
|
||
| tags: | ||
| - psu | ||
| - psu control | ||
| - power | ||
| - switch | ||
| - sonoff | ||
| - ewelink | ||
| - smart home | ||
| - automation | ||
| - psucontrol subplugin | ||
|
|
||
| compatibility: | ||
| octoprint: | ||
| - 1.3.10 | ||
|
|
||
| os: | ||
| - posix | ||
| - windows | ||
|
|
||
| python: ">=3.7,<4" | ||
|
||
|
|
||
| attributes: | ||
| - cloud | ||
|
|
||
| screenshots: | ||
| - url: /assets/img/plugins/psucontrol_ewelink/settings_screenshot.png | ||
| alt: Settings Interface | ||
| caption: Plugin settings allowing device selection and credential configuration | ||
|
|
||
| featuredimage: /assets/img/plugins/psucontrol_ewelink/settings_screenshot.png | ||
| --- | ||
|
|
||
| Integrate [eWeLink](https://ewelink.cc/) smart switches (Sonoff, etc.) with [OctoPrint-PSUControl](https://github.com/kantlivelong/OctoPrint-PSUControl) to turn your 3D printer on and off remotely. | ||
chrismin13 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Features | ||
|
|
||
| - **Cloud Integration**: Control any eWeLink-compatible device (Sonoff Basic, S26, etc.) | ||
| - **Device Discovery**: Test connection and browse devices directly in OctoPrint settings | ||
| - **State Sensing**: Real-time feedback on switch state | ||
| - **Secure Credentials**: Passwords are encrypted locally using XOR obfuscation | ||
|
|
||
| ## Requirements | ||
|
|
||
| - OctoPrint 1.3.10 or higher | ||
| - [OctoPrint-PSUControl](https://github.com/kantlivelong/OctoPrint-PSUControl) plugin installed | ||
chrismin13 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - eWeLink account and compatible smart switch | ||
| - Active internet connection | ||
|
|
||
| ## External Services | ||
|
|
||
| This plugin connects to the **eWeLink Cloud API** to control your smart devices. An active internet connection is required for all functionality. Your eWeLink credentials are transmitted securely over HTTPS to eWeLink's servers. | ||
|
|
||
| The plugin does **not** collect or transmit any data to third parties other than eWeLink. | ||
|
|
||
| ## Setup | ||
|
|
||
| 1. Install via Plugin Manager | ||
| 2. Navigate to **Settings** → **PSU Control - eWeLink** | ||
| 3. Enter your eWeLink email and password | ||
| 4. Click **Test Connection / Get Devices** | ||
| 5. Select your device from the dropdown | ||
| 6. Save settings | ||
| 7. Go to **PSU Control** settings and select this plugin for switching/sensing | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| - **Authentication Failed**: Double-check your eWeLink email and password | ||
| - **Device Not Found**: Ensure the device is "Online" in the eWeLink app | ||
| - **Connection Issues**: Check your internet connection; the eWeLink cloud must be reachable | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.