Giter VIP home page Giter VIP logo

panasonic_cc's People

Contributors

adebree avatar cewbdex avatar craibo avatar fceller-private avatar hwikene avatar jpwilko avatar seraphimserapis avatar shyne99 avatar sockless-coding avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

panasonic_cc's Issues

New app again

Hi i think that problem came back. I'm not sure if it's fixed in library.

Screenshot_20210121-091248_Home Assistant

WF

Nanoe switch switches 'back' in the GUI

When clicking the nanoe switch it does activate the functionality on the airco but the switch switches back to the 'off' state in the GUI (functionality stays 'on' on the airco).
To actually switch it off on the airco you need to switch twice quickly after each-other (switch if of before the GUI switch goes back by itself).

6 is no a valid AirSwingLR

It's suddenly stop working few days ago with this error and I don't know how to fix it. Please help. My AC don't have Swing LR. Only UD
image

Outdoor temperature sensor frequency

Super happy with this code, works great in Home Assistant with my Panasonic Airconditioning.

I am using the outdoor sensor, but it seems to check only once per 30 minutes:
30min

This results in value = unknown most of the time.

I enabled the force option of course. Is there any way to increase frequency?

403 Errors

I noticed 403 errors coming from pcomfortcloud so did some digging and it seems Panasonic have updated their headers again and pcomfortcloud needs to be updated to enable this plugin to start working again!

I've created the PR for the dependency here: lostfields/python-panasonic-comfort-cloud#40 so hopefully it will be merged soon and AC will once again been working! lol

SOLVED: Unable to login

I have a Panasonic Aquerea air-water heat pump that is connected to panasonic comfort cloud. I can see and control the device in the app.

When I try to login in hass (add integration) I get an error: "Aborted - unexpected error creating device":

image

Is this device not suppported? or do I need to do some special configuration somewhere?

Error after update to 1.0.19

Hi,
I upgraded to 1.0.19 and received the below error in the log when re-creating the integration (started from scratch to be sure):

2020-10-27 14:39:28 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for panasonic_cc                                                                                                                                                   
Traceback (most recent call last):                                                                                                                                                                                                                               
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 231, in async_setup                                                                                                                                                                        
    result = await component.async_setup_entry(hass, self)  # type: ignore                                                                                                                                                                                       
  File "/config/custom_components/panasonic_cc/__init__.py", line 79, in async_setup_entry                                                                                                                                                                       
    devices = await hass.async_add_executor_job(api.get_devices)                                                                                                                                                                                                 
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run                                                                                                                                                                                  
    result = self.fn(*self.args, **self.kwargs)                                                                                                                                                                                                                  
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 171, in get_devices                                                                                                                                                               
    self.login()                                                                                                                                                                                                                                                 
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 103, in login                                                                                                                                                                     
    self._get_groups()                                                                                                                                                                                                                                           
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 153, in _get_groups                                                                                                                                                               
    raise ResponseError(response.status_code, response.text)                                                                                                                                                                                                     
pcomfortcloud.session.ResponseError: Invalid response, status code: 502 - Data: <html>                                                                                                                                                                           
<head><title>502 Bad Gateway</title></head>                                                                                                                                                                                                                      
<body>                                                                                                                                                                                                                                                           
<center><h1>502 Bad Gateway</h1></center>                                                                                                                                                                                                                        
<hr><center>nginx</center>                                                                                                                                                                                                                                       
</body>                                                                                                                                                                                                                                                          
</html>

The device no longer show.
Of course I checked my username and pass, and it logs in fine via the panasonic app.

Anything I did wrong ?
I tried to revert to previous version, but not working still. Anyways the change in 1.0.19 should not have such influence.

New version

Hi. There is a new version of API. Component stopped working.

Cannot set Swing Mode

Hi, thanks for creating this awesome integration. Its working well.
But I have one issues, when trying trying to set swing mode via an automation or service call directly in HASS the command does not trigger and the following error is generated.

Error executing script. Unexpected error for call_service at pos 1: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step self, f"_async_{cv.determine_script_action(self._action)}_step" File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 623, in _async_call_service_step *self._prep_call_service_step(), blocking=True, context=self._context File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1288, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service self._platforms.values(), func, call, required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 453, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 597, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 484, in _handle_entity_call await result File "/config/custom_components/panasonic_cc/climate.py", line 134, in async_set_swing_mode await self.set_swing_mode(swing_mode) File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 426, in set_swing_mode raise NotImplementedError() NotImplementedError

