Only trigger when attribute is not equal to old value

Hi…
Kinda hard to explain but bear with me…
The automation I want to create is based on flightradar24 info.
I’m using a REST sensor witch gets its data from a selfmade PHP in json format.
I’ve made a sensor with a couple of attributes:

I want to create a automation based on attribute “icao24” (airplane id).
When icao24 gets a new value I want to trigger an notify to my phone, but as my REST sensor is updating every 10 i’ll get a notify … kinda irritating… :slight_smile:
So what I need help with is to make a automation when icao24 is updated, but I dont want to get notified if icao24 is the same as before…

Am kinda new at automations so please bear with me . :smiley:

You can trigger on attribute changes:

trigger:
  platform: state
  entity_id: sensor.aircraft_info_nearest_plane
  attribute: icao24
action:
  …

Using the UI:
image

2 Likes

AAhhh. So simple… Thanks!!