Modulo funtion to trigger automation for a EMS with a SMA inverter

hallo i am new here in HA and i am not used to yaml , templates,…

i have a SMA inverter , and i want to trigger a automation when there is a change in power of 50 watt from my inverter. i know i have to use a template or numeric state.

the sensor id is : sensor.stp8_0_3av_40_804_pv_power

how do i write the trigger in yaml?

Hello karl6811
Welcome to the Home Assistant Forums

What have you tried IE…How to help us help you - or How to ask a good question