openhab / openhab-core

Core framework of openHAB
https://www.openhab.org/
Eclipse Public License 2.0
929 stars 428 forks source link

sharedCache broken for rules DSL #4447

Open mstormi opened 1 week ago

mstormi commented 1 week ago

The shared cache is no longer available in rules DSL?

The test rule mentioned here results in

2024-11-12 11:04:00.271 [ERROR] [ore.automation.module.script.internal.handler.ScriptActionHandler] - Script execution of rule with UID 'x-1' failed: The name 'sharedCache' cannot be resolved to an item or type; line 5, column 27, length 11 in x

There's hints on the forum it worked in 4.1 and broke somewhere between 4.1 and 4.2.

Related: #3187

openhab-bot commented 1 week ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/rule-dsl-the-name-sharedcache-cannot-be-resolved-to-an-item-or-type/157703/12

openhab-bot commented 1 week ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/61