biker91620 / ha-cozytouch

Cozytouch support for Home Assistant
GNU General Public License v2.0
16 stars 22 forks source link

no attribute 'heaters' #2

Closed thundergreen closed 5 years ago

thundergreen commented 5 years ago

Dear Fried.

Setting up this component ends up in: ´´´ 2018-12-03 13:33:59 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform cozytouch

File "/home/hass/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()

result = self.fn(*self.args, **self.kwargs)hread.py", line 56, in run                                                                      

File "/home/hass/.homeassistant/custom_components/switch/cozytouch.py", line 21, in setup_platform
for heater in setup.heaters:
AttributeError: 'SetupHandler' object has no attribute 'heaters'
2018-12-03 13:33:59 INFO (SyncWorker_19) [homeassistant.components.sensor.command_line] Running command: cat /sys/class/thermal/thermal_zone0/t emp 2018-12-03 13:33:59 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform cozytouch Traceback (most recent call last):
File "/home/hass/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/hass/.homeassistant/custom_components/sensor/cozytouch.py", line 25, in setup_platform
for heater in setup.heaters:
AttributeError: 'SetupHandler' object has no attribute 'heaters' ´´´ Any ideas?

I' using Hass 0.83.2 --> latest Home Assistant

biker91620 commented 5 years ago

You have an old version of cozypy. I havn't push latest changes on pypi test. You can retrieve latest library using pip install git+https://github.com/biker91620/cozypy.git. But take in mind that there is no release available yet.

thundergreen commented 5 years ago

I'll try that ..thanks it's for general testing for the moment. How often does it pull the information and how do I have to configure the heating? It can be controlled locally or external .... Or does it work in both modes .strange thing it it won't change the values in the climate component but I see the sensors ...

I guess heaters have to be added to a room if I well understood. Unfortunately changing values in climate won't change it in the app ..I assume it's not working then. Let me play around a bit and report ;)