Code Monkey home page Code Monkey logo

octoprint-wemoswitch's Introduction

Wemo Switch

This plugin allows for the control of Belkin Wemo devices via navbar buttons and gcode commands.

Firmware Warning

Starting in May of 2020, Belkin started requiring users to create an account and login to the app (Android app version 1.25). 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. All of the commands that go through the cloud are encrypted and cannot be easily inspected. This raises the possibility that Belkin could, in the future, update Wemo device firmware and make breaking API changes that can not longer be deciphered. If this happens, pywemo (dependency of this plugin) may no longer function on that device rendering this plugin useless. It would be prudent to upgrade firmware cautiously and preferably only after confirming that breaking API changes have not been introduced.

Screenshots

on

off

Settings

screenshot

Once installed go into settings and enter the name of your wemo device. Adjust additional settings as needed.

  • Enable startup event monitoring: will power on enabled wemos when OctoPrint starts up after boot.
  • Enable upload event monitoring: will power on enabled wemos when a file is uploaded with the start print on upload setting enabled (requires OctoPrint 1.4.1).
  • Enable thermal runaway monitoring: will power off enabled wemos at set max temperatures.
  • Enable power off on idle: will power off enabled wemos using following parameters.
    • Abort Power Off Timeout: a prompt will displayed in the UI to allow aborting idle power off for this period of time.
    • Idle Timeout: amount of time to wait before automatic power off of enabled wemos begins. Waits for timelapses to complete and for all temperatures to be below configured Idle Target Temperature.
    • Idle Target Temperature: temperature threshold to be below prior to starting idle timeout.
    • GCode Commands to Ignore for Idle: commands to be ignored for determining idle state.
  • Enable polling of status: when enabled and while the UI is open the current state of all wemos will be checked at set interval.
  • Enable debug logging: enables plugin_wemoswitch_debug.log file in OctoPrint's logging section for troubleshooting purposes.

screenshot

  • IP Address: IP address of the wemo device.
  • Icon Class: class name from fontawesome to use for icon on button.
  • Label: label to use for title attribute on hover over button in navbar.
  • Off on Idle: power off wemo on idle timeout. Requires Enable power off on idle setting to be enabled.
  • On on Startup: power on with OctoPrint startup. Requires Enable startup event monitoring setting to be enabled.
  • On on Upload: power on when file is uploaded and flagged to auto start printing. Requires Enable upload event monitoring setting to be enabled and OctoPrint 1.4.1.
  • Warning Prompt: confirmation prompt will always display when powering off a wemo from the navbar.
  • Warn While Printing: confirmation prompt will display while printing when powering off a wemo from the navbar. Enabling this will also prevent gcode processing from powering off the wemo while printing unless a sufficient GCODE Off Delay is entered.
  • Thermal Runaway: when enabled will power off wemo when main temperature thresholds are exceeded.
  • Auto Connect: power on wemo and then automatically connect to printer after configured delay in seconds.
  • Auto Disconnect: automatically disconnect printer and then power off the wemo after configured delay in seconds.
  • GCODE Trigger: enable the processing of M80, M81, @WEMOON, and @WEMOOFF GCODE commands using configured delays. Syntax for gcode command is M80/M81/@WEMOON/@WEMOOFF followed by the wemo's ip address. For example if your wemo's IP address is 192.168.0.104 your gcode command might be @WEMOOFF 192.168.0.104.
  • Run System Command After On: power on wemo and run configured system command after configured delay in seconds.
  • Run System Command Before Off: run configured system command and then power off the wemo after configured delay in seconds.

Most recent changelog

0.1.10 (01/11/2021)

Fixed

  • python 2 bug introduced in last release

Get Help

If you experience issues with this plugin or need assistance please use the issue tracker by clicking issues above.

Additional Plugins

Check out my other plugins here

Sponsors

Support My Efforts

I, jneilliii, programmed this plugin for fun and do my best effort to support those that have issues with it, please return the favor and leave me a tip or become a Patron if you find this plugin helpful and want me to continue future development.

Patreon paypal

No paypal.me? Send funds via PayPal to [email protected]

octoprint-wemoswitch's People

Contributors

jneilliii avatar dstrohl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.