Rule question

No, it’s not.

This would be the change, as @rossko57, mentioned is needed:

sendTelegram("bot1", "The Wind Speed Has Changed From " + Wind_Speed_Mph.previousState.state.toString + " To " + Wind_Speed_Mph.state.toString + " Mph")

You didn’t add “state” between “previous” and “toString”.

I really don’t know how else to put this.
Wind_Speed_Mph.previousState.toString
Temperature.previousState.toString
Humidity.previousState.toString
are all methods on your Items and absolutely rely on persistence.
(as @H102 points out, you’d not be getting the property you want anyway)

The part you don’t seem to believe is
previousState.toString
is completely unrelated to the above, and does not use persistence at all.
There is no Item in that construction, because it is a not a method of an Item, because it is derived from the event that triggers the rule.
It is an implicit variable within that rule only.
It exists only if the yule is triggered by change.
It automatically gives the previous state of whatever Item triggered the rule.
You do not specify the Item name anywhere near it.

Just put
previousState.toString
in your three examples and stop adding the Item name.

1 Like

Thank you rossko57

That clears that up and its now working as i wanted

Thanks Again

1 Like