Any ideas? All other features are working.
Thanks.

Current Power drops to 0 every hour

p = round((c_energy - self.last_energy_reading)*1000 / d)

I was wondering if we could revisit the included calculation for 'current power', as my power seems to update each hour at minute 33 to the correct value for the hour and then resets to zero at 5 minutes past the hour, so half of each hour is zero:
image

I think it would be better to see something like this as the standard output:

image

Based on the output from pcomfortcloud, fixed value for each hour:

`$ pcomfortcloud $user $passwd history 1 Day 20210728
id : xxxxxxxxxxxx
parameters
currencyUnit : $
energyConsumption : 12.600000000000001
estimatedCost : 0.0
historyDataList :
dataNumber : 0
consumption : 0.1
cost : 0.0
averageSettingTemp: 17.0
averageInsideTemp: 16.5
averageOutsideTemp: 6.25

    dataNumber       : 1
    consumption      : 1.1
    cost             : 0.0
    averageSettingTemp: 17.0
    averageInsideTemp: 17.0
    averageOutsideTemp: 6.5

    dataNumber       : 2
    consumption      : 1.0
    cost             : 0.0
    averageSettingTemp: 17.0
    averageInsideTemp: 17.0
    averageOutsideTemp: 7.75

    dataNumber       : 3
    consumption      : 0.9
    cost             : 0.0
    averageSettingTemp: 17.0
    averageInsideTemp: 17.0
    averageOutsideTemp: 7.5

    dataNumber       : 4
    consumption      : 0.9
    cost             : 0.0
    averageSettingTemp: 17.0
    averageInsideTemp: 17.0
    averageOutsideTemp: 9.75

    dataNumber       : 5
    consumption      : 0.9
    cost             : 0.0
    averageSettingTemp: 17.0
    averageInsideTemp: 16.75
    averageOutsideTemp: 10.25

    dataNumber       : 6
    consumption      : 0.9
    cost             : 0.0
    averageSettingTemp: 18.5
    averageInsideTemp: 18.25
    averageOutsideTemp: 10.0

    dataNumber       : 7
    consumption      : 2.4
    cost             : 0.0
    averageSettingTemp: 18.5
    averageInsideTemp: 17.75
    averageOutsideTemp: 10.0

    dataNumber       : 8
    consumption      : 1.1
    cost             : 0.0
    averageSettingTemp: 19.25
    averageInsideTemp: 18.75
    averageOutsideTemp: 10.75

    dataNumber       : 9
    consumption      : 3.3
    cost             : 0.0
    averageSettingTemp: 19.5
    averageInsideTemp: 18.75
    averageOutsideTemp: 10.0

    dataNumber       : 10
    consumption      : 0.0
    cost             : 0.0
    averageSettingTemp: 19.5
    averageInsideTemp: 19.0
    averageOutsideTemp: 9.0

    dataNumber       : 11
    consumption      : -255
    cost             : -255
    averageSettingTemp: -255
    averageInsideTemp: -255
    averageOutsideTemp: -255

    dataNumber       : 12
    consumption      : -255
    cost             : -255
    averageSettingTemp: -255
    averageInsideTemp: -255
    averageOutsideTemp: -255`

Temperature shows 126

Hi,

The temperature in Home Assistant shows constantly 126 degree.

How can I fix this?

Temperature "hangs"

I noticed this more frequently over the last weeks. The temperature just suddenly stops to update, both indoor and outdoor temp. Anyone else noticed that?

From the HASS docker logs I notice this:

2021-02-14 20:14:07 WARNING (MainThread) [homeassistant.components.switch] Updating panasonic_cc switch took longer than the scheduled update interval 0:00:30

However I've noticed these when it's working aswell....

The comfort cloud app reports new temperature as it changes, so there must be something else? Restarting HASS fixes it for a while

Problem with login

Hi,

Yesterday everything was ok, but today integration doesn't work. I've tried to remove integration from Home Assistant and create it again, but error in log file is the same:

