Light template(s) from HA guide and forums don't work

Hello rokfor2000,

Welcome to the forum. Let’s see if I can be of any assistance.

First, we would need to see what you tried that gave you the error.
Show us in the yaml format, and the </> button helps with formatting that.

More hints can be found in the Site FAQ
https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question.