Just a FTR. Please review below syntax, comment, criticize on improving readability.
You need to trade “a little readability” compared to ESH rules DSL but you get full IDE support, first class Java integration, ESH/OH community no longer has to maintain/improve/promote a rules VM, and robustness+goodies of Kotlin and of course tones of examples/tutors/support from Android and Kotlin community.
https://github.com/diyhomeauto/smarthome/blob/master/Kotlin-ESH-openHAB-draft.txt
FYI this is working! Need to polish certain things and of course adapt as per community feedback.
Since this a generic thread, I would prefer main Kotlin discussion be maintained in below thread, just to spare the Kotlin noise from those who ain’t interested here