Im new to HABApp (and python). I think this looks like a good path to improve rule-implementation/structure over my current DSL-Openhab-rules!
The reason I started to check HABApp is that I would like to automate the control of my “LVI Yali” heat radiators which are currently accessible through a web interface.
I have played around using python + selenium and have managed to control the temp settings “manually” through selenium. Now I would like to automate/incorporate these functions in python calls from Openhab/HABApp. Whats unclear to me:
-
How do I install the selenium module so that its accessible from HABApp? (currently I run from a rPi, where HAPApp is installed through the inbuilt openhab-config-tool). This might change to a docker-installation in near future. I believe the functions should be installed for the “openhab” user (not “openhabian”)?
-
If i do my own help classes and put these files in the lib-folder, is there a way to make HABApp reload these functions other than restarting HABApp.service? My experience so far is that help classes are accessible only if defined inside the rule-file from where its called (or in the lib-folder with following restart of habapp.service)?
-
Any opinion if I am on the right path about implementing calls to python/selenium-scripts from inside HABApp to control the temp setting, or is there alternative more simple solution (ie separate implementation and accessible through MQTT for instance)?