I have been using this tool on multiple PIs and they work very well. However, two of my devices needed a re-image, and when I reinstalled this library, the sensors remain as “Unavailable”. I believe that the new install was a newer release, so not sure if that is part of the problem.
I have attempted to remove the devices from HA, in an effort to allow mqtt to rediscover them, which it does, but the sensor values do not change.
I can see the messages being received in the logs, and cannot find HA reporting any issue with them.
Since the update to 2021.3.0 I’m having issues with automations that have numeric state triggers that rely on these sensors as they are unavailable until up to 60 seconds after home assistant starts.
Is there a way to set the retained flag on sensor messages to prevent this from happening?
Error initializing 'GPIO Bridge 1 Memory Monitor Alert' trigger: In 'numeric_state' condition: state of sensor.gpio_bridge_1memoryuse is unavailable
Error initializing 'GPIO Bridge 2 Memory Monitor Alert' trigger: In 'numeric_state' condition: state of sensor.gpio_bridge_2memoryuse is unavailable
You could change the script to retain the values but I think a better option is to change your automation to a template trigger and check if it’s available
I had an old version of the Remote PRI system monitor, since I have updated to 1.2.1, there were some changes made to the naming convention. I had fixed some of it, but the one I am having trouble is stated in the error log.
Platform mqtt does not generate unique IDs. ID ws1_sensor_power_status already exists - ignoring binary_sensor.ws1_under_voltage
I think I found the duplicate, but am not sure which is the old name. Can someone tell by going into the mqtt explorer which of the 2 is the old name?
Having a problem with the auto start this option on the raspberry pi. Could you slowly walk me thru this and what we have to do? Got everything working, but this pi gets turned off and on a lot, so I want it to run automatically in the background on raspian.
“edit the path to your script path and settings.yaml. Also make sure you replace pi in “User=pi” with the account from which this script will be run. This is typically ‘pi’ on default raspbian system.”
Nevermind, I got it working. Might want to update the readme to just make sure the set up is pointing to the directories. I felt like we had to change something, but you had it all set up right my man! Gracias!
Thanks for this plugin. I have it working perfectly on a Pi4/8GB. That one is running full Raspbian with a desktop GUI. I have also installed this on a Pi3B+ with no desktop GUI. It is running the Mycroft voice assistant, using this install recipe:
The MQTT connection works just fine. When I try to make this a system service I get a rpi_bad_power module missing error when checking the service status. Can I just edit your python script to remove the module, or do you have a better solution?
This Pi3B+ system is running Python 3.7.3, and so is the fully functioning Pi4B/8GB
After reading the posts above, this shouldn’t be an issue; also since it works just fine on the other Pi. I can get the broker connection going through SSH, running:
python3 src/system_sensors.py src/settings.yaml
but then it disconnects when I close the session. I tried tmux, but I got rpi_bad_power module errors with that command. I then removed the whitespace in the .py file as you said, and that error doesn’t happen with tmux. So, right now I have a way of running the service even after closing the ssh session. Removing the whitespace didn’t fix the error when running it as a system service.
Will anyone of these sensors tell me my rpi z W had go offline? I noticed my rpi z w (headless setup) lost connection. I was not able to putty in. I want to create an alert if it goes offline.
First of all I really like this script. I use it to monitor my second RPI who is running boinc.
If it is possible I would like to have more settings e.g. switch of the network download and upload speed logging or the host info´s. I already tried to comment the sections out but then the the whole script didn´t send new data.
I like this script and i’m trying to get it dockerized and working with debian nas instead of rpi.
i did few changes, if everything will work good i will share it.
But i’m having a issue… it seems that every 5 second the script looses the connection with mqtt broker and i can see:
Connected to broker
Connected to broker
Connected to broker
Connected to broker
a new line every 5 seconds
but the worst is that the entities in ha keep on flashing from values to ‘unanvailable’