Or at least restart the Pi and figure out what happened using the historic data in Grafana.I have a few Raspberry Pi computers all doing different things around my home. This results in a quick push message like this on my phone, and will hopefully give me enough time to fix the issue. has been overloaded for more than 5 minutes Unique_id: "sensor.rpi_monitor_homeserver.uptime" This template can just be added as text to your main configuration.yaml file. Fortunately it is easy to extract this to new entities by using a template. Most of the data is “hidden” in the attributes of the main sensor as it is all send in one MQTT topic. I was also looking for some alerts and graphs in Grafana so I kept going. You could stop at this point if you are just looking for a way to check on your Pi from time to time. Under that it will place a sensor/yourPiName topic with the status and more info about your monitor. I also defined the base topic that the daemon is going to use for the updates. If you are running this on another one you need to provide the IP address/hostname of the smart home server with the MQTT server here. The Pi I am checking for is the smart home server itself, so the hostname for the MQTT server is set to localhost. The configuration of course depends on your needs but I only changed a couple of things. You basically clone the repo and copy some files. The installation is quite easy if you follow the official instructions. His daemon called RPi Reporter MQTT2HA Daemon runs on the Pi and regularly collects data that is then send to a MQTT message. To do that in a simple and convenient way I am using the awesome work of ironsheep over on GitHub. The first step to working with data about the Pis is to actually collect it. The system will be built from different components: a daemon (long living process) that runs on each Pi to collect the data, my MQTT server that this data is send to, Home Assistant to save the data and send alarms and Grafana to show some nice stats. Now I am looking to set up a similar system with Home Assistant and make it even better by being able to not just monitor the server itself but also all other Pis I have running. I have run into such a problem back when I was still using OpenHab and have set up a monitoring system back then. It does not change prices for you and allows me to pay for the servers □ If you are interested in buying a Raspberry Pi for your smart home consider doing it via my affiliate links above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |