I know I cant be the first to ask… but I could find no mention with a search!
Can this be done?
When I’m toying around I typically have three views open on my machine (I have three monitors) Center is the IDE where Im futzing with code… the second is the primary UI and the third is generally a web search… it would be relly helpful If I could put check config button on the Main menu… I know I could just drop to the cmd line and run a check but command lines give me hives (windows developer here… you know the type…lol)!
There is already a check config service so you should be able to create a switch/button to call that service. The problem is that the results won’t be conveniently displayed as they are when using the regular check config button. The results using that service are only printed to the home-assistant.log and in the info page log listing.
You’re not the first person I’ve seen request this. I am working on something that will do exactly what you’re looking for, using AppDaemon. It should be released in the next couple days.
Thanks for letting me know. I haven’t had a chance to migrate to AppDaemon 4 yet, but I’ll take a look at this as soon as I do. Should be in the next week or so.
Install the config_check custom component in HACS. You could stop there as the config_check.run service sends the result to a persistent notification.
You could also install custom:home-feed-card to automatically display all persistent notifications on the page.
However, I also have browser_mod installed. One of its features allows you to display “toast” style popup messages in the lower left corner of the page. So, I use that to display the result.
script:
config_check:
sequence:
- service: script.toast
data:
message: ✔️ config is running!
duration: 5000
# Run the config_check
- service: config_check.run
# Wait for the notification to appear
- wait_template: "{{ states('persistent_notification.1337') is string }}"
timeout: 00:03:00
# Display the message as a toast notification
- service: script.toast
data_template:
message: "{{ state_attr('persistent_notification.1337','message') }}"
duration: 0