thanks again!
Using the new script, it works exactly was we discussed! THANK YOU!
If I ignore the actions messages, after 1 minute, my HVAC turns off. Pretty Sweet.
The errors logs still show the none error, I wonder if just some legacy/cache issue (I didn’t restart my HA but did reset the scripts and automations).
Logger: homeassistant.helpers.template
Source: helpers/template.py:1834
First occurred: 6:18:56 PM (2 occurrences)
Last logged: 6:18:56 PM
Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.action == action_ignore }}'
Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.action == action_fan }}'
Logger: homeassistant.helpers.script
Source: helpers/script.py:649
First occurred: 6:18:56 PM (2 occurrences)
Last logged: 6:18:56 PM
Error in 'choose[0]' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'event'
There was another error log shown, but more related to my thermostat and intergration,
Logger: homeassistant.core
Source: components/nexia/climate.py:211
First occurred: 6:00:35 PM (2 occurrences)
Last logged: 6:19:19 PM
Error executing service: <ServiceCall climate.set_fan_mode (c:58baefee020d30cb2db571325ca23ae3): fan_mode=Auto, entity_id=['climate.house_thermostat_nativezone']>
Error executing service: <ServiceCall climate.set_fan_mode (c:7c7b8be6e9d7a8717ddadaa7ae71e332): fan_mode=Auto, entity_id=['climate.house_thermostat_nativezone']>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/usr/local/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.9/http/client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred, but I suspect this is more related to the itnregration instead.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.9/site-packages/urllib3/packages/six.py", line 770, in reraise
raise value
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 451, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 340, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.mynexia.com', port=443): Read timed out. (read timeout=20)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1654, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 462, in async_set_fan_mode
await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/nexia/climate.py", line 211, in set_fan_mode
self._thermostat.set_fan_mode(fan_mode)
File "/usr/local/lib/python3.9/site-packages/nexia/thermostat.py", line 377, in set_fan_mode
self._post_and_update_thermostat_json("fan_mode", {"value": fan_mode})
File "/usr/local/lib/python3.9/site-packages/nexia/thermostat.py", line 665, in _post_and_update_thermostat_json
response = self._nexia_home.post_url(url, payload)
File "/usr/local/lib/python3.9/site-packages/nexia/home.py", line 159, in post_url
response = self.session.post(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 577, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='www.mynexia.com', port=443): Read timed out. (read timeout=20)