JBlocks / fritzbox-smarthome-grafana

AVM FRITZ!Box Home Automation / Smart Home collector and visualization with Grafana, Prometheus and FRITZ!OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AVM FRITZ!Box - SmartHome monitoring

Draw information about the installed AVM FRITZ!Box smarthome devices (powermeters, thermostat, ...) to grafana.

Version

The latest configuration was validated with the following FRITZ!Box model, FRITZ!OS and docker images.

FRITZ!OS Box
7.57 FRITZ!Box 7590
Software Docker image Version
Prometheus prom/prometheus 2.31
Grafana grafana/grafana 8.2
FRITZ!Box smarthome exporter jaymedh/fritzbox_smarthome_exporter 0.4.3

Motivation

Independent reading of the power consumption of AVM FRITZ devices, temperatures in rooms with a visualization (graphs) and the possibility of filtering / limiting the data.

Architecture

Grafana <- Prometheus <- FRITZ!Box SmartHome exporter

Installation

Create network "monitoring"

docker network create monitoring

Download Fritz!Box certificate

Create .env file for docker-compose

# Fritz!Box SmartHome Exporter
FRITZ_USERNAME=
FRITZ_PASSWORD=
FRITZ_URL=https://192.168.178.1

# GRAFANA
GRAFANA_ADMIN_USERNAME=admin
GRAFANA_ADMIN_PASSWORD=grafanaAdmin! 

Grafana

Url: http://localhost:3000/ or http://YOUR_SERVER_IPv4:3000/

Data sources

  • Name: Prometheus - FRITZ!Box
  • Url: http://mon_prometheus:9090
  • Access: Server
  • Skip TLS verify: true
  • Scrape interval: 15s

Dashboard

Import the Grafana dashboard file grafana-dashboard-template.json and set the data source to the previous defined data source Prometheus - Fritzbox.

Prometheus

The configuration for prometheus is located in prometheus/prometheus.yml.


Contribute

Pull Requests are gladly welcome! Nevertheless, please don't forget to add an issue and connect it to your pull requests. This is very helpful to understand what kind of issue the PR is going to solve.

Credits

Thanks to all contributors and everybody provided feedback.

Disclaimer

This project has no connection with the manufacturer AVM and was not sponsored. This is a private project that arose out of motivation.

If this project violates the terms of use or use cases, please contact me directly to find a solution.

About

AVM FRITZ!Box Home Automation / Smart Home collector and visualization with Grafana, Prometheus and FRITZ!OS

License:GNU General Public License v3.0