[Feature Request] Custom Functions in drivers

Programming drivers...

Please give us the possibility to create functions (aka commands, which return a value), of course than also usable in Rule Machine.

E.g.: