Giter Club home page Giter Club logo

nano's Introduction

nano

home automation

Prep

  • install OS (Ubuntu)
  • install asdf
  • install node
  • install Git
  • install influxDB

First exploration of commands

  • install smartthings cli first
  • smarthings devices lists all devices - to get the id of the device (heatpump)

Already gives me the most important info

  • smartthings devices:status [ID]

Plan

  • write a polling script in node to poll a. smartthings b. wetherdata (temperature, sunshine hours)
  • push data to influxDb
  • use Grafana or similar to visualize (maybe only Fore + lib)

HomeBridge

install homebridge

npm install -g --unsafe-perm homebridge homebridge-config-ui-x

start homebridge service

sudo hb-service install โ€“-user homebridge

Links:

smartthings cli

https://api.smartthings.com/v1/devices/5574bfcf-b397-8a39-88d3-000001200000/components/INDOOR2/status smartthings API

home-assistant/core#42006

OK, here's the definition of the values:

start: Start date of the reporting period in Iso8601Date format
end: End date of the reporting period in Iso8601Date format
energy: Accumulated energy consumption during the reporting period in watt-hours (Wh)
power: Instantaneous power consumption during the reporting period in watts (W)
deltaEnergy: Delta of accumulated energy consumption during the reporting period in watt-hours (Wh)
powerEnergy: Energy consumption during the reporting period calculated from instantaneous power consumption in watt-hours (Wh)
energySaved: Energy saved during the report period in watt-hours (Wh)
persistedEnergy: Accumulated energy consumption that was saved into device local DB in watt-hours (Wh)

Note: I don't know the frequency or logic behind when a "report" is generated, but I suspect it correlates to a cycle on the appliance. Based on the definition above, energy is not cumulative, rather will get reset every "report". If your goal is to determine total energy used (on-going), you'll need to create a separate sensor for total energy that adds the value of energy whenever it's updated (when a new report comes out).

I'm happy to submit a PR for this, unless @JPHutchins wants to. ๐Ÿ˜„

test

nano's People

Contributors

joernt avatar

Watchers

 avatar

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.