Git Product home page Git Product logo

tplink-energy-monitor's People

Contributors

avgrad avatar jamesbarnett91 avatar mdavey avatar polsar88 avatar wildstray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tplink-energy-monitor's Issues

email notification feature request

Hey James,

Great work. I've been using this now. The only thing that is missing for my use case is an email notification when the power consumption drops below a threshold for x amount of time (indicating a hard crash on my hw). Do you feel it's an easy to integrate feature?

Right now I'm using a bash script that does poll power data and if the current power readings are lower than my threshold -> fire a timer. If the timer expires the threshold I've set, then send an email notification.

Error Running on Raspberry Pi 3

root@raspberrypi:/home/pi/tplink# ./tplink-monitor-linux
-su: ./tplink-monitor-linux: cannot execute binary file: Exec format error

root@raspberrypi:/home/pi/tplink# sudo ./tplink-monitor-linux
./tplink-monitor-linux: 1: ./tplink-monitor-linux: Syntax error: "(" unexpected

I've got the following Raspberry PI model:
root@raspberrypi:/home/pi/tplink# sudo lshw | more
raspberrypi
description: ARMv7 Processor rev 4 (v7l)
product: Raspberry Pi 3 Model B Plus Rev 1.3
serial: ********************
width: 32 bits
capabilities: smp

root@raspberrypi:/home/pi/tplink# cat /sys/firmware/devicetree/base/model
Raspberry Pi 3 Model B Plus Rev 1.3

Windows 10 crashing

Monitor always crashes on Windows 10 when opening page (localhost:3000). The command prompt window displays some info when the page opens but then crashes and closes the window before I can read what it says. Was working great on previous windows 10 machine. Am able to run through Git but would prefer to run the executable so I can add to startup. Installed jsnode and java and still crashes. Are there any other dependencies?

Connection lost. Attempting to re-establish...

Since a couple of weeks (before it worked for 30 days without an issue) it stopped working and I am getting the title error.
After I ran the tplink-monitor-win0.8.exe and access the link, the exe disapears and I am getting the error. The history is still there but no real time data is available.

HS110, HW 2.0, firmware 1.5.4

No Devices Discovered Yet

Trying to use this on a macbook with the MacOS release with 2 devices, a plug for my freezer and one for my kids room heater. Had it working yesterday, but today all I get is "no devices discovered yet" - turned off ethernet, and switched to the same wifi, but all on the same network. Not sure what to do beyond just cntl/c and starting the program again.
It finds all my other switches, but for some reason misses the ones with the EM.

Connection lost. Attempting to re-establish...

Close this if you think it may be only on my system but I get the following error when using Windows 10 (latest updates applied) and chrome 64 bit version 70.0.3538.67

Connecting to remote machine xx.xx.xx.xx:3000 I get a constant flashing:

Connection lost. Attempting to re-establish...

This woks on the same machine running Edge browser (I have same issue above with IE)

This also works if I run on localhost with firefox.

I am running the pre-compiled linux download. The app looks like it is working but not from those browsers.

Thanks

Error with Node + NPM through windows 10

Hello.
I had tplink-energy-monitor working fine until recently on my windows 10 with node and npm .
Today i am unable to load because there is the following error according to log file, so i would like some help
2020-03-16T07_57_00_087Z-debug.log
:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 info lifecycle [email protected]
start: [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\liakj\tplink-energy-monitor\node_modules.bin;C:\Python27;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Users\liakj\AppData\Local\Programs\Python\Python38\Scripts;C:\Users\liakj\AppData\Local\Programs\Python\Python38;C:\Users\liakj\AppData\Local\Microsoft\WindowsApps;C:\Users\liakj\AppData\Roaming\npm
9 verbose lifecycle [email protected]start: CWD: C:\Users\liakj\tplink-energy-monitor
10 silly lifecycle [email protected]
start: Args: [ '/d /s /c', 'node ./app.js' ]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: null
12 info lifecycle [email protected]
start: Failed to exec start script
13 verbose stack Error: [email protected] start: node ./app.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:311:20)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:311:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\liakj\tplink-energy-monitor
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
18 verbose node v12.16.1
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: node ./app.js
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

