kloggy / HA-Irrigation-Version2

230 stars 55 forks source link

Feature Request - Add unique id to automation in order to debug #53

Closed dapuzz closed 3 years ago

dapuzz commented 3 years ago

Hello Klogg, as you know HA released the possibility to debug automation but as of now this is allowed only for those that have an unique id. Can I prepare a pull request adding the unique ID for each automtion in the garden package? What do you think? https://www.home-assistant.io/blog/2021/04/07/release-20214/#automation-debugging Thank you

kloggy commented 3 years ago

Seems like a good idea.

I haven't added IDs to a many of my automations, only a couple I wanted to debug. I don't want to get too protective of my code but for the ones I have added I simply used the automation name and unless there is a convincing reason to do otherwise I would rather keep to that system for this package.

e.g.

automation:
  #=============================
  #=== Master Control switch ON
  #=============================
  - alias: Irrigation Master Control Switch ON
    id: irrigation_master_control_switch_on

So, yes by all means prepare a pull request or you can wait for me to get round to doing it ;-)

kloggy commented 3 years ago

Done in July 2021 Update