Honeywell Lyric Thermostat

I woke up with fresh eyes and immediately realized i was using the wrong instance of my Home Assistant. so annoyed with myself
lesson is don’t mess with this stuff if you have been up for 24 hours

Thanks for the reply’s

I tried everything you suggested but nothing works on HA 0.89.0. There seems to be no reference to the lyric.py files where do they go?

I have the files in my homeassistant directory under:

./custom_components/lyric/init.py
./custom_components/lyric/climate.py

I have 2 lyric.py files
one in components and one in components/climate. Does climate.py replace the lyric.py in components/climate?

make a “lyric” folder under “custom_components” folder
The lyric.py that was in the custom_components folder move to custom_components/lyric and rename it to __init__.py
Move the “lyric.py” that was under “custom_components/climate” to “custom_components/lyric” and rename it to “climate.py”

Also after i updated to 0.89.1 I had to change the climate,py file because of some const changes in the update.
Before:

from homeassistant.components.climate import (
    ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, DOMAIN,
    ClimateDevice, PLATFORM_SCHEMA, STATE_AUTO,
    STATE_COOL, STATE_HEAT, SUPPORT_TARGET_TEMPERATURE,
    SUPPORT_TARGET_TEMPERATURE_HIGH, SUPPORT_TARGET_TEMPERATURE_LOW,
    SUPPORT_OPERATION_MODE, SUPPORT_AWAY_MODE, SUPPORT_FAN_MODE)

After:

from homeassistant.components.climate import ClimateDevice, PLATFORM_SCHEMA
from homeassistant.components.climate.const import (
    ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, DOMAIN,
    STATE_AUTO, STATE_COOL, STATE_HEAT, SUPPORT_TARGET_TEMPERATURE,
    SUPPORT_TARGET_TEMPERATURE_HIGH, SUPPORT_TARGET_TEMPERATURE_LOW,
    SUPPORT_OPERATION_MODE, SUPPORT_AWAY_MODE, SUPPORT_FAN_MODE)	

See following


This repo contains the files and the location that is needed. Including the step-by-step description.

It shouldn’t be components, but custom_components. And the structure of custom components will change in the future. Since 0.88 warnings show up in the logs about the future change. If you make sure the files are present as in the repo you have the correct files/config:

<home-assistant-config-folder>/custom_components/lyric/__init__.py
<home-assistant-config-folder>/custom_components/lyric/climate.py
<home-assistant-config-folder>/custom_components/lyric/services.yaml
1 Like

I tried but getting the following message:

500 Internal Server Error

Server got itself in trouble

Tried it again this morning and loaded 0.89.2 , assuming a beta fix version. Everything is working again. I am still running on my original HA All In One Installation on a Raspberry PI. I am assuming there has been lots of system restructuring since then.

Everytime I put

lyric:
  client_id: !secret lyric_client_key
  client_secret: !secret lyric_client_secret

into my configuration.yaml, Home Assistant won’t start, and no logs are created.

I copied the files using wget from the repo [teunehv/ha-custom-components] with the proper structure. The directory and files are root:root

This has been happening with the last three versions of HASSIO. I have never been able to successfully implement this.

Any ideas?

Hi…what are the changes needed to make this work with version 0.90?
Trying to get this working for the first time, and it’s won’t work.

Thanks for any advice.

It should be working as in the repo. At laat its working on my side.
What message do you get?

[Info] Start install HomeAssistant latest
[Info] Installed homeassistant==0.90.2, check config now
[Error] Wrong config found!
Testing configuration at /tmp/config
WARNING:homeassistant.components.http:Configuring api_password via the http component has been deprecated. Use the legacy api password auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#legacy-api-password
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py”, line 204, in check
res[‘components’] = check_ha_config_file(hass)
File “/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py”, line 332, in check_ha_config_file
component = loader.get_component(hass, domain)
File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 131, in get_component
comp = _load_file(hass, comp_or_platform, LOOKUP_PATHS)
File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 724, in exec_module
File “”, line 860, in get_code
File “”, line 791, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/tmp/config/custom_components/lyric/init.py”, line 7

^
SyntaxError: invalid syntax
Fatal error while loading config: invalid syntax (init.py, line 7)
Failed config
General Errors:
- invalid syntax (init.py, line 7)

Successful config (partial)

@Hurricane: Just checking… you have a secret file with the keys present?

@RDM I see a reference to line 7, which is ‘import logging’
I dont know but perhaps something wrong with you log setup??
I’m not a python expert, so I don’t know…

@teunehv Yes, I do have the secret file, secret.yaml. I have tried with the keys directly in the configuation.yaml as well.

@Hurricane so, you didn’t perform Part 4 ever, since aparently nothing is happening after you put in the files and update the configuration?

@teunehv That is correct. When the lines are added into configuration.yaml, if I reboot then HA never comes back up, and nothing is logged to home-assistant.log. If I use Lovelace/Configuration/General/Check Config I just get a spinning circle, I have to refresh the page for the button to come back.

Tried doing the config check via ssh and had some info about the issue

Blockquote
core-ssh:~# hassio ha check
Error: Testing configuration at /config
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py”, line 204, in check
res[‘components’] = check_ha_config_file(hass)
File “/usr/local/lib/python3.7/site-packages/homeassistant/scripts/check_config.py”, line 332, in check_ha_config_file
component = loader.get_component(hass, domain)
File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 131, in get_component
comp = _load_file(hass, comp_or_platform, LOOKUP_PATHS)
File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 166, in _load_file
module = importlib.import_module(path)
File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 724, in exec_module
File “”, line 860, in get_code
File “”, line 791, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/lyric/init.py”, line 7

^
SyntaxError: invalid syntax
Fatal error while loading config: invalid syntax (init.py, line 7)
Failed config
General Errors:
- invalid syntax (init.py, line 7)
Successful config (partial)

Note that for some reason the __ (double underscore) on either side of init is automatically removed for some reason.

I see that the output is the same as RDM posted above.

How did you retrieve the files from github, via clone, just copy paste the content or just copy paste the raw content?

Perhaps you van upload somewhere the files as you use them for anlysys

@teunehv I have tried wget from the directory, raw copy to notepad++ then saved directly to the appropriate directory, saved to a windows box and copied over via samba. Files and directories are always owned by root.

If I rename the directory and check config it complains the directory doesn’t exist, so I know the structure is correct. I will upload the files when I get home.

Thanks for your attention to this.

Files are here