tplink-energy-monitor-win crash

Hello, i am dealing with an issue. I was able to monitor my tplink hs110's until last friday.
Then suddenly, without do any change to files, the exe will crash.
As i was unable to read the error, i created a bat file with pause function, and this is what i got :

C:\Users\liakj\Downloads\tplink-monitor-win>tplink-monitor-win.exe
Logger config file: "logger-config.json"
Log directory path: "."
events.js:183
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::3000
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at Server.setupListenHandle [as _listen2] (net.js:1351:14)
at listenInCluster (net.js:1392:12)
at Server.listen (net.js:1476:7)
at Function.serverListen [as listen] (C:\snapshot\tplink-energy-monitor\node_modules\express-ws\lib\index.js:42:40)
at Object. (C:\snapshot\tplink-energy-monitor\app.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1243:22)
at Object.Module._extensions..js (module.js:644:10)
at Module.load (module.js:552:32)

Hombridge integration (or IFTTT integration)

I am looking for a possibility to integrate the HS110 (EU) in Homekit using Homebridge. The homebridge-tplink-smarthome project works fine for integration of the switch-function of the plug, but for the eu-version power monitoring does not work.

Since your project works fine for power monitoring of the eu-version, I was wondering, wether you could integrate a hombrigde-plugin or provide the data needed for power monitoring the eu-version in an extra branch of the homebridge-tplink-smarthome project?

(What I want to do is getting a push notification and switching the plug off when the power consumption is under a special level. My idea for now is to use a homekit automation for switching the plug of and switching a dummy switch on in homekit which will be the trigger of an IFTTT webhook generating the push notification. The missing part is the power monitoring in homekit, which seems to work for the us-version of the hs110.)

power consumption last 24 hours

Thanks for this tool.

I use it on a windows pc. Programming is not one of my skills.

Would it be possible too see the power consumption off the last 24 hours?
So I have an idee when there are peaks in the consumption.

Thanks

Error Reading Logger Config

I am 100% not exactly sure how to use this, but Im hoping to dump the data from my HS100s running my heater and my freezer to excel or some other format for long term analysis. Ive got it up and running, but I cant figure out in macos what the proper syntax for the log file would be. I tried to drag a folder to the txt editor and it dropped in my userfolder/folder/tplink-energy-monitor/ but when i run it, i get
Logger config file: "logger-config.json"
Error reading logger config. Reverting to defaults. { Error: ENOENT: no such file or directory, open 'logger-config.json'
That file is in the same folder as the executable, and is the one i edited.

exe terminates after ~1minute

Hey. First I want to say thanks for sharing this project!

I downloaded tplink-monitor-win.exe v0.7. It starts and detects the Plugs fine. I can access the webpage and see the monitoring etc. But after a minute or so the exe terminates and monitoring stops. It does not write a log file so I can't share that... I can't capture it on screen as it exits too fast.
It does write the json logs for the plugs.
I tried to set the log interval to 10sec to see if that was the cause, but seem slike the config file path is hardcoded:
Error reading logger config. Reverting to defaults. SyntaxError: Unexpected token � in JSON at position 0 at JSON.parse (<anonymous>) at loadLogConfig (C:\snapshot\tplink-energy-monitor\services\data-logger.js:0:0) at Object.<anonymous> (C:\snapshot\tplink-energy-monitor\services\data-logger.js:0:0)

image

Daily and Monthly Average kWh usage

It would be appreciated if you could verify the calculations for the daily and monthly average KWh figures. They do not appear to be correct or correlate to the Kasa App.

A spot check of the historical data appears to confirm this, assuming I am working it out correctly.

Great effort with this. I would like a scroll on the historical charts though.

Regards

HS300 power strip support

Is it possible to add support for the 6-plug power strip? It is detected but data is not displayed correctly.

Leap year

1.3. I've just lost daily values for February.
I can still see monthly values.
Seems that leap year is not supported ?

tplink

Where are the Historical logs stored?

Hello,

thank you very much for this great work! :) So i am really happy to use it. But now i am searching the logs where the historical data is stored. Can anyone tell me whre they are?

