Possible to determine status of Smart Plug?

stephen2android

New member
Hi there, I'm thinking this would be a plugin but just wondering if it's possible to use the status of a smart plug (on or off) to allow an action (not to make an action). For example, send me a notification when my camera detects motion but only if the smart plug is on, and if the plug is off to ignore the motion. So, essentially the smart plug would "arm" or "disarm" my security system.

If so, are there specific brands or models that are compatible?

Thank you!
 
Last edited:

Dimlos

Well-known member
You can use the PyP100 Python library to get the status of the TP-Link Tapo device.

To use it from MacroDroid, you need to install Python on Termux and call it from Termux:Tasker.
It was possible by using tinyCamPRO to detect the motion and branching the condition with the information obtained from PyP100.
 

Attachments

  • Actual operation.jpg
    Actual operation.jpg
    1.1 MB · Views: 7

stephen2android

New member
Thank you. Are you using tinycam pro just as an example or would that be what I need to use? I'm using the wyze ecosystem and don't mind installing the tplink app but would rather not install additional apps to control cameras (and I'm not sure if wyze works with tinycam).

Wyze has an ok ui, Amazon Alexa has some good options that integrate with wyze, ifttt had some great options as well but I'm hoping to do as much with as few apps on my phone using macrodroid.

Thank you again!
Stephen
 

Dimlos

Well-known member
I used tinyCamPRO because it is a Tasker Plugin that can sense movement. I have not used Wyze, but it is not necessary if it has similar functionality. The one I wrote only works with the TP-Link Tapo Smart Plug, so if you have a different Smart Plug, it won't work.

MacroDroid allows you to create macros by simply selecting them, but Termux is character-based, so it may be a little difficult for those who have never used it before, although it is written simply.
 
Top