Position estimator for shutters

I updated the gist to work with OH3.

To use it, one must first follow precisely the instructions inIvan’s Helper Libraries - OH3, Python, JavaScript to install the JS helper libraries, particularly to use the files according the the right pull request (by downloading this link for example https://github.com/CrazyIvan359/openhab-helper-libraries/archive/5a452ef2367176654fa408c18917947c1502697b.zip )

The VASRollerShutter.js file should be installed in automation/jsr223/javascript/personal and the js-timeout-polyfill.js in automation/lib/javascript/personal.

Then in openhab.log you should see (a restart might be needed):

2021-04-30 07:48:55.457 [INFO ] [ab.core.service.AbstractWatchService] - Loading script '/etc/openhab/automation/jsr223/javascript/personal/VASRollerShutter.js'                                                                                            │
2021-04-30 07:48:55.589 [DEBUG] [ipt.internal.ScriptEngineManagerImpl] - Added ScriptEngine for language 'js' with identifier: file:/etc/openhab/automation/jsr223/javascript/personal/VASRollerShutter.js                                                  │
2021-04-30 07:48:55.997 [INFO ] [javascript.NOCONFIG.vasrollershutter] - VASRollershutter (re)loaded!                                                                                                                                                       │
2021-04-30 07:48:56.426 [DEBUG] [sr223.javascript.NOCONFIG.core.rules] - Added rule [VASRollerShutter] 

In order to test you can add the items as defined, without the rfxcom channel, and create roller shutter cells in webui for the ...VAL items. If you use the commands, you should see in the `events.log` the positions updated and the actual commands sent back to the ...CMD items.