Thank you very much.

kindly regards
Sani

behind proxypass

Hello,

any chance do be able to access this behind a proxypass with https?

I tried but the ws link is not working with https
var wsUri = 'ws://' + window.location.host + '/ws'

Error messages!

Does this recurring error message mean anything to anyone.
NPM on Ubuntu

Chris

`TCP Timeout
[HS110(UK) 02] device.send() Error: TCP Timeout
(node:13330) UnhandledPromiseRejectionWarning: Error: TCP Timeout
at Timeout._onTimeout (/home/user/tplink-energy-monitor/node_modules/tplink-smarthome-api/lib/client.js:249:20)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
(node:13330) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1138)

TCP Timeout
[HS110(UK) 02] device.send() Error: TCP Timeout
(node:13330) UnhandledPromiseRejectionWarning: Error: TCP Timeout
at Timeout._onTimeout (/home/user/tplink-energy-monitor/node_modules/tplink-smarthome-api/lib/client.js:249:20)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
(node:13330) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1139)
TCP Timeout

[HS110(UK) 02] device.send() Error: TCP Timeout
(node:13330) UnhandledPromiseRejectionWarning: Error: TCP Timeout
at Timeout._onTimeout (/home/user/tplink-energy-monitor/node_modules/tplink-smarthome-api/lib/client.js:249:20)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
(node:13330) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1140)
`

Realtime Usage - Power calculation wrong?

When consuming only very little I think the power calculation is not correct. At least with the "official" formula P = U x I there should be another result in my example (0.08 A x 228 V = 0 W?)
2019-05-23 22_10_35-Smarte Steckdose - Energy Monitor

date filter for Logged Usage

hi
GREAT project
i really like to hoard my data so of course i changed the max log entries to 1.000.000 :)
issue with that, is that the Logged Usage section gets unreadable after a while
have you considered adding a date filter into the webinterface?
i don't know how complicated it should get
from/to? with default set to last 24h

again, great work

Error running on Win10 (1803)

Hello and thanks for the excellent work!
Works but,
Tried running it on Win 10 as administrator and also in Win7 compatibility mode and I get these errors:
Found device: Camera Lights [80062910FBFD4923BAAFA9428113FA93189CE220] Found device: Fan [8006544238C6695927A47251B927223A187284EB] (node:22964) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ResponseError: err_code not zero response: {"err_code":-1,"err_msg":"module not support"} (node:22964) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:22964) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ResponseError: err_code not zero response: {"err_code":-1,"err_msg":"module not support"} (node:22964) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): ResponseError: err_code not zero response: {"err_code":-1,"err_msg":"module not support"}

Mac package not working

Hey,

Great app on Windows but I can't seem to get the mac version of the package to work. Do I need to do something special to get it to run? On Windows I just run the .exe but I'm clueless on my mac.

Support for TP-LINK Smart Bulb LB130

Hello,

This is more an enhancement request rather than an issue but not able to tag the "enhancement" label to this post.

Is the TP-LINK Smart Bulb LB130 on the roadmap for support with the energy monitor?

It appears the Kasa app has the ability to pull energy monitoring details from it.

Also, wondering if there is a timeline for implementing the daily cost metrics for HS110?

Thanks.

The tplink-monitor-win on Windows closes down by itself

As in the title, the application closes by itself. It started doing this today at 16:20 GMT as far as I noticed. No errors or anything. No idea why. Dashboard at localhost:3000 in the top right corner displays in red "Connection lost. Attempting to re-establish".

Manually input IP?

Hi I have devices at multiple physical locations on different network subnets. I am VPNed into each network with my server and can reach the TP link devices on each however the software only detects devices on either one network or the other. Is there anyway to manually input the device IPs so I can access devices on both networks from the same web server? Thanks!

Running app slows down communication with Kasa app

