Рет қаралды 63,128
Thank you for watching. In this video we will set up statistics monitoring using the InfluxDB database engine and the Grafana dashboard.
Home Assistant by default only retains 10 days of statistical data, it is recommended not to increase this. If you need to access statistical data beyond this, it can be recorded in a separate database. InfluxDB is ideal for this. You can host this on a database internal to your Home Assistant installation, or on a separate database server. To keep things simple, we are using the InfluxDB addon from the addon store.
Code from the video:
influxdb:
host: yo.u.r.ip
port: 8086
database: homeassistant
username: homeassistant
password: Password123
max_retries: 3
default_measurement: state
Change the above as appropriate, replacing your own IP address and the credentials that you set.
Please like and subscribe, and click on the notification bell so you can be alerted to new videos.
If you would like us to create videos on a particular topic, technology or product, please leave a comment below.
When browsing to your Home Assistant instance, this is usually - homeassistant.local:8123. If this does not work, try homeassistant:8123. If all else fails, check your router's device listing for the IP address.
Chapter links:
0:00 - Intro
1:10 - Installing InfluxDB
2:28 - Create database
4:11 - Configuration changes
6:24 - Install Grafana
9:02 - Creating Dashboards
15:36 - Outro
The below is completely optional but this will help us to purchase kit for review, and to keep up with channel expenses (studio equipment, etc).
Amazon link (no cost to you but buying through the link helps my channel) - amzn.to/3fj2S8a
Ko-Fi - ko-fi.com/smarthomeaddict
Buymeacoffee - www.buymeacoffee.com/smarthom...
Patreon - / smarthomeaddict
Finally, please visit our website at smarthomeaddict.co.uk