jamesbarnett91 / tplink-energy-monitor

An energy monitoring dashboard for TP-Link smart plugs
GNU General Public License v3.0
462 stars 102 forks source link

email capabilities #66

Open gantonel opened 4 years ago

gantonel commented 4 years ago

Hi James, I think your software is excellent. I am using it to check that a pump is working when water accumulates in a sump. A feature that would help me in my situation would be the ability to be notified by email as soon as the pump starts and another notification when the pump turns itself off. The trigger would have to be a current that is slightly over the normal draw of the TP-Link HS110. Regards Giorgio

mchenier commented 4 years ago

I made a little project because I have the exact same need. https://github.com/MasterMartbob/tplink-hs110-pump-monitor

There is no UI so you might want to keep using this project. But if you try it give me feedback :)

gantonel commented 4 years ago

Hi MasterMartbob,

Many thanks. Your supplied link to software seems to be exactly what I require. Would it be possible to have a WhatsApp call with you? If not, I might just email you some questions and suggestions.

Regards

Giorgio Antonelli

Sent from my iPhone

On 28 Mar 2020, at 1:34 am, MasterMartbob notifications@github.com wrote:

 I made a little project because I have the exact same need. https://github.com/MasterMartbob/tplink-hs110-pump-monitor

There is no UI so you might want to keep using this project. But if you try it give me feedback :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

gantonel commented 4 years ago

Hi MasterMartbob, I have managed to get your project to run. It is working in that I can see the readings come up every 10 seconds. I have managed to receive MANY MANY emails because of inactivity, but I have not managed to get an email to say that the pump started or stopped. I suspect that you are VERY VERY close to having a fully functioning project. Congratulations

Regards

Giorgio

gantonel commented 4 years ago

Hi MasterMartbob, I have identified the bug that was preventing emails from being sent. usage.power should have been usage.power_mw With that change, it seems to be working. Congratulations once again

Regards

Giorgio

mchenier commented 4 years ago

@gantonel please open an Issue on my repository so we can discuss more of your improvement and discovery of bug. Github won't let me discuss directly to you.