I am in pain trying to recreate my OpenHAB 2.5 text config in the new 3.4.2 UI after an upgrade.
The problem is execBinding, that seems to not produce a switch when linking the Point with the Running channel, although I suspect it should. I do remember that 2.5 used only this channel.
I have checked that the scripts run with ‘sudo -u openhab’. They have no parameters, but I have tried filling the exec.whitelist with %2$s at its end and without, no difference. But I do not even really get to running the script …
I first remove everything related from Items and Things, and restart openhab. Then:
- add the script Thing, with default settings,
- select the location group in the Model tab, click on ‘create equipment from Thing’,
- select the Thing and its running channel, and leave everything on default.
The Equipment and the Point is now created, but the problem is that the Point does not have a switch, just a NULL title. The script therefore cannot run.
Strangely, in some trials it seems to work, but only if the channel links of the Point contain an ‘? (unknown) Invalid Link’ entry, with an execBinding reference that does not exist. For such an item everything works as expected, but if I remove this invalid Link, again the NULL appears instead of the switch. This only works for one Point, and I cannot control when does this happen, so this is less than satisfactory.
I have trialled a zillion combination of Point and Equipment classes, but nothing seems to work so far.
/var/log/openhab/openhab.log does not seem to contain anything related.
I have also noticed that when pressing “add link” on the Point and selecting the list of Things, the very first Thing seems to be empty, but selectable. This maybe points to some database corruption that may explain that mysterious unknown link, but how should I recover from this without nuking everything?