2020-05-29 13:06:16 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for panasonic_cc doing I/O at custom_components/panasonic_cc/panasonic.py, line 49: self.api.login()
2020-05-29 13:06:18 WARNING (MainThread) [homeassistant.util.async
] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for panasonic_cc doing I/O at custom_components/panasonic_cc/panasonic.py, line 50: data = self._api.get_device(self.id)
2020-05-29 13:06:19 WARNING (MainThread) [custom_components.panasonic_cc] Failed to setup device: Salon

Energy sensor

Hello! I dont get the energy consumption to show, I have toggled "Enable daily energy sensor" and restarted HA
What am I doing wrong?
In the Panasonic app I can see power consumption per day
It also looks that if I´m logged in with HA i cant login in the app. It loooks like only one user can be logged in at same time?

403 Forbidden

suddenly stopped working with 403 code. the mobile app still works fine.

2021-06-08 09:21:57 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry  for panasonic_cc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/panasonic_cc/__init__.py", line 79, in async_setup_entry
    devices = await hass.async_add_executor_job(api.get_devices)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 172, in get_devices
    self.login()
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 99, in login
    self._create_token()
  File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 132, in _create_token
    raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

trying to use with homekit

Hi,

I would love to use this to connect my panasonic airco to apple's homekit. The integration seems to work, I can switch the airco off, but when I select the cool mode, the preset is not set, and the airco is not doing anything. Any way around this ?

thanks !

edd--

Unable to add integration

Hi, my integration stopped working, I've tried readding it, now it gives this error:

2020-09-28 11:27:41 ERROR (MainThread) [custom_components.panasonic_cc.config_flow] Unexpected error creating device Traceback (most recent call last): File "/config/custom_components/panasonic_cc/config_flow.py", line 50, in _create_device devices = await self.hass.async_add_executor_job(api.get_devices) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 177, in get_devices for device in group['deviceIdList']: KeyError: 'deviceIdList'

Local support

Me and a few people have successfully got our Panasonic AC local and away from cloud comfort.

It works faster, it's more reliable, it's local and it has the same climate integration and features you would expect.

And thanks to espthings for designing the circuit board with esp32 and logic converter it can be connected to the AC plug and play. No more AC going offline due to a version mismatch or an API changing!

Yesterday I finished designing the case for it. (Still need to get some blue filement though)

I would highly recommend checking it out. Its more then worth it!

20210812_010304

20210812_001321

Integration wants username/password despite it being available in the configuration.yaml

I've installed the integration via HACS, and added the panasonic_cc section, including my username and password fields to my configuration.yaml.

The integration doesn't show up after a restart unfortunately, and when adding via the + button, it immediately asks for a username/password.

Am I doing something wrong here?

Update
It's still not working, but I also tried logging in. This result with 'Aborted' (could be because I have no devices yet, they are currently installing them as we speak, but I can't tell from the error ;-)).

2nd Update
I gave up on running it via configuration.yaml. It just doesn't work, even with my airconditioners installed in Comfort Cloud.

The login via the prompt does work now, now that I have a few devices in Comfort Cloud.

After installing I got "Bad request" 400 in Log

Hello,

Log Details (WARNING)
Logger: custom_components.panasonic_cc
Source: custom_components/panasonic_cc/__init__.py:73
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 8:21:09 PM (1 occurrences)
Last logged: 8:21:09 PM

Failed to setup device: A2W (Invalid response, status code: 400 - Data: {"message":"Bad request","code":4008})

Can you help me ?

Does not work with air to water heat pump

Hi I have a Panasonic WH-MXC12H9E9 air to water heat pump. I got the integration into home assistant but no values was sent from the heat pump. I have set up the panasonic app and it work fine, giving outdoor temperature, set point and consuption data

Login page not shown

I Have installed Panasonic Comfort Cloud integration using HACS. on a Rasp Pi4 running Home Assistant.
I cant find the login to Comfort Cloud.
In the box under HACS with the Panasonic Comfort Cloud, in the right lower corner there is 3 dots. Is this where the login is ? I only have "Information,update information ...."

Best regards Claus

Bad request code 4008

Now I get this.

Log Details (ERROR)
Logger: homeassistant.config_entries
Source: custom_components/panasonic_cc/panasonic.py:50
First occurred: 10:54:02 PM (3 occurrences)
Last logged: 11:06:06 PM

