{"id":16293100,"url":"https://github.com/vogler/smart-home","last_synced_at":"2025-03-20T03:31:01.111Z","repository":{"id":39750591,"uuid":"180446293","full_name":"vogler/smart-home","owner":"vogler","description":"Smart home config (RPi, ESP, many sensors, node-red, influxdb, zigbee2mqtt)","archived":false,"fork":false,"pushed_at":"2025-01-08T21:07:34.000Z","size":1539,"stargazers_count":10,"open_issues_count":5,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T14:22:02.832Z","etag":null,"topics":["chronograf","homeassistant","homeassistant-config","influxdb","node-red","node-red-flow","raspberry-pi","rpi","sensors","smart-home","smarthome","telegraf","zigbee2mqtt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vogler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-09T20:42:38.000Z","updated_at":"2025-01-08T21:07:38.000Z","dependencies_parsed_at":"2022-09-20T10:15:12.356Z","dependency_job_id":"3f0dd85c-2e2c-45d3-9659-91cf1a2b34e1","html_url":"https://github.com/vogler/smart-home","commit_stats":{"total_commits":371,"total_committers":2,"mean_commits":185.5,"dds":"0.0026954177897574594","last_synced_commit":"fa4d8dbcfdd542b7ae2628a70037e39c0ed42055"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vogler%2Fsmart-home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vogler%2Fsmart-home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vogler%2Fsmart-home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vogler%2Fsmart-home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vogler","download_url":"https://codeload.github.com/vogler/smart-home/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244543753,"owners_count":20469556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chronograf","homeassistant","homeassistant-config","influxdb","node-red","node-red-flow","raspberry-pi","rpi","sensors","smart-home","smarthome","telegraf","zigbee2mqtt"],"created_at":"2024-10-10T20:10:11.000Z","updated_at":"2025-03-20T03:31:00.457Z","avatar_url":"https://github.com/vogler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Chronograf dashboard](https://i.imgur.com/KdjZi8j.png)\n![node-red light automation](https://i.imgur.com/qlGAEON.png)\n\nDevices:\n- Raspberry Pi 3 \u0026 4:\n  - First used [home-assistant](https://www.home-assistant.io/), now only [node-red](https://nodered.org/).\n    - home-assistant was slow, didn't use UI anyway; node-red is much nicer for automation and for playing around.\n  - [zigbee2mqtt](https://github.com/Koenkk/zigbee2mqtt/) ([config](opt/zigbee2mqtt/data/configuration.yaml))\n    - Aqara door sensors, Hue motion sensors, Hue and Ikea Tradfri lights\n    - First used CC2531 USB stick, now CC2530 via UART USB because of supposed better range.\n  - [Sensors](https://github.com/vogler/sensors) -\u003e [MQTT](https://mosquitto.org/) -\u003e [Telegraf](https://github.com/influxdata/telegraf) (collects metrics) -\u003e [InfluxDB](https://github.com/influxdata/influxdb) (TSDB) -\u003e [Chronograf](https://github.com/influxdata/chronograf) (web GUI, graphs)\n    - InfluxDB is not reliable on 32 bit OS, fails to allocate memory and somehow crashes the RPi every couple of days (see [issue](https://github.com/influxdata/influxdb/issues/11339#issuecomment-525500034)), partially fixed by switching to 64 bit kernel on RPi4, see [influxdb-fail.md](influxdb-fail.md).\n- Wemos D1 mini: [FlowMeter](https://github.com/vogler/FlowMeter) for shower usage\n- Wemos D1 mini: 16x16 WS2812B [LED-matrix](https://github.com/vogler/LED-matrix) with [WLED](https://github.com/Aircoookie/WLED) and custom [wled.py](https://github.com/vogler/smart-home/blob/master/wled.py) to show CO2 level and other numbers. In 3D-printed case with black PLA grid to separate pixels, sandwich paper as diffusor and dark acrylic glass plate as screen cover.\n- Artillery Genius 3D printer, see [gist](https://gist.github.com/vogler/588c577a37f5a573afa5b1000307d41b) for modifications \u0026 config\n- switches/sockets:\n  - Flashed with [Tasmota](https://github.com/arendst/Tasmota):\n    - Sonoff-Touch-Bad: wall switch for bathroom\n    - Sonoff-S20-LED-Strip: ~4m of 5m 5054 120LEDs/m Cool White 12V on 10A power supply, installed in angled alu mount with white diffusor\n    - Sonoff-S26-Genius: 3D printer \u0026 E27 LED bulb in Ikea Lack table enclosure\n  - BlitzWolf-BW-SHP6-TV: has power measurement\n- Roborock-S50 vacuum robot\n- SmartMi-Fan-2S\n- Amazon-Echo-Dot\n\n### external access\n#### IPv6 from IPv4\n[M-net](https://www.m-net.de/hilfe-service/fragen-und-antworten/frage/show/kann-ich-mit-ipv6-auch-auf-netzwerk-ressourcen-mit-ipv4-adresse-weiterhin-zugreifen/1/internetanschluss/) is using [Dual-Stack Lite](https://en.wikipedia.org/wiki/IPv6_transition_mechanism#Dual-Stack_Lite_(DS-Lite)) ([de](https://www.elektronik-kompendium.de/sites/net/2010211.htm)) which means I only have a public IPv6 address and carrier-grade NAT for IPv4.\nOnly had IPv4 on the phone with o2, but since [june 2021](https://www.teltarif.de/o2-ipv6-mobilfunknetz/news/84237.html) they also support IPv6.\nStill, when traveling, mobile/hotel WiFi might have IPv4 only. Check with https://ipv6-test.com.\n\nFree solutions for accessing IPv6 from IPv4-only connections:\n- [localtunnel](https://github.com/localtunnel/localtunnel) for each port: `npx localtunnel --port 8080`\n- [tailscale](https://tailscale.com): Point-to-point WireGuard VPN\n- [6to4 relay](https://en.wikipedia.org/wiki/6to4): have not tried\n\n#### DNS\nUsing [MyFRITZ](https://www.myfritz.net/) DynDNS in FritzBox, rpi{3,4}.voglerr.de subdomains with cloudflare as nameserver for proxy/stats and [CNAME flattening](https://blog.cloudflare.com/introducing-cname-flattening-rfc-compliant-cnames-at-a-domains-root/) which allows CNAME for domain root as well.\n\n#### VPN\nUsing [PiVPN](https://www.pivpn.io/) for WireGuard with clients on MBA and phone.\nUnfortunately can't access the VPN IPs if the foreign network happens to use the same subnet (all FritzBox seem to use 192.168.178.1 - could change mine to e.g. 192.168.0.1, but that's not a failsafe solution).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvogler%2Fsmart-home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvogler%2Fsmart-home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvogler%2Fsmart-home/lists"}