APCUPSD to MQTT
In a state where the power often blinks, we are very dependent on reliable UPS devices to keep our server and automation systems online. Our office automation is based on Home Assistant, specifically HASS.IO, an open-source home automation platform running on Python. We currently have this running on a Raspberry Pi3. One of our UPS devices is connected by USB, and monitored using an excellent add-on made by Kory Prince. Unfortunately, this add-on does currently not support multiple UPS devices, nor ethernet connections.
Our second UPS is keeping our server online, to be able to monitor voltages with Home Assistant, we had to find a way to find a way to send the data. Since we use MQTT for many of our sensors, did would be a reasonable choice. An old python code was available here, but used depreciated libaries. After updating the code, and adding the sensors to our configuration in HASS.IO, we now have an excellent way to monitor the UPS. Pictures below show Home Assistant code, front-end and MQTT messages. The Python code can be found here.
MODBUS over WIFI from rPi to Arduino
How to set up the Raspberry Pi and Arduino to communicate to each other using Modbus over WiFi.
X-Y Plot / Curve in Siemens TIA
We made a short tutorial video to help setting up a X-Y Plot in Siemens Totally Integrated Automation V13. This will allow you to plot X-Y coordinates of dynamically changing tags.