While I have the logging enabled, it takes about 5 seconds or so to refresh the kasa app for all my devices. Is there a way to slow down the polling period or only poll from my 2 energy monitor devices, leaving the other 10 or so unmonitored?
Thanks!

Automatically search for plugs

When we start the application by "npm start" and we plug a new plug we must stop the application and restart to consult it, maybe someone can solve this issue?

For example: I have three plugs, I plug two of these and I start the application, I can see these. But when I plug the third I can't see this directly I need to stop the app and restart it.

Adding act like a variable Fuse function and kw/h limit function

I would like to have the energy metering plug to be able to turn off if exceeding a user defined power limit acting like a varilable fuse, like if using more than 2330 watt for xxx milliseconds then shuts off the power to the device and send an alert. Its a good way to make a cheap variable fuse that sends an alert to the users phone when i happens.

The other is to add a by the hour power consumption chart.
Then when counting by hour is it possible to limit power consumption within the clock hours. When the user defined xxx kw/h within the clock hour is exceeded then turn off the power until the next top on the hour. I would like my plug to never use more than xxx kwh within one hour because my energy company charges a 10 usd fee for every 1/10th of kw/h exceeded within one single clock hour for the past 12 months. On a heater this function could be used as a virtual thermostat function allowing a 2000w no thermostat heater to make just xxx watt within one hour.

Problem running Windows package

When I run the Windows package and try to open the page in Google Chrome (or Firefox) the energy monitor doesn't seem to display properly and doesn't show any data readings. It looks like this:
isue2
issue3

This is what shows up in the command prompt:
issue1

Any ideas?

dash.js issues

So no devices are being detected if i used the Windows exe program or if I run it on a synology NAS on docker.

The website loads but on both instances, no devices detect but the site loads.
If I look in the console I do get the following errors.

GET https://getbootstrap.com/assets/js/vendor/popper.min.js net::ERR_ABORTED 404
dash.js:32 Websocket connection established

dash.js:278
Uncaught TypeError: Cannot use 'in' operator to search for 'power_mw' in undefined
at Object.refreshRealtimeDisplay (dash.js:278)
at WebSocket.wsMessageHandler (dash.js:55)
refreshRealtimeDisplay @ dash.js:278
wsMessageHandler @ dash.js:55

dash.js:300
Uncaught TypeError: Cannot read property 'forEach' of undefined
at Object.parseDailyUsageData (dash.js:300)
at WebSocket.wsMessageHandler (dash.js:58)
parseDailyUsageData @ dash.js:300
wsMessageHandler @ dash.js:58

dash.js:338
Uncaught TypeError: Cannot read property 'forEach' of undefined
at Object.parseMonthlyUsageData (dash.js:338)
at WebSocket.wsMessageHandler (dash.js:61)
parseMonthlyUsageData @ dash.js:338
wsMessageHandler @ dash.js:61

dash.js:367
Uncaught TypeError: Cannot read property 'isOn' of undefined
at Object.refreshPowerState (dash.js:367)
at WebSocket.wsMessageHandler (dash.js:64)

Thanks.

Changing port number

Default service port (3000) can move into setting file.

And if it possible service should throw an error if port was used by another service. I have just struggled with installation, it turns out another service that I forgot about was already running on port 3000 at my Rpi.

Measured values with more decimal places

Hello James,

really great app! Thanks a lot. It is helpful for me to find unknown high power eater...

But it would be very helpful to see the electrical power (3 W)with two decimal places (2.52 W), as well as in the Realtime Trend Graphic. Also the voltage with one (or two) decimal place would be great.
(I realize that the device itselfe probably does not give the accuracy of the measurement, but looking at the numbers in the KASA APP, these are amazingly plausible.)
Where can I find and change the format of the number output? Is the numerical value for Power and Voltage processed as an integer number or as a decimal number?

Thank a lot for your help.

PS: One more question please: Is there any easey way to disable the viewing of the dots in the graphics? For large periods you only see points (point porridge) and no line ...)

Best Regards
Pauliene

Voltage Reported incorrectly?

