Date Timestamp on automation

Hi All,

In the latest Hass there has been a fix to Ring. Previous to this there used to be an entity called ‘binary_sensor.ring_front_door_ding’ which would go from ‘off’ to ‘on’ for 3 minutes.

Now it has changed to a datetime stamp of the last ding.

How would you go about constructing an automation when the door bell rings and timestamp updates. Is it some kind of template comparison to the current datetime to work out if its changed? Or can someone suggest a better approach.

Does anyone know what the best way is

How about:

trigger:
  platform: state
  entity_id: sensor.whateveritscallednow

This will trigger whenever the sensor changes state (including any of its attributes, if it has any.)