Here is demonstrated by two examples how to utilize the Java223 automation add-on of openHAB, without the convenience/helper library, to dynamically utilize a class and to obtain and free an OSGi service.
How to Control Smart Switches for an Off-Grid System to get the Maximum Energy from a PV inverter?
September 8, 2026This article discusses theoretical ways to get the maximum energy from a PV inverter by dynamically turning loads on and off, and shows how to practically automate the process in openHAB. The herein presented program logic keeps smart switches relaying electricity as long as there is energy surplus, and also allows manual intervention.