For some reason my voltage is showing as 86v instead of ~120v. Anyone else seeing this? My UPS is showing 122v. The wattage is so far off between the 2 because there are other things plugged into the UPS that are not plugged into the TPLink plug.

capture5

No device found on debian server

Hi,

I have a debian server, which acts as my internet router, my internal network center, my cloud server, my openvpn server, tor client and many other thing.
When I run the application on my win10 on the same network, I can see the data on the web-page on port 3000, but when I start it on my server, it cannot find the same device on the same network.
I'm suspecting, it is looking on the first interface (eth0), which is my interface toward the internet and not on eth1, which is my whole internal LAN interface (192.168.2.X), where the win10 PC and the HS110 is located as well.
Is there a way to determine which interface the tplink-monitor-linux application should look for my HS110?
I would like to run this tool on my server 24/7, after all this is what servers are for :)

Thanks for your help and reply in advance!
Dutch Flander

Total Today and Daily avg keep disappearing until i restart the software

Hi,

i followed the guide to run the monitor software on a raspberrypi 3B using the git & npm method and it works great except for one minor issue. i hit the page running from time to time and the Total Today and Daily Avg keep disappearing and just show a blank line as if there is no data. once i restart the server it populates. Any ideas?

Peak "production" graph for solar arrays

First of all, thank you for your soft. I have it set up with two 80W panels, and I am trying to measure the "production" rate. It would be helpful to have a maximum/peak per day, in order to see if they can produce maximum peak performance. Also it might help for older panels to see if the production is degrading or if they might need cleaning.

P.S. DId not see the logged usage, since it was dark outside :) ... closing

Setup the plug IP address

Hello,

For whatever reason, the software didn't discover the TPLink plug, but I can see it in the network.
I have installed the arp-scan on my Rasbery Pi
sudo apt-get install arp-scan
I have run the scan
sudo arp-scan -l
and indeed I can see the TPling MAC address and the IP address assigned.

It is a way to enter the IP address and basically skip the scan? Of course, taking in consideration this IP address it is a dynamic IP and it will be renewed.

Thanks

Change gauge max value

First of all, thank you for this project. I'm currently monitoring low powered device(s) which is their power consumption is less than 20w. Is there anyway that I can change the max value for the realtime usage gauge? I saw the max value is set to 3000, which make my 20w usage is barely noticeable.

Unhandled Promise Rejection on Windows App

Hi There,
Thank you for creating such a convenient dashaboard. It works great for one of my smart switch HS110, however the other two although it detects them, but does not seem to get the data. The console continues to throw exceptions like below:

[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 84): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 85): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 86): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 87): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 88): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 89): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 90): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 91): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 92): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 93): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 94): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 95): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 96): Error: connect ECONNREFUSED 192.168.9.1:1024
[TV] device.send() Error: connect ECONNREFUSED 192.168.9.1:1024
(node:21952) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 97): Error: connect ECONNREFUSED 192.168.9.1:1024

The IP 192.168.9.1 is my Router and I don't think the app should be looking at the router but shouldn't it be looking at the IP of the switches and the port 1024 or 9999?

Thanks

Pulling historical data from the switches

Is there a way to pull that Monthly data down to export it to excel? id love to have the Daily records of power usage to log against temps for my freezer and heater.. but running the console seems to slow my network down (noticed a significant number of re-requests and sluggishness with my KASA app since starting it.) Id love to be able to log in once a month, capture the previous 30 days data for both devices and put them in an XLS or JSON file to record keeping.

Avoid initial scan

Hi everyone.
The title is very meaningful. I'd like to jump the initial scan, and start using a plug with a specific IP.
The problem: I'm accessing to my home LAN through a VPN client. The software runs into the client, but it doesn't detect the plug because the client VPN LAN is different from the remote LAN.
I think the solution might be something like "npm start IP_plug".
If I ping the plug from the client VPN LAN, it works perfectly. Therefore, there is communication between both sides of the VPN.
Any idea?

Conflict with HS100 devices

