Hi!
I upgraded to OH 5.2 yesterday and now I get an error in an old rule that uses the Astro binding’s getEventTime action:
script execution of rule with UID ‘…’ failed: ‘getEventTime’ is not a member of ‘org.openhab.core.thing.binding.ThingActions’; line …
This is the offending code:
val sunActions = getActions("astro","astro:sun:home")
if(sunActions.getEventTime("SUN_SET",ZonedDateTime.now,"END").isBefore(now) || sunActions.getEventTime("SUN_RISE",ZonedDateTime.now,"END").isAfter(now)) {
Astro binding as such seems to be working fine. I don’t know what I need to change.
Any help is appreciated, thank you very much!