Error setting up entry for panasonic_cc
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/panasonic.py", line 46, in do_update
data= await self.hass.async_add_executor_job(self._api.get_device,self.id)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 268, 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/config_entries.py", line 217, in async_setup
hass, self
File "/config/custom_components/panasonic_cc/init.py", line 69, in async_setup_entry
await api_device.update()
File "/config/custom_components/panasonic_cc/panasonic.py", line 42, in update
await self.do_update()
File "/config/custom_components/panasonic_cc/panasonic.py", line 50, in do_update
data = self._api.get_device(self.id)
File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 268, in get_device
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 400 - Data: {"message":"Bad request","code":4008}

Update interval takes longer then expected

I get this message. In just a few days this message is given 4700 times. im not really sure how big of a deal this is but the integration is requesting to many updates i guess...

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:602
Integration: Sensor (documentation, issues)
First occurred: 9:38:41 (239 occurrences)
Last logged: 11:37:42

Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30

I would like it fixed if possible. This doesnt seem very good. Could this be the outside temperature sensor btw? That one is most of the time not working. (saying unavailable)

Exposing built-in Summerhouse mode

Hi,
Thank you for this great integration.
I have a unit CS-HZ25UKE, which has a "summer house mode". This essentially allows to have low temperature maintained in summerhouses to avoid mold/frost during the winter.

There are two summer house mode selected under "device list":

"+8-15°C HEAT" allows to choose any target temperature between + 8 and +15°C. Forces fan mode automatically as "HIGH".
"+8 or 10°C HEAT" allows to choose any target temperature between + 8 or+10°C. Forces fan mode automatically as "HIGH".
I do no know the point of the second one, and the first one is the only one that makes sense.
See Screenshots of the app attached.

Would it be possible to expose this mode as part of the integration and have it available as an operation mode?

Note: It is possible to "imitate" this by calling the services "climate.set_temperature" to 8 and "climate.set_hvac_mode" to "heat" and climate.set_fan_mode to "high" which is what I do as part of an automation when temperature inside get too low.

Screenshot_20201221-092918_Comfort Cloud
Screenshot_20201221-092910_Comfort Cloud
Screenshot_20201221-093050_Comfort Cloud

Fan Speed in HomeKit

I’ve configured this integration and can access the mode (cool/heat/auto) and temperature through HomeKit but the fan speed is missing even though it’s available in home assistant. Any ideas?

Failed to setup device: Bedroom AC (5 is not a valid AirSwingLR)

I got this issue on hassio Log:

Logger: custom_components.panasonic_cc
Source: custom_components/panasonic_cc/init.py:73
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 12:40:37 AM (1 occurrences)
Last logged: 12:40:37 AM

Failed to setup device: Bedroom AC (5 is not a valid AirSwingLR)

Error after update Hassio System to version 4.13. Home Assistant version 0.114.4

Component has stoped working. I got this in logs: 2020-09-17 18:04:48 ERROR (MainThread) [custom_components.panasonic_cc.config_flow] Unexpected error creating device
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/config_flow.py", line 50, in _create_device
devices = await self.hass.async_add_executor_job(api.get_devices)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 177, in get_devices
for device in group['deviceIdList']:
KeyError: 'deviceIdList'

Reinstallation didnt't help.

Unknown error occurred while logging in

Since last OS 6.0 update of Home Assistant, Panasonic Comfort Cloud is unable to connect.

After that, there were some more updates but it still did not work (core-2021.6.4, Panasonic Comfort Cloud v1.0.30). I removed the Integration and tried to readd it. While entering my credentials, I get an 'Unknown error occurred' message.
BTW, the iphone Panasonic Comfort Cloud app does work using the same credentials..

This error originated from a custom integration.

Logger: aiohttp.server
Source: custom_components/panasonic_cc/config_flow.py:44
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 2:43:34 PM (2 occurrences)
Last logged: 2:47:18 PM

Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 76, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 135, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 202, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/panasonic_cc/config_flow.py", line 85, in async_step_user
return await self._create_device(user_input[CONF_USERNAME], user_input[CONF_PASSWORD])
File "/config/custom_components/panasonic_cc/config_flow.py", line 74, in _create_device
return await self._create_entry(username, password)
File "/config/custom_components/panasonic_cc/config_flow.py", line 44, in _create_entry
if entry.data[KEY_DOMAIN] == PANASONIC_DOMAIN:
KeyError: 'domain'

Cannot get integration to show

Hi,
Not sure what I'm doing wrong, but I can't seem to get the integration working at all. I've installed it via HACS but now I can't see anything under integrations or entities.

