rule "Timer expired for a door"
when
Member of gDoorsTimer received command OFF
then
message = message + triggeringItem.name.split("Timer").get(0)+"LastChange"
logInfo("TEST", message)
end
As result i get the exate name of item that i need
2019-12-05 17:09:58.944 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Timer expired for a door': 'state' is not a member of 'java.lang.String'; line 63, column 24, length 62
Which Item are you trying to get the state of? The Item that triggered the rule?
triggeringItem.state
You’ve assembled some name from the triggeringItem.name, so maybe you are doing something like explained in the associated Items DP. If so, then take that string and do this…
NOTE: You don’t really need a Rule anymore to track the last changed for an Item, assuming you are using OH 2.x bindings. See Design Pattern: Time of Last Update
Are you certain that DoorEntranceLastChange is in gDoorsSensors? If not the findFirst will return null. Show the log statement that prints that line.