Design Pattern: Simple State Machine (e.g. Time Of Day)

DateTime Items can’t be used as DateTime vars. If referring to the Item state, you have to use

DT_Feed_Last.state

and there is no plusDays method for IDateTime Items either. Instead, you have to build a DateTime var which is the same as the Item state. see

1 Like