Moon phase change telegram automation

Hello there,

i wanted to have the phase of the moon sent to a telegram channel.

i got the triggers e.g.:

platform: state
entity_id:
  - sensor.moon_phase
to: new_moon

and i got the message:

service: notify.telegramsmarthome
data:
  message: |
    "Mondphase: {{ trigger.to_state.state }}"

and it doesnt work. Since over a week, 2 changes of phase, nothing.

when i change the trigger to

platform: state
entity_id:
  - binary_sensor.buerofenster_opening
to: "on"

and open said window. it works.
why?

Hello there,

this is my Moon phase automation:

- id: '1671287058361'
  alias: Mondphase
  description: ''
  trigger:
  - platform: state
    entity_id:
    - sensor.moon_phase
  condition: []
  action:
  - service: notify.telegramsmarthome
    data:
      message: Mondphase ist jetzt {{ trigger.to_state.state }}
  mode: single

When i set the moon phase it doesnt send a thing.

when i change trigger.to_state.state to trigger.attributes.friendly_name it sends the messageā€¦

Does nobody really have an idea here?