Added a last triggered field for sensors to keep track of the date time when the state changes