Git Product home page Git Product logo

lux4rd0 / kasa-collector Goto Github PK

View Code? Open in Web Editor NEW
43.0 5.0 6.0 85 KB

Kasa Collector provides a way of collecting real-time energy data from Kasa Smart Plugs. These Grafana dashboards offer visualizations for their Current, Voltage, Power, and Total Watt Hours.

Home Page: https://labs.lux4rd0.com/kasa-collector/

License: GNU Affero General Public License v3.0

Dockerfile 1.55% Python 98.45%
kasa-smart kasa kasa-devices grafana influxdb kp115 hs300 smart-plug

kasa-collector's People

Contributors

lux4rd0 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

Watchers

 avatar  avatar  avatar  avatar  avatar

kasa-collector's Issues

Health Check is failing

I always get this message. By visiting the code, I cannot find this file at all.

kasa-collector    | kasa-init: Starting Health Check
kasa-collector    | /kasa-collector/kasa-collector-init.sh: line 98: ./start-health-check.sh: No such file or directory

this is my compose

services:
  kasa-collector:
    container_name: kasa-collector
    environment:
      TZ: America/Chicago
      KASA_COLLECTOR_COLLECT_INTERVAL: 5
      KASA_COLLECTOR_DEVICE_HOST: 192.168.178.49
      KASA_COLLECTOR_HOST_HOSTNAME: localhost
      KASA_COLLECTOR_INFLUXDB_PASSWORD: none
      KASA_COLLECTOR_INFLUXDB_URL: http://influxdb:8086/write?db=kasa
      KASA_COLLECTOR_INFLUXDB_USERNAME: none
    image: lux4rd0/kasa-collector:latest
    restart: always
    depends_on:
      - influxdb

  influxdb:
    image: influxdb:1.8
    container_name: influxdb
    restart: always
    ports:
      - "8086:8086"


version: '3.3'

discovery of kasa devices

My unraid server is on a different VLAN than my the kasa devices. I would think this would be pretty much standard. Is there a way to specify the VLAN for the Kasa devices with respect to discovery or should it be able to find them anyway?

I am trying to just add the vlan to the network on unraid and see how that goes...

Welp, no luck. Could be user error, but I definitely won't be moving IoT devices out of an IoT network to see just to see something on grafana. This new version seems to be missing the ability to manually add devices? Is the only way to get devices added via discovery? I hope I am wrong about this and there is a way to manually add by assigning an IP address like before.

Thanks for any help

Not sure I understand these graphs

Now that I've collected 24h of data I'm not sure I understand what I am looking at here:

image

The power bar is reporting 68w but if you add up all 6 devices below you get 235.26w

This would lead me to believe the top 4 graphs are also incorrect if they are based on the power bar number.

It is also possible I simply do not understand what I am looking at :)

sysinfo data doesn't get imported into influx for multiple plug units

emeter_output.json
sysinfo_output.json
influx
If I enable JSON files (attached), I can see the state of each plug is logged in the sysinfo JSON, however the child devices don't get imported into InfluxDB. I'm assuming this is because the emeter JSON uses plug_alias for the description and sysinfo uses alias under children. My goal is to know when a device has failed and see the state is on while not using any energy, but I'm not sure how to work the data into influx.

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.