Integration of Shelly ProEM50 into Homeassistant - YAML-scirpt does not work

Folk - thanks very much for your help and support - the hint from Bieniu made the trick! :v:
I had sto add the complete script into the configuration file and now everything is showing up as expected!
So again many thanks for yoru extended patience with me as rookie in this subject! (… and until the next problem… :upside_down_face: )