I am a Circadian Lighting user and decided to give this component a go. I installed it via HACS, commented the CL config for one light out and put this in my config.yaml:
After restarting HA, the light turned on as expected, brightness/ct were set as I expected. Then I changed the brightness in HA to 1 and turned the light off (in HA) and back on. What happened was rather unexpected: the brightness for this light in HA showed the expected value (max.), but the light itself stayed on brightness 1.
The light is an IKEA Floalt 60x60.
As I was writing this, I was playing around with the settings a bit. When using following parameters, everything works fine:
2020-11-20 06:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for badnest which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for circadian_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for garbage_collection which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:31 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Setting up with '['light.office_lights']', config_entry.data: '{'name': 'Office', 'detect_non_ha_changes': True, 'transition': 1.0, 'initial_transition': 1.0, 'lights': ['light.office_lights'], 'max_color_temp': 5500, 'sunrise_offset': 0.0, 'min_brightness': 1, 'min_color_temp': 2000, 'sleep_brightness': 1, 'only_once': False, 'sleep_color_temp': 1000, 'max_brightness': 100, 'separate_turn_on_commands': False, 'sunset_offset': 0.0, 'take_over_control': True, 'prefer_rgb_color': False, 'interval': 90.0}', config_entry.options: '{}', converted to '{'lights': ['light.office_lights'], 'prefer_rgb_color': False, 'initial_transition': 1.0, 'transition': 1.0, 'interval': datetime.timedelta(seconds=90), 'min_brightness': 1, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5500, 'sleep_brightness': 1, 'sleep_color_temp': 1000, 'sunrise_time': None, 'sunrise_offset': datetime.timedelta(0), 'sunset_time': None, 'sunset_offset': datetime.timedelta(0), 'only_once': False, 'take_over_control': True, 'detect_non_ha_changes': True, 'separate_turn_on_commands': False, 'name': 'Office'}'.
2020-11-20 06:36:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for attributes which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:32 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for wundergroundpws which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Called 'async_turn_on', current state is 'None'
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Called '_setup_listeners'
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Cancelled '_setup_listeners'
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_turn_on_0'
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_turn_on_0)' called
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Sleep Mode: Office: last state is <state switch.adaptive_lighting_sleep_mode_office=off; friendly_name=Adaptive Lighting Sleep Mode: Office, icon=mdi:theme-light-dark @ 2020-11-20T07:26:09.684371+01:00>
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Color: Office: last state is <state switch.adaptive_lighting_adapt_color_office=on; friendly_name=Adaptive Lighting Adapt Color: Office, icon=mdi:theme-light-dark @ 2020-11-20T07:26:09.685082+01:00>
2020-11-20 06:36:33 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting Adapt Brightness: Office: last state is <state switch.adaptive_lighting_adapt_brightness_office=on; friendly_name=Adaptive Lighting Adapt Brightness: Office, icon=mdi:theme-light-dark @ 2020-11-20T07:26:09.685499+01:00>
2020-11-20 06:36:34 ERROR (SyncWorker_6) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
OSError: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xad354160>: Failed to establish a new connection: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xad354160>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
self._init_session()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
if self._login() is False:
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 57, in _login
result = self._execute_post_url("authLogin.cgi", data, False)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 97, in _execute_post_url
resp = self._session.post(url, data, timeout=self._timeout, verify=self._verify_ssl)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xad354160>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
2020-11-20 06:36:34 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 30 seconds.
2020-11-20 06:36:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Called '_setup_listeners'
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='dd89d995cf818bfbf4d527cb0386f24f'
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 359, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='dd89d995cf818bfbf4d527cb0386f24f'
2020-11-20 06:37:07 ERROR (SyncWorker_31) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
OSError: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xaf6f5610>: Failed to establish a new connection: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xaf6f5610>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
self._init_session()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
if self._login() is False:
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 57, in _login
result = self._execute_post_url("authLogin.cgi", data, False)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 97, in _execute_post_url
resp = self._session.post(url, data, timeout=self._timeout, verify=self._verify_ssl)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xaf6f5610>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Detected an 'off' → 'on' event for 'light.office_lights' with context.id='dd89d995cf818bfbf4d527cb0386f24f'
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_light_event_1'
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_light_event_1)' called
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 354} with context.id='adapt_lgt_6c3a_light_event_1'
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_light_event_1'
2020-11-20 06:37:07 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 60 seconds.
2020-11-20 06:37:07 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 354, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_light_event_1'
2020-11-20 06:37:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='6502470f9454a323d39f00d09922bd29'
2020-11-20 06:37:53 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 181, 'color_temp': 354, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='6502470f9454a323d39f00d09922bd29'
2020-11-20 06:37:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='6a16a419e861f4e833d2a159b9fb2a93'
2020-11-20 06:37:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 354, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='6a16a419e861f4e833d2a159b9fb2a93'
2020-11-20 06:37:57 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_lights']', transition=None)' event with context.id='b6ce6eabe45d7ad13b507ade638463a2'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='a3175f209e2cd3e4194047b211937cad'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 254, 'color_temp': 354, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='a3175f209e2cd3e4194047b211937cad'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Detected an 'off' → 'on' event for 'light.office_lights' with context.id='a3175f209e2cd3e4194047b211937cad'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_light_event_2'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_light_event_2)' called
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 352} with context.id='adapt_lgt_6c3a_light_event_2'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_light_event_2'
2020-11-20 06:38:00 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 352, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_light_event_2'
2020-11-20 06:38:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='c2528586131b0c2bfd36b7ddd9bb5c0b'
2020-11-20 06:38:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 3, 'color_temp': 352, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='c2528586131b0c2bfd36b7ddd9bb5c0b'
2020-11-20 06:38:05 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_lights']', transition=None)' event with context.id='43e2bd31c7193e3948b4cbc18f4aed77'
2020-11-20 06:38:10 ERROR (SyncWorker_17) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
OSError: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xa782bee0>: Failed to establish a new connection: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xa782bee0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
self._init_session()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
if self._login() is False:
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 57, in _login
result = self._execute_post_url("authLogin.cgi", data, False)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 97, in _execute_post_url
resp = self._session.post(url, data, timeout=self._timeout, verify=self._verify_ssl)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xa782bee0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
2020-11-20 06:38:10 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 90 seconds.
2020-11-20 06:38:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_interval_3'
2020-11-20 06:38:15 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], None, force=False, context.id=adapt_lgt_6c3a_interval_3)' called
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='d17f860d987a24bc40a29c6ab06917c2'
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 3, 'color_temp': 352, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='d17f860d987a24bc40a29c6ab06917c2'
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Detected an 'off' → 'on' event for 'light.office_lights' with context.id='d17f860d987a24bc40a29c6ab06917c2'
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_light_event_4'
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_light_event_4)' called
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 349} with context.id='adapt_lgt_6c3a_light_event_4'
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_light_event_4'
2020-11-20 06:38:55 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 349, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_light_event_4'
2020-11-20 06:38:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 1, 'color_temp': 349, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_light_event_4'
2020-11-20 06:38:56 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State change event of 'light.office_lights' is already in 'self.last_state_change' (adapt_lgt_6c3a_light_event_4) adding this state also
2020-11-20 06:38:59 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_lights']', transition=None)' event with context.id='5ce8e4102172356411bfd80d8149830c'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='11c78607f9b7fad2a31c34ef14beb632'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 1, 'color_temp': 349, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='11c78607f9b7fad2a31c34ef14beb632'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Detected an 'off' → 'on' event for 'light.office_lights' with context.id='11c78607f9b7fad2a31c34ef14beb632'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_light_event_5'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_light_event_5)' called
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 349} with context.id='adapt_lgt_6c3a_light_event_5'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_light_event_5'
2020-11-20 06:39:01 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 349, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_light_event_5'
2020-11-20 06:39:02 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_lights']', transition=None)' event with context.id='c66e0e9e120ef413cf1a7edc53da6d0a'
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='1d5961c1fc04893950cd7e511a328c43'
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 349, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='1d5961c1fc04893950cd7e511a328c43'
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Detected an 'off' → 'on' event for 'light.office_lights' with context.id='1d5961c1fc04893950cd7e511a328c43'
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_light_event_6'
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_light_event_6)' called
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 349} with context.id='adapt_lgt_6c3a_light_event_6'
2020-11-20 06:39:04 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_light_event_6'
2020-11-20 06:39:11 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_off('['light.office_lights']', transition=None)' event with context.id='4dbf3344546785c02b61d9e248681550'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='7ed9ac208fd7cdc4d7ee78a117b6ec09'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 349, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='7ed9ac208fd7cdc4d7ee78a117b6ec09'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Detected an 'off' → 'on' event for 'light.office_lights' with context.id='7ed9ac208fd7cdc4d7ee78a117b6ec09'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_light_event_7'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], 1.0, force=True, context.id=adapt_lgt_6c3a_light_event_7)' called
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 348} with context.id='adapt_lgt_6c3a_light_event_7'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_light_event_7'
2020-11-20 06:39:14 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 348, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_light_event_7'
2020-11-20 06:39:43 ERROR (SyncWorker_14) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
OSError: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 950, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0xa7811580>: Failed to establish a new connection: [Errno 113] Host is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xa7811580>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
self._init_session()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
if self._login() is False:
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 57, in _login
result = self._execute_post_url("authLogin.cgi", data, False)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 97, in _execute_post_url
resp = self._session.post(url, data, timeout=self._timeout, verify=self._verify_ssl)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.68.110', port=8080): Max retries exceeded with url: /cgi-bin/authLogin.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xa7811580>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
2020-11-20 06:39:43 WARNING (MainThread) [homeassistant.components.sensor] Platform qnap not ready yet. Retrying in 120 seconds.
2020-11-20 06:39:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: '_update_attrs_and_maybe_adapt_lights' called with context.id='adapt_lgt_6c3a_interval_8'
2020-11-20 06:39:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Adaptive Lighting: Office: '_adapt_lights(['light.office_lights'], None, force=False, context.id=adapt_lgt_6c3a_interval_8)' called
2020-11-20 06:39:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] State of 'light.office_lights' didn't change wrt change event nr. 0 (context.id=adapt_lgt_6c3a_interval_8)
2020-11-20 06:39:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Office: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.office_lights', 'transition': 1.0, 'brightness': 255, 'color_temp': 347} with context.id='adapt_lgt_6c3a_interval_8'
2020-11-20 06:39:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.office_lights']')' event with context.id='adapt_lgt_6c3a_interval_8'
2020-11-20 06:39:45 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.office_lights' 'state_changed' event: '{'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'brightness': 255, 'color_temp': 347, 'is_deconz_group': True, 'all_on': True, 'friendly_name': 'Office Lights', 'supported_features': 47, 'icon': 'mdi:desktop-tower-monitor'}' with context.id='adapt_lgt_6c3a_interval_8'