Is it possible to change the state of a entity with a trigger automation?

hi I try to set a automation with a trigger to change a state of a entity and the trigger is on change of my temperature sensor. Please Help :confused:

https://www.home-assistant.io/integrations/template/#trigger-based-template-binary-sensors-buttons-numbers-selects-and-sensors

could you say to me how I change a state of an entity in yaml?

If it is a sensor, then you can’t change the state.
If it something else than you call the service for that feature.

service: loxone.event_websocket_command
data:
  uuid: 1994ba9d-01bd-e32e-ffff40952868b1e8
  value: |
    {{states('sensor.lumi_lumi_weather_a0453a07_temperature') | float}}

This worked now, thanks, service call was the topic I needed