Difference between revisions of "Python Control of Smart Plugs"

From OpenCircuits
Jump to navigation Jump to search
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
= Introduction/Status=
 
= Introduction/Status=
  
'''Purpose:''' This is a Graphical User Interface Application is to control TP-LINK HS110 Smart Plug w/Energy Monitoring (*'''[https://www.amazon.com/gp/product/B0178IC5ZY/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ]''' ) graph the data and otherwise process the data.  The application uses the pyHS100 library code.  It should work on Windows, Mac, Linux, and the Raspberry Pi.  It does require at least Python 3.6 as it uses f-strings ( print( f"evaluate this{1+1}" )
+
'''Purpose:''' This is a Graphical User Interface Application is to control TP-LINK HS110 Smart Plug w/Energy Monitoring (*'''[https://www.amazon.com/gp/product/B0178IC5ZY/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ]''' ) graph and otherwise process the data.  The application uses the pyHS100 library code.  It should work on Windows, Mac, Linux, and the Raspberry Pi.  It does require at least Python 3.6 as it uses f-strings ( print( f"evaluate this{1+1}" )
  
 
'''Program Status:''' More or less alpha, seems to work, but rough.  Intended for those with some Python experience who can add the files to their
 
'''Program Status:''' More or less alpha, seems to work, but rough.  Intended for those with some Python experience who can add the files to their
Line 10: Line 10:
 
a work in progress.  Much code has been lifted from other projects of mine, some artifacts remain.
 
a work in progress.  Much code has been lifted from other projects of mine, some artifacts remain.
  
'''This Page Status:''' This page is the "master" page for the project, all other pages link back here, either directly or indirectly. Pages are very early drafts, probably barely worth reading.
+
'''This Page Status:''' This page is the "master" page for the project, all other pages link back here, either directly or indirectly. Pages are early drafts, but worth reading if you are trying to use the program.
  
'''Help File:'''  Including install and configruation. [[SmartPlug Help File]]
+
'''Help File:'''  Including install and configuration. [[SmartPlug Help File]]
  
 
'''More Documentation:'''  See links below, and code ( '''[https://github.com/russ-hensel/smart_plug russ-hensel/Smart Plug Repository]''' )
 
'''More Documentation:'''  See links below, and code ( '''[https://github.com/russ-hensel/smart_plug russ-hensel/Smart Plug Repository]''' )
Line 23: Line 23:
 
Available at:
 
Available at:
  
*'''[https://github.com/russ-hensel/smart_plug/tree/master russ-hensel/smart_plug: initial ]'''
+
*'''[https://github.com/russ-hensel/smart_plug/tree/master russ-hensel/smart_plug: Program Source ]'''
  
 
= Program Design =
 
= Program Design =
 
+
See: [[SmartPlug Technical]]
  
 
= Links =
 
= Links =
Line 34: Line 34:
 
*[[SmartPlug Technical]]
 
*[[SmartPlug Technical]]
 
*[[SmartPlug GUI Images]]
 
*[[SmartPlug GUI Images]]
 +
*Click on Python SmartPlug Category below
  
 
== The Internet ==  
 
== The Internet ==  
Line 44: Line 45:
  
 
=== Matthias Random Stuff and Related ===  
 
=== Matthias Random Stuff and Related ===  
 
+
Matthias's youtube videos originally informed me about the SmartPlugs.
 
*'''[https://www.youtube.com/watch?v=0LVKUxtK4Wg Refrigerator heat pump efficiency test - YouTube ]'''
 
*'''[https://www.youtube.com/watch?v=0LVKUxtK4Wg Refrigerator heat pump efficiency test - YouTube ]'''
 
*'''[https://www.youtube.com/watch?v=0LVKUxtK4Wg (54) Refrigerator heat pump efficiency test - YouTube ]'''
 
*'''[https://www.youtube.com/watch?v=0LVKUxtK4Wg (54) Refrigerator heat pump efficiency test - YouTube ]'''
Line 51: Line 52:
  
 
=== Amazon ===
 
=== Amazon ===
+
Of course there are other sources.
 
*'''[https://www.amazon.com/gp/product/B0178IC5ZY/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ]'''
 
*'''[https://www.amazon.com/gp/product/B0178IC5ZY/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1 TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ]'''
 
*'''[https://www.amazon.com/dp/B07KYVS85J/ref=dp_cerb_1 TP-Link Mini WiFi Smart Plug, Wi-Fi, Compatible with Alexa, Only Occupies one Socket (HS105), Wall-Light, Electronic-Component-switches, 1-Pack (Renewed) - - Amazon.com ]'''
 
*'''[https://www.amazon.com/dp/B07KYVS85J/ref=dp_cerb_1 TP-Link Mini WiFi Smart Plug, Wi-Fi, Compatible with Alexa, Only Occupies one Socket (HS105), Wall-Light, Electronic-Component-switches, 1-Pack (Renewed) - - Amazon.com ]'''
  
 
=== Youtube Not Involving Python ===
 
=== Youtube Not Involving Python ===
 
+
Or maybe some Python ??
 
*'''[https://www.youtube.com/watch?v=9gTDlD1whdw (54) ESP8266 Smart Power Plug: Control and Monitor device from Internet - YouTube ]'''
 
*'''[https://www.youtube.com/watch?v=9gTDlD1whdw (54) ESP8266 Smart Power Plug: Control and Monitor device from Internet - YouTube ]'''
 
*'''[https://www.youtube.com/watch?v=6VjXQs3D7B4 (54) TP-Link Wi-Fi Smart Plug with Energy Monitoring Introduction Video - YouTube ]'''
 
*'''[https://www.youtube.com/watch?v=6VjXQs3D7B4 (54) TP-Link Wi-Fi Smart Plug with Energy Monitoring Introduction Video - YouTube ]'''

Revision as of 06:35, 13 September 2019

This is an article started by Russ Hensel, see "http://www.opencircuits.com/index.php?title=Russ_hensel#About My Articles" About My Articles for a bit of info. The page is only partly finished

Introduction/Status

Purpose: This is a Graphical User Interface Application is to control TP-LINK HS110 Smart Plug w/Energy Monitoring (*TP-LINK HS110 Smart Plug w/Energy Monitoring - - Amazon.com ) graph and otherwise process the data. The application uses the pyHS100 library code. It should work on Windows, Mac, Linux, and the Raspberry Pi. It does require at least Python 3.6 as it uses f-strings ( print( f"evaluate this{1+1}" )

Program Status: More or less alpha, seems to work, but rough. Intended for those with some Python experience who can add the files to their Python development environment ( no install features for this code ). Some dependencies will need to be installed, probably prompted by error messages. Editing of the parameter file should be easier for those with Python experience. Users should find some useful documentation in the code, this is still a work in progress. Much code has been lifted from other projects of mine, some artifacts remain.

This Page Status: This page is the "master" page for the project, all other pages link back here, either directly or indirectly. Pages are early drafts, but worth reading if you are trying to use the program.

Help File: Including install and configuration. SmartPlug Help File

More Documentation: See links below, and code ( russ-hensel/Smart Plug Repository )

Help "file" for the Program

This includes download and Install, see: SmartPlug Help File

Python Code

Available at:

Program Design

See: SmartPlug Technical

Links

In this Wiki

The Internet

General

Matthias Random Stuff and Related

Matthias's youtube videos originally informed me about the SmartPlugs.

Amazon

Of course there are other sources.

Youtube Not Involving Python

Or maybe some Python ??