Honeywell Lyric Thermostat

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

@Hurricane I think the problem is you copied directly from Github and not copy the raw content. I see HTML tags in the *.py files and that is not correct.

You can download the complete repo via this zip. This is the most safe way to make sure files are correct.

Or switch to raw modus per file (and then copy the content):

@RDM perhaps this solves your problem as well?

1 Like

@teunehv Success! I don’t know why a wget would add anything to the files’ structure?

I really appreciate your help with this!

Great news!
I think when you do a wget in fact you get the HTML page github is showing. I think if you do a wget on the raw url you get the plain py file.

Totally my bad on that.

Thanks again for your help!

@teunehv great pick up :man_facepalming:…Worked a treat! :grinning:

You guys are the BEST!!!

works perfectly. Thank you x1000000

1 Like

I want to say thanks to @teunehv and @Bram_Kragten and everyone involved in making this work and keeping it working!! Excellent write up on the install and it installed sooo smooth!
One thing to watch though for anyone else installing , is the https vs http when setting your base url in ha. I do not use ssl and i copied and pasted straight from instructions and almost didn’t notice the problem when i got the error about urls not matching.
Thanks Again , What an awesome product Home Assistant is with an awesome community of people willing to help!:clap::clap::facepunch::+1:

1 Like

Hello, I have been trying to get my Lyric Thermostat setup but am having a hard time doing so. My issues are the same as RDM and Hurricane in that after I put in the configs in the folders custom_components/lyric and update the configuration.yaml hassio will not load.

I used the zip file that teunehv provide initially but the same issue. I then copied and pasted into notepad ++ the raw config files from the git but same results. I was able to get samba working and view some logs:

Error: Testing configuration at /config
ERROR:homeassistant.util.yaml:while scanning a simple key
in “/config/configuration.yaml”, line 42, column 1
could not find expected ‘:’
in “/config/configuration.yaml”, line 43, column 1
Failed config
General Errors:
- Error loading /config/configuration.yaml: while scanning a simple key
in “/config/configuration.yaml”, line 42, column 1
could not find expected ‘:’
in “/config/configuration.yaml”, line 43, column 1
Successful config (partial)

I checked the configuration.yaml and saw that I left off a # for Honeywell Lyric Thermostat. I added the # and now I can’t even SSH into my pi. I am not sure what to do so any help would be appreciated.

This is what I put in the configuration.yaml file

Honeywell Lyric Thermostat
lyric:
client_id: !secret lyric_client_key
client_secret: !secret lyric_client_secret
http:
base_url: http://192.168.x.xxx:8123/api/lyric/authenticate

and I make sure that the custom_components folder is in the same directory as the configruation.yaml file