[SOLVED] Rule question with multiple "whens" + "last seen option"

The condition will be true when everything in the statement is true. If there are multiple items to check then all of them must be true. After evaluating the statement everything between the { } will happen if true, if false the rule ends or moves to the next statement.

I think there are several ways you can do this, here is one item I use for indicating the time last changed.

DateTime Garage_update "Last change [%1$tm/%1$td %1$tH:%1$tM]"

In the rule you may want to change the item to a val then compare the val with other items in the if statement e.g.

val time = Bjornphonelastseen.state as Number

This can be used if the item is a number like the DateTime item above.

Here is a nice tutorial about date and time conversion you may find interesting. https://community.openhab.org/t/datetime-conversion/54266?u=h102

To help with using all the statement condition such as &&, ||, != see the link I posted above and work some of their examples. That site was, and still is, a big help for me.:grinning: