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?