Thanks with running with this guys, I appreciate the help.
Just some things i noticed.
When I got home I noticed the access log full of the following. I enabled the dashboard last night
2018-03-26 20:37:01.473769 INFO HADashboard: Dashboard disconnected
2018-03-26 20:47:02.739627 INFO HADashboard: New dashboard connected: Kitchen Dashboard
There is still nothing in my err.log ( I think this is a little strange). My info log cotains pages of the suspect thread starvation message.
The Hassio widget for AD, I did notice this inthe log display.
File "/usr/lib/python3.6/asyncio/selector_events.py", line 724, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Operation timed out
Fatal read error on socket transport
protocol: <RequestHandler none:none connected>
transport: <_SelectorSocketTransport fd=13 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/selector_events.py", line 724, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Operation timed out
Fatal read error on socket transport
protocol: <RequestHandler none:none connected>
transport: <_SelectorSocketTransport fd=12 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.6/asyncio/selector_events.py", line 724, in _read_ready
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Operation timed out
Fatal read error on socket transport
protocol: <RequestHandler none:none connected>
transport: <_SelectorSocketTransport fd=13 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
It is repeated several times. not sure why this isn’t going to my err.log
here is my current appdaemon.yaml
secrets: /config/secrets.yaml
log:
logfile: /config/appdaemon/apps/logs/info.log
errorfile: /config/appdaemon/apps/logs/err.log
accessfile: /config/appdaemon/apps/logs/access.log
logsize: 100000
log_generations: 4
appdaemon:
disable_apps: 0
threads: 10
api_port: 5000
api_key: !secret http_password
api_ssl_certificate: /ssl/fullchain.pem
api_ssl_key: /ssl/privkey.pem
log_thread_actions: 0
plugins:
HASS:
type: hass
ha_url: !secret ha_url
ha_key: !secret http_password
hadashboard:
dash_url: http://127.0.0.1:5050
dash_dir: /config/appdaemon/dashboards
As requested, I restarted AD
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: AppDaemon3 v1.0.0
Python Apps and HADashboard using AppDaemon 3.x for Home Assistant
From: Community Hass.io Add-ons
By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing...
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 03-version-requirements.sh: executing...
INFO: Supervisor version requirements checks passed.
[cont-init.d] 03-version-requirements.sh: exited 0.
[cont-init.d] 20-init-configuration.sh: executing...
[cont-init.d] 20-init-configuration.sh: exited 0.
[cont-init.d] 21-compiled-dir.sh: executing...
[cont-init.d] 21-compiled-dir.sh: exited 0.
[cont-init.d] 30-auto-password.sh: executing...
[cont-init.d] 30-auto-password.sh: exited 0.
[cont-init.d] 31-ha-url.sh: executing...
WARNING: You are using an non-recommended Home Assistant URL!
WARNING: Setting the "ha_url" option in your AppDaemon config to
WARNING: "http://hassio/homeassistant" is recommended!
[cont-init.d] 31-ha-url.sh: exited 0.
[cont-init.d] 50-compiled-symlink.sh: executing...
[cont-init.d] 50-compiled-symlink.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing...
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-python-packages.sh: executing...
[cont-init.d] 81-python-packages.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
starting version 3.2.4
The following was added to my info.log after the restart of AD
2018-03-26 21:13:44.508477 INFO AppDaemon Version 3.0.0 starting
2018-03-26 21:13:44.509901 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-03-26 21:13:44.514552 INFO AppDaemon: Starting Apps
2018-03-26 21:13:44.532498 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-03-26 21:13:44.658561 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-03-26 21:13:44.660670 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-03-26 21:13:44.662582 INFO Starting Dashboards
2018-03-26 21:13:44.701289 INFO Starting API
2018-03-26 21:13:44.711975 WARNING AppDaemon: ------------------------------------------------------------
2018-03-26 21:13:44.713216 WARNING AppDaemon: Unexpected error in api thread
2018-03-26 21:13:44.715804 WARNING AppDaemon: ------------------------------------------------------------
2018-03-26 21:13:44.723924 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/adapi.py", line 43, in __init__
f = loop.create_server(handler, "0.0.0.0", int(self.api_port), ssl=context)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
2018-03-26 21:13:44.725359 WARNING AppDaemon: ------------------------------------------------------------
2018-03-26 21:13:46.007312 INFO AppDaemon: HASS: Connected to Home Assistant 0.65.6
2018-03-26 21:13:47.725443 INFO AppDaemon: Got initial state from namespace default
2018-03-26 21:13:48.659758 INFO AppDaemon: Reading config
2018-03-26 21:13:49.455132 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2018-03-26 21:13:49.456491 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2018-03-26 21:13:49.457727 INFO AppDaemon: App 'utils' added
2018-03-26 21:13:49.458754 INFO AppDaemon: App 'auto_turnoff_in_five' added
2018-03-26 21:13:49.459635 INFO AppDaemon: App 'auto_turnoff_in_ten' added
2018-03-26 21:13:49.460476 INFO AppDaemon: App 'auto_turrn_off_time' added
2018-03-26 21:13:49.461306 INFO AppDaemon: App 'auto_turnoff_front_garden' added
2018-03-26 21:13:49.462148 INFO AppDaemon: App 'auto_turn_on_off_backyard_lights' added
2018-03-26 21:13:49.463039 INFO AppDaemon: App 'auto_turnoff_motion_upstairs_gallery' added
2018-03-26 21:13:49.463883 INFO AppDaemon: App 'auto_turnon_off_motion_front_porch' added
2018-03-26 21:13:49.464715 INFO AppDaemon: App 'auto_turnoff_motion_light_study' added
2018-03-26 21:13:49.465637 INFO AppDaemon: App 'auto_turn_on_off_presence_scott' added
2018-03-26 21:13:49.466507 INFO AppDaemon: App 'auto_turn_on_off_presence_lia' added
2018-03-26 21:13:49.467399 INFO AppDaemon: App 'auto_turn_on_off_presence_emily' added
2018-03-26 21:13:49.468455 INFO AppDaemon: App 'auto_turn_on_off_presence_laura' added
2018-03-26 21:13:49.469324 INFO AppDaemon: App 'auto_turn_on_off_presence_zara' added
2018-03-26 21:13:49.470545 INFO AppDaemon: App 'auto_turn_on_off_front_garden_lights' added
2018-03-26 21:13:49.471770 INFO AppDaemon: App 'auto_turn_on_off_sunset_test' added
2018-03-26 21:13:49.472843 INFO AppDaemon: App 'study_motion_scene' added
2018-03-26 21:13:49.473755 INFO AppDaemon: App 'front_sprinkler_state_change' added
2018-03-26 21:13:49.474602 INFO AppDaemon: App 'back_sprinkler_state_change' added
2018-03-26 21:13:49.475542 INFO AppDaemon: App 'notify_door_open_closed_garage' added
2018-03-26 21:13:49.476477 INFO AppDaemon: App 'notify_door_open_closed_front' added
2018-03-26 21:13:49.478137 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2018-03-26 21:13:49.481344 INFO AppDaemon: Adding /config/appdaemon/apps/logs to module import path
2018-03-26 21:13:49.483168 INFO AppDaemon: Adding /config/appdaemon/apps/message to module import path
2018-03-26 21:13:49.496133 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/notify_state_change.py
2018-03-26 21:13:49.609266 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_on_off_presence.py
2018-03-26 21:13:49.636740 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/notify_door_open_closed.py
2018-03-26 21:13:49.643028 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_on_off_motion.py
2018-03-26 21:13:49.651762 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/xiaomi_switch.py
2018-03-26 21:13:49.658120 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_on_off_motion_lumens.py
2018-03-26 21:13:49.666999 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/notify_calendar_event.py - ignoring
2018-03-26 21:13:49.668771 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/utils.py
2018-03-26 21:13:49.677433 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_off_time.py
2018-03-26 21:13:49.683530 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/sunset.py
2018-03-26 21:13:49.689395 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_on_off_sunset.py
2018-03-26 21:13:49.695563 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/sound.py - ignoring
2018-03-26 21:13:49.697039 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_on_off.py
2018-03-26 21:13:49.713101 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/auto_turn_off_delay.py
2018-03-26 21:13:49.726047 INFO AppDaemon: Initializing app auto_turnoff_in_five using class AutoTurnOffLightsDelay from module auto_turn_off_delay
2018-03-26 21:13:49.729580 INFO AppDaemon: Initializing app auto_turnoff_in_ten using class AutoTurnOffLightsDelay from module auto_turn_off_delay
2018-03-26 21:13:49.734281 INFO AppDaemon: Initializing app auto_turrn_off_time using class AutoTurnOffLightsTime from module auto_turn_off_time
2018-03-26 21:13:49.738795 INFO AppDaemon: Initializing app auto_turnoff_front_garden using class AutoTurnOffLightsDelay from module auto_turn_off_delay
2018-03-26 21:13:49.741572 INFO AppDaemon: Initializing app auto_turn_on_off_backyard_lights using class AutoTurnOnOffLights from module auto_turn_on_off
2018-03-26 21:13:49.744462 INFO AppDaemon: Initializing app auto_turnoff_motion_upstairs_gallery using class AutoTurnOnOffLightsMotion from module auto_turn_on_off_motion
2018-03-26 21:13:49.746724 INFO AppDaemon: Initializing app auto_turnon_off_motion_front_porch using class AutoTurnOnOffLightsMotion from module auto_turn_on_off_motion
2018-03-26 21:13:49.749083 INFO AppDaemon: Initializing app auto_turnoff_motion_light_study using class AutoTurnOnOffLightsMotionLumens from module auto_turn_on_off_motion_lumens
2018-03-26 21:13:50.587689 INFO auto_turnoff_motion_light_study: Motion on binary_sensor.study_motion working
2018-03-26 21:13:50.589182 INFO AppDaemon: Initializing app auto_turn_on_off_presence_scott using class AutoTurnOffPresence from module auto_turn_on_off_presence
2018-03-26 21:13:50.592063 INFO AppDaemon: Initializing app auto_turn_on_off_presence_lia using class AutoTurnOffPresence from module auto_turn_on_off_presence
2018-03-26 21:13:50.594767 INFO AppDaemon: Initializing app auto_turn_on_off_presence_emily using class AutoTurnOffPresence from module auto_turn_on_off_presence
2018-03-26 21:13:50.597693 INFO AppDaemon: Initializing app auto_turn_on_off_presence_laura using class AutoTurnOffPresence from module auto_turn_on_off_presence
2018-03-26 21:13:50.599912 INFO AppDaemon: Initializing app auto_turn_on_off_presence_zara using class AutoTurnOffPresence from module auto_turn_on_off_presence
2018-03-26 21:13:50.602379 INFO AppDaemon: Initializing app auto_turn_on_off_front_garden_lights using class AutoTurnOnOffSunset from module auto_turn_on_off_sunset
2018-03-26 21:13:50.605782 INFO AppDaemon: Initializing app auto_turn_on_off_sunset_test using class TurnOnOffSunset from module sunset
2018-03-26 21:13:50.608714 INFO AppDaemon: Initializing app study_motion_scene using class xiaomiSwitch from module xiaomi_switch
2018-03-26 21:13:50.623905 INFO study_motion_scene: binary_sensor.switch_158d0002109f0e
2018-03-26 21:13:50.626491 INFO AppDaemon: Initializing app front_sprinkler_state_change using class NotifyStateChange from module notify_state_change
2018-03-26 21:13:50.628718 INFO AppDaemon: Initializing app back_sprinkler_state_change using class NotifyStateChange from module notify_state_change
2018-03-26 21:13:50.630384 INFO AppDaemon: Initializing app notify_door_open_closed_garage using class NotifyDoorOpenClosed from module notify_door_open_closed
2018-03-26 21:13:50.633335 INFO AppDaemon: Initializing app utils using class utils from module utils
2018-03-26 21:13:50.635813 INFO AppDaemon: Initializing app notify_door_open_closed_front using class NotifyDoorOpenClosed from module notify_door_open_closed
2018-03-26 21:13:50.639295 INFO AppDaemon: App initialization complete
2018-03-26 21:13:58.922966 INFO auto_turnoff_motion_light_study: Motion on binary_sensor.study_motion detected
2018-03-26 21:13:58.967032 INFO auto_turnoff_motion_light_study: light 785 detected
2018-03-26 21:14:00.861534 INFO auto_turnoff_motion_light_study: Motion on binary_sensor.study_motion detected
2018-03-26 21:14:00.870390 INFO auto_turnoff_motion_light_study: light 764 detected
Please let me know if you need anymore info
thanks again.