OH 4.3.x - update datetime item (30 seconds forward)

This script is erroring out:

An error occurred during the script execution: Could not invoke method: org.openhab.core.model.script.actions.BusEvent.sendCommand(org.openhab.core.items.Item,org.openhab.core.types.Command) on instance: null in default

.items

DateTime	Echo_JaysSUV_nextReminder  	  "Next Reminder [%1$tF %1$tR]"							 { channel="amazonechocontrol:echo:account1:echojaysuv:nextReminder" [profile="basic-profiles:state-filter", conditions="!= UNDEF"] }

.rules

val thirtySecondsAhead = now.plusSeconds(30)
Echo_JaysSUV_nextReminder.sendCommand(thirtySecondsAhead)

Any ideas?

Best, Jay

Solution:

Echo_JaysSUV_nextReminder.sendCommand(new DateTimeType(thirtySecondsAhead))

You should use postUpdate instead

val thirtySecondsAhead = now.plusSeconds(30)
Echo_JaysSUV_nextReminder.postUpdate(thirtySecondsAhead.toString)

should work too.