Flash light red when motion detected

Hi Simon, welcome to the forum!

2 things chatGPT didn’t tell you:

  • if you post yaml code, it’s a good idea to format it properly (</> sign in the toolbar)
  • you can use repeat for a block together with a number on how many times it should be repeated

Be careful not to go wild with chatGPT, it’s not really liked here.
From How to help us help you - or How to ask a good questionDon’t use ChatGPT but you’re a free person…