I have a network with 3 x HS100 and one HS110 plug. They are all visible in Kasa and the HS110 shows energy monitoring detail.

Have downloaded tplink-monitor-win.exe. Program runs and I can access the web page. I allowed access through my laptop firewall. However, I just get skipping message, and the HS110 does not appear to be detected.

i.e. server text window shows
Logger config file: "logger-config.json"
Log directory path: "."
Skipping device: Device1 [lots of numbers], Energy monitoring not supported.
Skipping device: Device2 [lots of numbers], Energy monitoring not supported.
Skipping device: Device3 [lots of numbers], Energy monitoring not supported.

The -log.json file created just contains []

All devices and my laptop are on the same network. I do not use Virtualbox.

HS110 hardware is v2.1. Firmware is v1.5.7.

Anything I can do to get my HS110 detected by tplink-monitor.win.exe?

Thanks.

Voltage indicating incorrectly, "module not support", aggregated power feature request

Thank you for this project.

Not sure what is protocol here, so just barfing all my feedback into a single post.
Firstly, I have an inordinate about of TPLink devices, including LB120, LB130, 2x HS100, 10x HS110, and an HS200. I searched for and discovered this project primarily to be able to easily view the aggregate power usage of all (or some) my HS110 plugs.

My feedback

  1. All my HS110 plugs are connected to 240V power. This has been verified by a multimeter. As well, I did the wiring, breaker installs, etc myself ;) But the application is reporting ~170v. The HS100 plugs, connected to 120v are reporting around 86v. Which is interesting as the Android app doesn't present voltage at all. Perhaps it is not show in the Android app because the voltage is broken in the devices. And perhaps this problem is totally unrelated to your project. Because watts = volts * amps, this is all easy to validate that something is wrong. For example, one of my HS110 shows: 760w, 3.15a, 172v. The math doesn't quite work out here. And indeed, 760/3.15=241. So I trust the amps and watts, but the volts is wack.

  2. Likely a result of the app discovering the bulbs (LB120, LB130), this error scrolls by endlessly: (node:11096) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4103): ResponseError: err_code not zero response: {"err_code":-1,"err_msg":"module not support"}

  3. I am unable to contribute with code (although happy to contribute with money or beer), but what I want more than anything is a quick way to see how much power all the HS110s are using. Bonus: Select the HS110s I want to aggregate for a sub-total power figure.

  4. I place all my IoT devices on their own SSID, their own IP network, and in their own security zone on my firewall. Thus only by connecting my PC to this network can I discover the devices. Which is counter to the entire reason for having an IoT network: Security. It would seem better to auth to the web API?

Thanks again!

No Data Shown Through Proxy

Hey,

Firstly thanks for the app just exactly what I wanted.

One issue though is that I have no data from the plug that is being displayed if i looked at the dashboard through my proxy (traefik). The local address :3000 show everything right. But if I look through my domian.com I just have the device name / model but that s it. There is no consumption data .. any ideas?

cheers,

Last 30 days, Last 60 days, and Specific Start and End Date

Hey James,

Thanks a bunch for posting this App. Incredibly helpful!

Since most electric bills do not start and end conveniently within the same month, it would be great if we could see:

  • Last 30 days
  • Last 60 days

but ideally :)

  • Set a START DATE and END DATE - and have the App give you the Total KWh during the designated period.

That way it would be very easy to check your consumption against that reported by the DWP.

Thanks again!!

Question about collected data

Hi James, thanks for your work.

Reading your documentation I've have one doubt: where are the data stored?
I mean, I know that TPLink HS110 can store some data, but I was wondering if you have used another mechanism (i.e. a database) to increase the data frequency (I would collect data every 10 seconds or less) and the time span (I would collect over data over months and maybe years).
This could be useful for further investigation about power consuption.

Energy cost calculation

I think i would be a cool feature if there is a way to specify the kw/h price in a config or via the gui and have also information about the energy cost.

Something like "Total today" and "Total this month" and "Total this year"
Also graphs for "Last 30 days" and "Last 12 month"

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.