View single post by slychiu | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Posted: Friday Apr 11th, 2025 04:35 am |
|
||||||||||||
slychiu![]()
![]() |
InfluxDb installation and Configuration In Home Assistant, go to Settings > AddOns, press AddOn Store at the bottom right. Search for InfluxDb and select it . Press Install. turn on Start on Boot, Watchdog, and Show in Sidebar, There is no configuration required, so just press the START button. You will see InfluxDB in the left sidebar. On the left of the InfuxDb screen, press the Crown icon for Admin In top left corner press Create Database. Enter a database name eg homessistant and press the green Tick on the right. Add a retention policy. This is the duration that the data will be stored in the InfluxDb database. Note that the longer the duration, the more flash memory will be used in Raspberry Pi. ![]() ![]() Next Go to the users Tab on the top menu and create a user and password. ![]() Give the user permission to read and write to the database. Update the configuration.yaml file using File Editor. Add the following; influxdb: host: a0d7b954-influxdb port: 8086 database: homeassistant username: <your username> password: <tour password> max_retries: 3 default_measurement: state Restart Home Assistant. After restart, go back to InfluxDb in the sidebar. Go to Explore (the graph icon), Go to Query1, select your hoe assistant database called "homeassistant" To the right you should see measurement units like %, 0C etc ![]() for %, open the entity ID list, you should see humidity in the list ![]() ![]() You do not have to select the humidity For 0C open the entity ID list- you should see temperature in the list. These are the entities that are passed on to Grafana. ![]() Last edited on Friday Apr 11th, 2025 05:10 am by slychiu |
||||||||||||
|