Login abort message

When I use my credentials for logging in the integration in Home Assistant it gives me an abort message each time.

Error creating device

Had an issue with Comfort Cloud integration so I went to re-install it, and I’m now getting an issue creating the device.

This error originated from a custom integration.

Logger: custom_components.panasonic_cc.config_flow
Source: custom_components/panasonic_cc/config_flow.py:60
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 6:56:16 PM (2 occurrences)
Last logged: 7:53:41 PM

Unexpected error creating device
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/config_flow.py", line 60, in _create_device
devices = await self.hass.async_add_executor_job(api.get_devices)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 172, in get_devices
self.login()
File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 99, in login
self._create_token()
File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 132, in _create_token
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data:

<title>403 Forbidden</title>

403 Forbidden

Lots of errors: Updating panasonic_cc sensor took longer than the scheduled update interval

Good morning,

I noticed that the sensors for power, temperature, etc. had not been updated for ~3days (while the attributes of the climate entity still are?!) and seeing this in the log over 10000 times in less than four days:

2021-08-03 08:53:27 WARNING (MainThread) [homeassistant.components.sensor] Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30
2021-08-03 08:53:57 WARNING (MainThread) [homeassistant.components.sensor] Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30
2021-08-03 08:54:27 WARNING (MainThread) [homeassistant.components.sensor] Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30
2021-08-03 08:54:57 WARNING (MainThread) [homeassistant.components.sensor] Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30
2021-08-03 08:55:27 WARNING (MainThread) [homeassistant.components.sensor] Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30

I don't know if the Panasonic cloud service is maxed out or if it's a problem on my side. Anyone else seeing this?

Unavailable and cannot reinstall

today the heat pump became unavailable, and even though it is accessible in the comfort cloud android app, it has not come back up in HA.
I removed all and reinstalled in HACS as I had done the first time, and when I enter my user name and password I get the message
"Aborted
Unexpected error creating device."

I even created a new HA and tried to install ,but have the same issue of unexpected error.

it seems broken, and this was the main reason for getting HA

Account login aborted with no error message

Hi,

I am trying to add the integration to my HA setup:
Operating System: Home Assistant OS 5.12
Core Version: core-2021.3.0

The HACS repository has been installed OK.
But when trying to log in wuth my Panasonic account, I just get a popup with the title "Aborted", but no further info as to a reason for aborting the setup.
I have been looking through various logs, but haven't been able to find anything related to this.

Are there any known issues with the latest release of this component, and the above versions of HA?

How to use horizontal swing?

I love this integration in combination with the simple thermometer.
I got everything working but I just cannot figure out how to add the horizontal swing to the simple thermometer.
This is my current card config:

    - type: 'custom:simple-thermostat'
      entity: climate.wohnzimmer
      header:
        name: Wohnzimmer
      control:
        hvac: true
        preset:
          _hide_when_off: true
        swing: 
          _hide_when_off: true
        fan: 
          _hide_when_off: true

What do I need to add to show a control for the horizontal swing?

Thanks for your help!

Login error

Hi, this looks very nice, just what I was looking for, but I do get an error when trying to login.
Keep up the good work.
Regards Jan

Log Details (ERROR)
Logger: custom_components.panasonic_cc.config_flow
Source: custom_components/panasonic_cc/config_flow.py:42
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 8:18:55 PM (2 occurrences)
Last logged: 8:25:49 PM

Unexpected error creating device
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/config_flow.py", line 42, in _create_device
devices = await self.hass.async_add_executor_job(api.get_devices)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 171, in get_devices
self.login()
File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 103, in login
self._get_groups()
File "/usr/local/lib/python3.7/site-packages/pcomfortcloud/session.py", line 153, in _get_groups
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 401 - Data: {"message":"Please login again and confirm the privacy notice","code":4102}

502 Bad Gateway

Getting this error since today :

Logger: homeassistant.config_entries
Source: custom_components/panasonic_cc/__init__.py:79
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 8:32:42 (1 occurrences)
Last logged: 8:32:42

Error setting up entry for panasonic_cc
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/panasonic_cc/__init__.py", line 79, in async_setup_entry
    devices = await hass.async_add_executor_job(api.get_devices)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 172, in get_devices
    self.login()
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 99, in login
    self._create_token()
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 132, in _create_token
    raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 502 - Data: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>

