apop880 / config-check Goto Github PK
View Code? Open in Web Editor NEWCheck your Home Assistant configuration from the frontend, or automatically when the configuration is updated, and optionally restart HASS automatically!
Check your Home Assistant configuration from the frontend, or automatically when the configuration is updated, and optionally restart HASS automatically!
After upgrading to HA OS Core 2023.4.3, I have noticed that running script.check_config
does nothing. The state of sensor.config_result
remains as -
; it does not change at all.
Hi - I can't seem to get it to install - see below my AppDaemon logs. Can you help please? Thanks!
2020-04-27 22:19:03.521167 WARNING AppDaemon: Unable to find module check_config - initialize() skipped
2020-04-27 22:19:27.829453 INFO AppDaemon: Removing module /config/appdaemon/apps/check_config/checkconfig.py
2020-04-27 22:19:27.831522 INFO AppDaemon: Terminating check_config
2020-04-27 22:19:27.836764 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/check_config/check_config.py - ignoring
2020-04-27 22:19:28.850787 INFO AppDaemon: Reloading Module: /config/appdaemon/apps/check_config/check_config.py
2020-04-27 22:19:28.851846 WARNING AppDaemon: No app description found for: check_config - ignoring
2020-04-27 22:19:30.874808 INFO AppDaemon: Reloading Module: /config/appdaemon/apps/check_config/check_config.py
2020-04-27 22:19:30.876048 WARNING AppDaemon: No app description found for: check_config - ignoring
2020-04-27 22:20:27.545973 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/config-check/checkconfig.py
2020-04-27 22:20:27.557361 INFO AppDaemon: Initializing app check_config using class CheckConfig from module checkconfig
2020-04-27 22:20:27.559676 WARNING check_config: ------------------------------------------------------------
2020-04-27 22:20:27.560612 WARNING check_config: Unexpected error initializing app: check_config:
2020-04-27 22:20:27.561281 WARNING check_config: ------------------------------------------------------------
2020-04-27 22:20:27.562587 WARNING check_config: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 820, in check_app_updates
await self.init_object(app)
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 279, in init_object
"object": app_class(
File "/usr/lib/python3.8/site-packages/appdaemon/plugins/hass/hassapi.py", line 46, in __init__
adbase.ADBase.__init__(self, ad, name, logging, args, config, app_config, global_vars)
File "/usr/lib/python3.8/site-packages/appdaemon/adbase.py", line 75, in __init__
self.dashboard_dir = self.AD.http.dashboard_dir
AttributeError: 'NoneType' object has no attribute 'dashboard_dir'
2020-04-27 22:20:27.563314 WARNING check_config: ------------------------------------------------------------
2020-04-27 22:20:27.564911 WARNING AppDaemon: Unable to find module check_config - initialize() skipped
2020-04-27 22:20:43.806844 INFO AppDaemon: Removing module /config/appdaemon/apps/check_config/check_config.py
I have this on my scripts.yaml
check_config:
sequence:
and I saw the notification, but the sensor it's no visible....
I walked through you setup and configured it for auto watch without auto reboot. I see the sensor and the script but when I run it nothing happens. No results are shown in the sensor. Any ideas?
hello, I have some questions kindly, the file for the telegram notification I have modified it with my notification script and placed it in the / appdaemon / check_config folder but it does not see it, the path is right?
and then I wanted to ask you for the direct link to download the icons for the lovelace advance card
thank you so much
I am getting this error when I try to add the sensor.config_result item.
The folder_watcher
integration currently does not work if a user's configuration is split among multiple files. The check will only be initiated if configuration.yaml
is modified. In addition, a check will not be initiated if only secrets.yaml
is changed.
Don't start a new check if sensor is in a checking
state.
Is this still under development?
In the readme there is a line "Note: Folder Watcher support currently does not support split configuration files" and something about this being planned for a future release. It's been 6 months, and no new release just yet. My config is split into multiple files, so i can't use this plugin even though it look awesome!
Hi, I am not sure what's wrong but the sensor.config_result is not getting created. What am I doing wrong?
Config Check worked fine and was easy to use but all of a sudden it doesn't work anymore because one of the entities seems to have gone. I believe you didn't change anything and so didn't I. It says: 'Entity not available: sensor.config_result'. Does this sound familiar and do you have any clue? Or is this new to you too?
Can I fix it by just adding a new entity? But then it's still very strange that it disappeared. I already try "Reinstall" That didn't help. The entity should be self-installing or not?
Hi,
I noticed a warning message in logs.
Here it is:
2021-04-21 16:17:55.671551 WARNING check_config: ------------------------------------------------------------
2021-04-21 16:31:45.449698 WARNING check_config: ------------------------------------------------------------
2021-04-21 16:31:45.449981 WARNING check_config: Unexpected error in worker for App check_config:
2021-04-21 16:31:45.450217 WARNING check_config: Worker Ags: {'id': '2a57da2e8ebf48ca97940e286b087b40', 'name': 'check_config', 'objectid': '31d9911d2b1e4694a250be2c53633f4b', 'type': 'state', 'function': <bound method CheckConfig.check_config of <checkconfig.CheckConfig object at 0x7fbcf64d1670>>, 'attribute': 'last_triggered', 'entity': 'script.check_config', 'new_state': '2021-04-21T14:31:33.201829+00:00', 'old_state': None, 'pin_app': True, 'pin_thread': 0, 'kwargs': {'attribute': 'last_triggered', '__thread_id': 'thread-0'}}
2021-04-21 16:31:45.450393 WARNING check_config: ------------------------------------------------------------
2021-04-21 16:31:45.450711 WARNING check_config: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 903, in worker
funcref(
File "/config/appdaemon/apps/config-check/checkconfig.py", line 62, in check_config
self.call_service("homeassistant/restart")
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 197, in inner_sync_wrapper
f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 308, in run_coroutine_threadsafe
result = future.result(self.AD.internal_function_timeout)
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 441, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError
2021-04-21 16:31:45.450910 WARNING check_config: ------------------------------------------------------------
Not sure what's the issue here but from the Wiki it appears there was support for HACS but now i can't seem to find this component there.
Am i looking for the wrong component name?
or this component has been outdated and lost support of HACS?
I have configured apps.yaml
and scripts.yaml as per the instructions.
I have created an entity card on my dashboard and can execute "check configuration" without issue (log shows the script is running, no errors returned).
I cannot however, see the config_result sensor, it shows as unavailable. Any ideas?
Running HomeAssistant 0.107.5
I just figured I would try updating to the Appdaemon V4.0 add-on and I got this error when starting.
2020-01-14 17:54:45.582743 WARNING check_config: ------------------------------------------------------------
2020-01-14 17:54:45.583961 WARNING check_config: Unexpected error running initialize() for check_config
2020-01-14 17:54:45.585291 WARNING check_config: ------------------------------------------------------------
2020-01-14 17:54:45.603227 WARNING check_config: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 145, in initialize_app
await utils.run_in_executor(self, init)
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 276, in run_in_executor
response = future.result()
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/appdaemon/apps/check-config/checkconfig.py", line 25, in initialize
self.set_state("sensor.config_result", state="-", attributes = {"friendly_name": "Config Result", "detail": None})
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 191, in inner_sync_wrapper
f = run_coroutine_threadsafe(self, coro(self, *args, **kwargs))
File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 285, in run_coroutine_threadsafe
result = future.result(self.AD.internal_function_timeout)
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/lib/python3.8/site-packages/appdaemon/adapi.py", line 1360, in set_state
return await self.AD.state.set_state(self.name, namespace, entity_id, **kwargs)
File "/usr/lib/python3.8/site-packages/appdaemon/state.py", line 431, in set_state
result = await plugin.set_plugin_state(namespace, entity_id, **kwargs)
File "/usr/lib/python3.8/site-packages/appdaemon/plugins/hass/hassplugin.py", line 369, in set_plugin_state
api_url = "{}/api/states/{}".format(config["ha_url"], entity_id)
KeyError: 'ha_url'
Attempting to add this repo to latest HACS as a custom integration results in the following message: "Repostitory structure for 0.3.1 is not compliant"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.