[SOLVED] Eq-3 max cube thing status error


I am not able to get max cube status. To reproduce problem I have prepared simple rule as below:

rule "test"
	Time cron "0 0/1 * * * ?"
	logInfo("thing status", getThingStatusInfo("max:thermostat:LEQ0430839:LEQ1135998").getStatus().toString())
	logInfo("thing status", getThingStatusInfo("max:thermostat:LEQ0430839").getStatus().toString())

And here is result od such rule execution:

2019-02-27 21:22:02.554 [INFO ] [.smarthome.model.script.thing status] - ONLINE
2019-02-27 21:22:02.567 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘test’: cannot invoke method public org.eclipse.smarthome.core.thing.ThingStatus org.eclipse.smarthome.core.thing.ThingStatusInfo.getStatus() on null

Is it a bug or works as designed? Should I get cube status in other way?

You need to use the correct thing name


Heh. What a stupid mistake :confused: Thanks Markus for extra quick response.