Failed to setup device for AC with new mainboard (other 4 still work, 5th one only with panasonic app)

I've had the main board of one of my AC's replaced (because of duplicate serial number). But not what device fails to register with panasonic_cc (works in de panasonic app though).

Here is the full error I got:

2020-09-18 10:12:19 WARNING (MainThread) [custom_components.panasonic_cc] Failed to setup device: Airco Daniel (Invalid response, status code: 404 - Data: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>404 Not found</title>
  <style type="text/css">
    <!--
    BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}
    H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
    PRE, TT {border: 1px dotted #525D76}
    A {color : black;}A.name {color : black;}
    -->
  </style>
 </head>
 <body>
   <h1>404 Not found</h1>
   <p>
    The page you tried to access does not exist.
   </p>
 </body>
</html>
)

Adapter Communication Error

Hi

On a restart today, my connection to two of my Panasonic Air-Conditioners started giving the following error:

`2021-03-20 12:15:34 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139782777837312] Invalid response, status code: 500 - Data: {"message":"Adapter Communication error","code":5005}
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/panasonic.py", line 21, in wrapper_call
func(*args, **kwargs)
File "/config/custom_components/panasonic_cc/panasonic.py", line 346, in set_device
self._api.set_device(
File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 389, in set_device
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"message":"Adapter Communication error","code":5005}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 642, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 681, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 679, in _handle_entity_call
await result
File "/config/custom_components/panasonic_cc/climate.py", line 126, in async_set_hvac_mode
await self._api.turn_off()
File "/config/custom_components/panasonic_cc/panasonic.py", line 227, in turn_off
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/panasonic_cc/panasonic.py", line 24, in wrapper_call
func(*args, **kwargs)
File "/config/custom_components/panasonic_cc/panasonic.py", line 346, in set_device
self._api.set_device(
File "/usr/local/lib/python3.8/site-packages/pcomfortcloud/session.py", line 389, in set_device
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 500 - Data: {"message":"Adapter Communication error","code":5005}`

Any support would be appreciated.

Simon.

Eco preset / quiet mode swapped

My unit (CS-RZ25WKRW) has a quiet mode for fan speed as well as an eco function

Setting the eco mode in the panasonic app turns on the eco light however setting it in this integration turns on quiet mode for the fan. I don't seem to have any other options to turn on Eco mode.
Is this an known issue or something that can be added?
I'm using the CZ-TACG1 adaptor if it is related to that.

Problem getting current power usage

Has something changed again?

I am getting this under Logs

Source: helpers/entity.py:657
First occurred: 16:08:52 (1 occurrences)
Last logged: 16:08:52

Update of sensor.spisestue_daily_energy is taking over 10 seconds
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:692
Integration: Sensor (documentation, issues)
First occurred: 16:13:43 (1 occurrences)
Last logged: 16:13:43

Updating panasonic_cc sensor took longer than the scheduled update interval 0:00:30

I can still control the heatpump.

Fan Speed Support

Can add support for fan speed. New version of Panasonic Comfort App added this feature. Also added Swing Left-Right and Up-Down.

Error in rounding current power

As of v1.0.21 there seems to be an error in rounding the current power.

Stacktrace:

2020-12-22 14:06:20 ERROR (MainThread) [homeassistant.config_entries] Error sett                                                                                                             ing up entry  for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 236, in as                                                                                                             ync_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", lin                                                                                                             e 67, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line                                                                                                              140, in async_setup_entry
    platform = await async_prepare_setup_platform(
  File "/usr/src/homeassistant/homeassistant/setup.py", line 298, in async_prepa                                                                                                             re_setup_platform
    platform = integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 424, in get_platfo                                                                                                             rm
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 429, in _import_pl                                                                                                             atform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_mod                                                                                                             ule
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 779, in exec_module
  File "<frozen importlib._bootstrap_external>", line 916, in get_code
  File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/panasonic_cc/sensor.py", line 130
    return round(self._api.current_power,2)M,|m,

Replacing line 130 in sensors.py from:

return round(self._api.current_power,2)M,|m,

to

return round(self._api.current_power,2)

made everything work again (or so it seams).

digits decimals float

Hi, upon adding the integration and placing the daily energy usage into lovelace, I can see there are lot more digits than necessary (float error).
See below:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.