#Can I report on Choose option usage

1 messages · Page 1 of 1 (latest)

uneven talon
#

I have some automations that have multiple options available in a "Choose" Action. I think that some of these options are no longer being used, but I've managed to confuse myself enough that I'm not really sure.

Is there a way to generate a report/listing/something that shows when the last time a certain option was activated? Or simply a listing of all the options showing their activation count/last activation?

I'd like to streamline my Options and reassess whether they're really being triggered or if I've managed to code myself in a circle/dead end. It would be nice to clean up code that's no longer being executed, but it's really hard to tell.

If this doesn't exist, do I go put in a feature request on GitHub?

tepid bone
uneven talon
#

Looks like it's on a per-automation basis, so I can increase it to 100 (or so) then look through to see if the option in question is called at all...

#

Seems like it would be a useful feature - much like HA itself sends telemetry home so they know which features/integrations/etc are being used, it would be really nice if we could see that in our own setups.

#

Still means manually picking through traces to see which option is selected... 🙁

tepid bone
#

yeah, but having it for a choose option is quite a bit more complicated. And this "looking for an unused option" is quite an unusual approach 😄

graceful knot
#

Perhaps you could add into each choice actions, to write something to the log....you would then have an audit trail that might be more easily reviewed.

molten bane
#

Or even easier add a persistent notification to the branches in question.

#

That way you don't have to proactively look at the logs

tepid bone
#

Yeah, by adding actions to the chooser you could indeed also do it in many many other ways. Depending on what you want to see and how easy you want it to be 😄

uneven talon
#

I did end up creating a notification on the one option that's in question.

Still, I think it would be interesting to be able to see some stats on how often different automations are being triggered and what execution paths are being taken.

#

Would be a good way to look at high usage paths and make sure everything there is exactly as desired and nothing is "off"