But you do have a warning in your log that it won’t work in the future, right?
Yeah, I do…I had missed that. So it probably will stop working on the next upgrade or 2…bummer.
Wish this was a better maintained plug in, I’m not much of a python coder.
You were right 0.89.0 broke mine. Went back to 0.88.2 and it working again!! Will be watching for any help fixing this. Thanks everyone!!
Same here, trying to fix it via trial and error (I’m not a programmer).
Similar issues here: 0.89 Breaking Change: Prevent partial custom component overlays
edit: Ok, I think i found a fix. Published a repo with it:
https://github.com/teunehv/ha-custom-components/tree/master/lyric
thanks- looks good.
This is probably a easy question for you. I am running hassbian on a PI, can you tell me where to put these .py files?
I think it should be in /home/homeassistant/.homeassistant/custom_components/
Yes, Indeed!
@teunehv thank you very much!
This almost works in 0.89.0. I see the entity and can read current values, but changes are not reflected on the actual thermostat. Setting values (like temperature) doesn’t work for me.
@lukastillmann was it working before? And do you see entries in your log?
In my configuration, hassio 0.89.0 it’s working, just double checked.
What about the services.yaml, is this optional? Great work! Will try it in a sec. 89 broke it for me, 88 was working.
Yes, I only put it in because it was in the original.
See here the explanation for the use: Honeywell Lyric Thermostat
Hmm, deleted pycache, uploaded your repo, good folder structure, and in the right place.
Component doesnt get loaded. No logs…
Well, now it works again, after another restart.
Can you share the content of the custom components folder, perhaps something strange in there.
Sure here you go, your files repo files are in there:
core-ssh:~# ls -la /config/custom_components/
total 52
drwxr-xr-x 10 root root 4096 Mar 8 23:10 .
drwxr-xr-x 17 root root 4096 Mar 8 23:19 ..
drwxr-xr-x 2 root root 4096 Mar 8 23:10 __pycache__
drwxr-xr-x 3 root root 4096 Mar 8 22:09 alexa_media
drwxr-xr-x 3 root root 4096 Feb 22 20:32 bwalarm
-rw-r--r-- 1 root root 11774 Mar 4 23:17 custom_updater.py
drwxr-xr-x 2 root root 4096 Mar 8 20:42 liric
drwxr-xr-x 2 root root 4096 Mar 8 15:35 media_player
drwxr-xr-x 3 root root 4096 Mar 8 14:49 plex_recently_added
drwxr-xr-x 3 root root 4096 Mar 8 23:06 radarr_upcoming_media
drwxr-xr-x 3 root root 4096 Mar 8 20:34 sonarr_upcoming_media
core-ssh:~# ls -la /config/custom_components/liric/
total 32
drwxr-xr-x 2 root root 4096 Mar 8 20:42 .
drwxr-xr-x 10 root root 4096 Mar 8 23:10 ..
-rw-r--r-- 1 root root 66 Mar 8 20:29 README
-rw-r--r-- 1 root root 7279 Mar 8 20:28 __init__.py
-rw-r--r-- 1 root root 11997 Mar 8 20:28 climate.py
I see a folder named liric instead of lyric
weird, my bad, doesnt seem to fix it though. renamed to Lyric
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 154, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/lyric/__init__.py", line 116, in setup
import lyric
File "/config/lyric.py", line 17, in <module>
from homeassistant.components.climate import (
ImportError: cannot import name 'STATE_AUTO' from 'homeassistant.components.climate' (/usr/local/lib/python3.7/site-packages/homeassistant/components/climate/__init__.py
It’s exactly the error that I’ve fixed. Zo some how, it seems a caching related thing.
But as states, I’m not a python developer zo not sure how you should fix… Perhaps remove all py cache folders.
In my version its like this, so taken from .cons
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)