Git Product home page Git Product logo

smarthome's Introduction

Smart Home

This is my playground for home automation / smart home, whatever you want to call it.

My goal is to integrate the sensors I have and do something useful. There is no final plan, it evolves as I wade. Please note that the flows are tied to my environment and you might need to adjust them if you reuse them.

Clone the repo

Run git clone --recurse-submodules https://github.com/dArignac/smarthome.git.

Basic Setup

Overview diagram

Hardware

Software

External Tools

Open Tasks

See https://github.com/dArignac/smarthome/issues.

Installation

Follow SETUP.md.

Afterwards ramp the services up by running docker-compose up -d.

If everything was alright, then you can access the services as follows (Note that my pi is named nodered, yours probably has a different name):

PiCoolFAN4

If you use PiCoolFAN4 for cooling the Raspberry Pi, check out PiCoolFAN4/README.md.

Nodered Flows

Grafana Dashboards

Additional information

MQTT Topics

# topics for all monitored raspberry pis
/home/pis/<pi-name>/health
# miflora
/home/bluetooth/miflora
# inkbird
/home/bluetooth/inkbird

Influxdb

Issues when starting

If influxdb cannot be started with some error like influxdb | run: open server: open tsdb store: lstat /var/lib/influxdb/data/db0/autogen/320: bad message then check the hard disk. Stop all services beforehand.

umount /mnt/pi1
sudo fsck /mnt/pi1
mount /mnt/pi1
<start services again>

Shell

Run docker-compose exec influxdb influx -precision rfc3339 -database db0

Then query around, e.g.:

SELECT * FROM "raspberries"
SELECT * FROM "lacrosses"
SELECT * FROM "miflora"
SELECT * FROM "miflora" WHERE "sensor" = 'Jasmin'
DELETE FROM "miflora" WHERE "sensor" = 'Wayne'
DROP SERIES FROM "miflora" WHERE "sensor" = 'Jasmin'

Sources used for creating this (loose order)

smarthome's People

Contributors

darignac avatar github-actions[bot] avatar

Watchers

 avatar  avatar  avatar  avatar

smarthome's Issues

Flow freezes

After running around 120 days, the first flow froze and did not create any output. The nodered app itself worked properly, the other flows worked. Redeploying the frozen flow fixed it and it was running again. About 20 days later, a different flow froze, too. Redeploying again fixed it.

Unfortunately, in both cases, I lost several days of data, as I was not aware that this happens.
To solve this, I'll do the following:

  • add alerts per flow to grafana (also see how alerting there works, never used it)
  • upgrade to latest nodered version
  • observe

Use Miflora wisely

Depending on the plant, there are different thresholds for the received values.
Need to find out which they are and display them accordingly.

Further Raspberry Health data

* task count
* sdcard used|free space
* sdcard used|free space
* hdd free space in relation to size
* smart stats for external hdd and sdcard?
* influxdb stats?
* https://www.elektronik-kompendium.de/sites/raspberry-pi/1911251.htm
* https://www.elektronik-kompendium.de/sites/raspberry-pi/2006071.htm
* https://learn.adafruit.com/an-illustrated-shell-command-primer/checking-file-space-usage-du-and-df

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.