Greetings. First of all, I’d like to express my appreciation for all of the work shared by others so that numpties like me can benefit, thank you!
I have a problem getting things to work, I think I know why, I’m interested in whether I’m on the right track…?
I have Infinitive setup and working on a Pi, I can use the web interface no problem. When I try and setup @mww012 's custom component, no dice.
- The first thing to tell you all is this is a Bryant Evolution system.
- When I run the API calls, specifically GET bryant:8080/api/zone/1/config the returned parameter list is shorter than I see on https://github.com/acd/infinitive
- When I try and install in HA I receive an initial error of:
Error while setting up platform infinitive
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
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/infinitive/climate.py", line 95, in setup_platform
add_entities([InfinitiveDevice(inf_device, name, temp_min_spread)])
File "/config/custom_components/infinitive/climate.py", line 130, in __init__
self.update()
File "/config/custom_components/infinitive/climate.py", line 265, in update
self._target_humidity = self._status['targetHumidity']
KeyError: 'targetHumidity'
Since I don’t see that parameter returned by the API call, I commented it out. I then did for all other parameters I don’t see to have / see. Eventually I’m left this error:
Error while setting up platform infinitive
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
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/infinitive/climate.py", line 95, in setup_platform
add_entities([InfinitiveDevice(inf_device, name, temp_min_spread)])
File "/config/custom_components/infinitive/climate.py", line 130, in __init__
self.update()
File "/config/custom_components/infinitive/climate.py", line 282, in update
elif self._hvac_mode == 'heat' and self._stage > 0:
TypeError: '>' not supported between instances of 'NoneType' and 'int'
and here I’m stuck.
My hypothesis is the custom component, and indeed infinitive itself was all done for Infinity. And yes, the bus is the same, and the messages are the same too (at least to a large extent as Infinitive’s web interface works just fine) but perhaps I can’t get this into HA as there is not a 1:1 match between Infinity and Bryant. Comments? Do I need a new / different component for HA to work in my instance?
One thing that doesn’t make sense to me… if I make an API request for
GET /api/zone/1/airhandler or GET /api/zone/1/heatpump I get a 404 error. The request for vacation attributes works fine.