Again I skipped a few versions. New stuff breaking with .80 and above?
Are you using the custom component or the homekit controller method? I was getting a lot of the broken pipe errors with the homekit method, but it seems to be working flawlessly on 0.80 (I just updated today, so fingers crossed).
Running much better with 0.80.1âŚ
I got that same error running a fresh install of Hass.io.
I got it working by changing line 201 of lyric.py like this:
data = request.query
I can confirm that everything with the custom component in 80.1 works for me (also setting setpoint etc)
Iâve been using the homekit method, but it doesnât have the âawayâ mode available. Your reply at the end of the thread says the custom component is working well on 0.80.1 so I thought Iâd give it another go. The link to @arsabooâs github custom_components is broken. Is your configuration available, or what is the best source?
Hi shaun-adam; Iâm not using the away mode so canât comment if that works. I have an automation that setâs the temp back and resumes program when someone comes home.
Unfortunately I cannot post the .py files on the forum. Send me a private message with you email and I will mail them to you
Hello,
Iâve tried implementing the Lyric thermostat, but upon authorizing Home Assistant via the Honeywell API, get this error:
2018-10-25 08:36:35 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_protocol.py", line 390, in start
resp = await self._request_handler(request)
File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_app.py", line 366, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_middlewares.py", line 106, in impl
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware
return await handler(request)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/http/view.py", line 113, in handle
result = await result
File "/usr/lib/python3.6/asyncio/coroutines.py", line 212, in coro
res = func(*args, **kw)
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/lyric.py", line 200, in get
data = request.GET
AttributeError: 'Request' object has no attribute 'GET'
Any idea as to how to fix this?
Change line 201 of lyric.py to this:
data = request.query
That worked, thanks a bunch! Do you have a solution for this next problem as well?
Iâve now succesfully linked the thermostat, and the lyric.conf exists.
2018-10-29 09:09:37 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.climate.lyric. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/root/.homeassistant/custom_components/climate/lyric.py", line 15, in <module>
from custom_components.lyric import DATA_LYRIC, CONF_FAN, CONF_AWAY_PERIODS
ModuleNotFoundError: No module named 'custom_components.lyric'
2018-10-29 09:09:37 ERROR (MainThread) [homeassistant.loader] Error loading homeassistant.components.climate.lyric. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/local/lib/python3.6/dist-packages/homeassistant/components/climate/lyric.py", line 15, in <module>
from custom_components.lyric import DATA_LYRIC, CONF_FAN, CONF_AWAY_PERIODS
ModuleNotFoundError: No module named 'custom_components.lyric'
2018-10-29 09:09:37 ERROR (MainThread) [homeassistant.loader] Unable to find component climate.lyric
2018-10-29 09:09:37 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate.lyric: Platform not found.
2018-10-29 09:09:39 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: Object of type 'function' is not JSON serializable
Ok, here you go:
This are the versions of the files that work on my hass.io installation (iâm now at 0.81.1)
Thanks! That works
Also can confirm, dropping those files in custom_components and following the instructions from the earlier posts for setting up the API with honeywell worked, and this is on the latest version 82.0. Great job! Oh, I did have to put in the local IP address for the oauth authorization flow, for some reason my external https to HA didnât go through. It said something about how the URL differs.
Is there a change required to get this custom component able to expose to Google Assistant?
If this custom component is working well, what would it take to make it official?
Hi Guys! Everything works well, but Iâve got 500 internal server error in authentication flow after I choose my thermostat, click connect, than send me back to my HA URL:
Whats wrong?
If youâre referring to the call back IP, I had to use my private internal IP of http://192.168.76.12:8123/api/lyric/authenticate...in your URL it appears youâre trying to use your public IP.
Problem solved! Thanks!
My problem was I used old lyric.py files.
I want to start using this component, but missing the basics. The URLâs in the .py files mentioned here are not working. Can somebody tell me what to setup in my configuration file?