Thanks! I finally got it to work using your script.
It is important to note though that you must have at least one item defined. If you do not have any items defined (e.g. you’re using a maiden openHAB install), then the automationManager
will quickly no longer be None
and the script continues. However your own scripts will then still fail at the import openhab
line with a
TypeError: can't set attributes of built-in/extension type 'NoneType' in <script> at line number
error.
Your script really should be part of the openhab2-jython and lucid repositories. To be sure I would prefix it with another 0 though so that it will always be loaded first, even if someone comes up with a 000_a<something>.py
script.
(Tested on openHAB 2.4.0 Snapshot Build #1362)