jnimmo / pyIntesisHome

Python interface for IntesisHome devices
MIT License
35 stars 21 forks source link

Support for IntesisHome heat pumps #54

Open fussel132 opened 4 months ago

fussel132 commented 4 months ago

Hi there,

so I tried to use this plugin to integrate our Panasonic heat pump into Home Assistant, however it failed with this error message:

Error while setting up intesishome platform for climate

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform await asyncio.shield(awaitable) File "/usr/src/homeassistant/homeassistant/components/intesishome/climate.py", line 131, in async_setup_platform IntesisAC(ih_device_id, device, controller) File "/usr/src/homeassistant/homeassistant/components/intesishome/climate.py", line 205, in init mode_list = [MAP_IH_TO_HVAC_MODE[mode] for mode in modes]


KeyError: 'heat+tank'

I was wondering why that happens but it appears this integration (using this library) is not designed to support heat pumps only air conditioning devices, am I right? Would be nice to get heat pumps to work, too. This would include the ability to set these settings as seen in the screenshot below:

intesis_dashboard

There are also the following settings available which might need to be considered when adding this (I don't know for sure, could only test this with CLIMATE+TANK type)

intesis_settings

If required I could try figuring out the API calls to IntesisHome, havn't looked into the way things work in detail yet...

And to achieve the goal integrating these changes into the Home Assistant Integration we might switch from the Climate entity to Water Heater as it seems to better fit the desired purpose (has at least a state called STATE_HEAT_PUMP).

Greetings,

fussel132