djbulsink / panasonic_ac

Panasonic Comfort Cloud HA component
30 stars 16 forks source link

Help- i d'not see my Heatpump #18

Open fabrydivx opened 4 years ago

fabrydivx commented 4 years ago

Hi, i see only two heatpump , i have 4 Ac in my house . In Hassio i see that error: 2020-03-16 16:41:34 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for panasonic_ac which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2020-03-16 16:41:44 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform panasonic_ac is taking over 10 seconds. 2020-03-16 16:42:01 ERROR (MainThread) [homeassistant.components.climate] panasonic_ac: Error on device update! ValueError: 5 is not a valid AirSwingLR

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/config/custom_components/panasonic_ac/climate.py", line 109, in update data= self._api.get_device(self._device['id']) File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 239, in get_device 'parameters': self._read_parameters(_json['parameters']) File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 374, in _read_parameters value['airSwingHorizontal'] = constants.AirSwingLR(parameters['airSwingLR']) File "/usr/local/lib/python3.7/enum.py", line 310, in call return cls.new(cls, value) File "/usr/local/lib/python3.7/enum.py", line 564, in new raise exc File "/usr/local/lib/python3.7/enum.py", line 548, in new result = cls.missing(value) File "/usr/local/lib/python3.7/enum.py", line 577, in missing raise ValueError("%r is not a valid %s" % (value, cls.name)) ValueError: 5 is not a valid AirSwingLR

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 312, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update await self.hass.async_add_executor_job(self.update) 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/panasonic_ac/climate.py", line 113, in update data = self._api.get_device(self._device['id']) File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 222, in get_device raise ResponseError(response.status_code, response.text) pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"message":"Adapter Communication error","code":5005}

Can you help me ? thanks :)

djbulsink commented 4 years ago

Hi @fabrydivx,

I've created a quick fix for this problem. Can you test it. By using this file in the custom component: https://github.com/djbulsink/panasonic_ac/blob/fix/heat-pump/custom_components/panasonic_ac/climate.py .

In the future I hope to implement the horizontal airswing.

DJ.

JanSkovhus commented 4 years ago

Hi i am getting this error:

Logger: homeassistant.components.climate Source: custom_components/panasonic_ac/climate.py:113 Integration: Climate (documentation, issues) First occurred: 1:03:40 PM (1 occurrences) Last logged: 1:03:40 PM

panasonic_ac: Error on device update! Traceback (most recent call last): File "/config/custom_components/panasonic_ac/climate.py", line 109, in update data= self._api.get_device(self._device['id']) File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 222, in get_device raise ResponseError(response.status_code, response.text) pcomfortcloud.session.ResponseError: Invalid response, status code: 400 - Data: {"message":"Bad request","code":4008}

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 312, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update await self.hass.async_add_executor_job(self.update) 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/panasonic_ac/climate.py", line 113, in update data = self._api.get_device(self._device['id']) File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 222, in get_device raise ResponseError(response.status_code, response.text) pcomfortcloud.session.ResponseError: Invalid response, status code: 400 - Data: {"message":"Bad request","code":4008}