The name 'getActions' cannot be resolved to an item or type

Hi,

I have the following rule, related to my lgwebos binding:

rule "testrule"
when
	Item PioneerVSX832_Zone1_Power received command ON
then    
	val actions = getActions("lgwebos","--thing-id--")
	if(null === actions) {
		logInfo("actions", "Actions not found, check thing ID")
	}
end

When this rule is run, i’m getting this error message:
[ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule ‘testrule’: The name ‘getActions’ cannot be resolved to an item or type; line 5, column 16, length 76

I can’t figure out what i’m doing wrong. Looking at the lgwebos docs, this should just work fine. I tried putting that line outside the rule, but the error message is the same.

I’m on 2.3.0, currently just running in windows.

Can someone help me?
Tnx

Actions are not in the 2.3 or 2.4 versions of LG webOS docs.

I think getActions is available in OH 2.4 onwards, but of course it’ll only get something if the binding offers it.

These are fairly new features.

1 Like

True. Actions for OH2 bindings became available in 2.4 and were extended later.