- Hardware: RPi 3b
- OS: openhabian
- openHAB version:3.3
Issue of the topic: I begin to define rules with blocky . I have multiple cases where I have a push button toggling some light
So I created a function to check the state and send command ON or OFF depending on it.
Is there a an easy way to just reuse a function in another rule?
The only way I found is to copy the entire rule containing the function and then edit it.
In that case, the function is define multiple times and I cannot edit the code globally.
I saw the possibility to define a block library but from scratch… but no way to save a bloclky function in a library
Thanks for any help.