Newbie asked ChatGPT for an automatization. Tell me why it doesn't work. One button Toggle on/off and dimming

Thanks for your feedback. The reason it's set up with "choose" and "repeat" is because I could only get my 'long_push' to only dim 10% no matter how long I held the button pressed. I got some information and inspiration from this video (https://www.youtube.com/watch?v=L-bcabdaMxE&t=628s)

I will look at those links you posted to see if there's anyway to make the dimming smoother instead of 10% steps. I mean, it works perfectly fine. but it want it to be perfect.[quote="123, post:15, topic:670841, full:true"]

Regarding this:

          - repeat:
                - parallel:
                    - device_id: ""
                      domain: ""
                      entity_id: ""
                    - device_id: ""
                      domain: ""
                      entity_id: ""
                    - device_id: ""
                      domain: ""
                      entity_id: ""
                    - delay:
                        hours: 0
                        minutes: 0
                        seconds: 0
                        milliseconds: 500
              until:
                - condition: trigger
                  id:
                    - dim-up-release

Did you intend to include empty Device Actions or did you overlook to complete them for the example? Because the Device Actions in the dim-up-longpress loop aren't empty whereas they are in the loop for dim-down-doublepress.

For that matter, what's the purpose of executing that repeat-until in parallel mode when the entire automation is set to restart mode?

Why use two separate choose statements when one will suffice?

For future reference, the examples rely on Device Triggers which have shortcomings in terms of portability and maintenance (see this community guide).

Have you considered browsing through Blueprints Exchange for an existing blueprint that supports your Shelly button?

https://community.home-assistant.io/search?q=Shelly%20button%20%23blueprints-exchange
[/quote]