This doesnt have auto mode. It just lets you have cool and heat on the same component. The original generic thermostat would only support 1 mode per component
I have restarted home assistant with this file in place. This is what I have in my config file (2 generic_thermostat platforms and the new thermostat as the 3rd platform:
I think you would have to make sure on which config folder home assistant is using and that its inside the climate folder. If that didnt work, try putting it in the same folder as all the other built in climate components
I also can’t make this work. I get the following callback
2019-01-10 23:24:31 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.climate.generic_thermostat. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/climate/generic_thermostat.py", line 25, in <module>
from homeassistant.helpers.restore_state import async_get_last_state
ImportError: cannot import name 'async_get_last_state'
This is great cause I stopped using generic thermostat and moved to manual automations just for that reason I had to make two generic thermostats for every AC
But I’m confused from few latest posts, does version in first post works with home assistant v0.85.0?
I am currently using homeassistant 81.1 and i think the newer versions broke it. I will update the file and maybe make a proper repo for it. I will post the link here when its ready.
I think the fix for it is fairly simple. I just really dont have the time to upgrade my system to test it. Taking it to the main repo is also kinda hard because I would need to create a lot of tests.