Basic Scripting advice needed

Hi,

sry if this was already asked, but couldn’t find anything with search.
But i just need a basic guide how to create scripts.

I want to change from ioBroker and i already have a lot of scripts, like checking Battery state of Homematic devices and some taskstasks because of absense.

So what i need is a possibilty to create scripts and if possible a chance to use a scripting tool with syntax highlighing,…

Thx in advance.

In openHAB, those are called rules:

http://docs.openhab.org/configuration/rules-dsl.html

There is also an experimental rules engine which you could try:

http://docs.openhab.org/configuration/rules-ng.html

http://docs.openhab.org/configuration/editors.html#openhab-vscode

Edit: another option, if you have programming skills:

http://docs.openhab.org/configuration/jsr223.html