Alexa tts state change

My alexa tts is working but i can’t get state change working correctly - where i have make a syntax error?

- id: poolpumpe_an_tts
  alias: poolpumpe_an_tts
  description: ''
  trigger:
  - platform: state
    entity_id: switch.pool
    from: 'off'
    to: 'on'
    #condition: []
  action:
  - data_template:
    entity_id: media_player.buro
    message: "Poolpumpe eingeschaltet"
    service: media_player.alexa_tts

Thank you for links or/and helping!!!

You can rule out most syntax errors by using the UI automation editor.

Check Developer Tools / State to ensure you have the correct switch and that you can see the state changing when you switch the switch.

Got i working, thanks!