Hab-rs - A Rust rule engine for openHAB

Since I never became really comfortable with any integrated way to write rules for openHAB and my favorite programming language is Rust I thought of a way to write my rules in it.

After I could not find an existing solution and taking inspiration from the great HABApp I developed hab-rs.

hab-rs is an external rule engine for openHAB where you can write rules in Rust and benefit from its vast ecosystem, performance and (type-)safety.

I use it for some more complex rules in my own openHAB instance that I previously wrote in the integrated rules DSL and it works great so far!

After some polishing and adding of more documentation I now think it is ready for public use and feedback.

The repository is hosted on Github and the crate on crates.io. You can find sample code there.

I hope anyone finds it useful and if you use it please consider leaving feedback here or in the repository as well as notify me of any bugs you might find.

4 Likes

:exploding_head:
you just blew my mind

1 Like

This seems very cool and very overkill at the same time.

1 Like

Awesomeness! Did you look into integrating it into the JVM e.g. graalvm or something similar?

1 Like

Thanks!
No, I did not. My Java days are long gone. :sweat_smile:

New release v0.3.3!
Now with easier Thing and Channel triggering.