I am looking to use a plug for my washing machine to detect the end of the cycle based on the power spike it will generate. Has anyone done this with a TP-LINK HS110 plug? I know there is a custom DH for this, but i am concerned the energy reporting time might be too laggy to achieve this effectivley? Reason i want to use a TP-LINK plug is because they are probably the only easily available plug that i can use in AUS, unless anyone else from AUS might be able to suggest an alternative plug that can report power usage?
The plug itself can be set to a refresh rate of every minute (user selected in preferences). The DTH has previously been modified to match AUS power calculations (TP-Link uses different Firmware in Australia). So, it should be accomplished (I think there was one user who was trying to monitor dryer cycle). You would need to create either a rule somewhere to detect: Power spike when turned-on (triggering the off notification), and Power draw-down causing the notification via SMS or some other method.
ANYONE OUT THERE DONE THIS?
Hi, a very new user here (less than 1 week with SmartThings, using the New App on Android)
Managed to get this setup running, but had to use the Deprecated implementation and tweak the code a bit.
The Official Kasa SmartThings integration does not give the Energy Monitor capabilities, which was a disappointment at the start and brought me to this community
Relevant part of the setup:
1x Samsung Connect Home Hub FW: 000.027.00010 - using the New SmartThings app on Android
1x TP-LINK HS110 - latest FW, on the electrical outlet with the washing machine - via Wifi to Kasa cloud to Deprecated SmartApp from above link.
1x IKEA TRÅDFRI bulb E27 CWS opal 600lm (9 color lamp) - Zigbee direct paired with the Samsung Hub, no other hub for this light.
Some issues when using the New SmartThings App, the GUI behaved differently and had to look at both the SmartApp and the Device Handler code to make the following tweaks:
- DH handler ( TP-Link Energy Monitor Plug.groovy): row 115 hard-coded to to “1” for 1 min refresh upon install instead of 30 min
- SmartApp: line 510 hard-coded Kasa User-ID (email) in quotes " " as it is different from the Samsung SmartThings email, with Kasa password entered upon app installation.
Otherwise followed the steps to the letter and no issues in completing the SmartApp installation and adding the device. Note that it was was already registered in my Kasa account and visible in the Kasa app on the phone.
- Define Scene ‘Red’ that turns the Ikea bulb to color Red
- Define Scene ‘Blue’ that turns the Ikea bulb to color Blue
- Define Automation that is triggered if the current Power (as reported every 1 minute) is more than 3W --> Activate the Scene Red
- Define Automation that is triggered if the current Power (as reported every 1 minute) is less than 2W --> Activate the Blue Scene
The 3W and 2W value are based on observing the power drain using the original Kasa app as the washer goes through the cycle, with less than 2W being seen when the display goes fully off at the end of the cycle, and setting the 3W to have a 1W gap above it before the other automation is triggered to indicate the machine is in use.
While the HS110 reports the current power every 1 minute, these Automations are only triggered if there is a threshold crossing, thus the Scene Red is only triggered once for the entire washing machine cycle, as long as the reported power remains above the 3W, and the Scene Blue is only triggered once, when the power drops below the 2W, when the machine finally goes into standby mode (display goes blanks).
This works well with the light bulb in the living room giving an indication if the machine is idle (Blue) or running (Red), which is the targeted use-case. Added an additional automation that triggers the light bulb to be switched off during night time, and on again around breakfast time. Planning to use the other available light colors to indicate other events, but then will need to use additional cloud logic to tie it all together
Hope this is helpful, this is what it looks like on the lamp and the app: