Binary sensor not kicking off automation?

New HA user so im hoping im just missing something here.

I have a binary sensor in an automation that used to work, then the device itself went bad so i replaced it which changed the entity ID so i updated the ID in the automation and now its not actually doing what its supposed to do. I have a Unifi G4 Doorbell and the automation is supposed to announce over a google speaker group that someone is at the door when the sensor is tripped. Since replacing the original device and updating the ID its not doing the announcement part. If i take that portion out of the automation and put it in the service section of developer tools it announces as its supposed to so i know that piece is correct but im not sure what to do here.

1

  - entity_id: binary_sensor.doorbell_front_doorbell_2
    from: 
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: group.media_players
      message: Someone is at the front door.
    service: tts.google_translate_say

Try removing that line

This is what i have now - still no go

  alias: Unifi G4 Doorbell - Google Home Announcement
  description: ''
  trigger:
  - entity_id: binary_sensor.doorbell_front_doorbell_2
    platform: state
    to: 'on'
  condition: []
  action:
  - data:
      entity_id: group.media_players
      message: Someone is at the front door.
    service: tts.google_translate_say

Hi,
I’m not sure if this has been solved but I was having the same issue and the developer pointed me in the right direction. Since version 0.8.9 there is a different way to trigger the action

Just change the trigger to this (provided you have the latest release of the Unifi Protect Integration)

trigger:
  - platform: event
    event_type: unifiprotect_doorbell
    event_data: {}
condition: []

Cheers