Run the CLI config_check from a service call.
When you run the service config_check.run
it will generate a persistent_notification with the result.
To get started put all the files from /custom_components/config_check/
here:
<config directory>/custom_components/config_check/
config_check:
config_check.run
You can add service data to the service call to make it run a service if it completes successfully.
examples:
{
"service": "script.chek_ok"
}
{
"service": "switch.turn_on",
"service_data": {
"entity_id": "switch.my_switch"
}
}