Coder Social home page Coder Social logo

apop880 / config-check Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 108 KB

Check your Home Assistant configuration from the frontend, or automatically when the configuration is updated, and optionally restart HASS automatically!

Python 100.00%
appdaemon-apps hacs

config-check's People

Contributors

apop880 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

config-check's Issues

AppDaemon log error

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

where is sensor.config_result

I have this on my scripts.yaml

check_config:
sequence:

  • service: config_check.run
    data: {}
    alias: Check Configuration
    mode: single

and I saw the notification, but the sensor it's no visible....

Sensor not updating

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?

confnotify where?

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

Folder Watcher for Split Configs

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.

No active development?

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!

Entity not available: sensor.config_result

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?

Warning in Logs

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: ------------------------------------------------------------

can't get it to work

in lovelace I get the message: entity not available: script.check_config. Forgive me my lack of understanding, but how do i do the following as per the repository: "You will need to create an entity called script.check_config , but this script can be blank and won’t actually perform any steps?

Screenshot 2019-07-31 at 11 56 48

Help needed with HACS

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?

Entity "config_result" not available.

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

Not working in Appdaemon 4.X

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'

Repository structure is non compliant

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"

AppDaemon log issue

Hi,

I am trying to setup AppDaemon (as HA addon) with ControllerX so I could setup my Ikea Tradfri E1810 remote but failing and not sure why.
Already have Zigbee2MQTT setup and paired devices.

This would be my first app.

Appdaemon log:

image

My apps.yaml:

image

Thanks in advance!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.