Coder Social home page Coder Social logo

osk2 / panasonic_smart_app Goto Github PK

View Code? Open in Web Editor NEW
83.0 83.0 28.0 307 KB

🔛 Panasonic Smart App integration for Home Assistant.

Home Page: https://osk2.github.io/panasonic_smart_app/

License: MIT License

Python 100.00%
custom-component home-assistant panasonic

panasonic_smart_app's People

Contributors

dependabot[bot] avatar mark86092 avatar osk2 avatar otzro avatar phantasweng avatar scop avatar sugoi-wada avatar wrt54g avatar yoyo930021 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

Watchers

 avatar  avatar  avatar  avatar  avatar

panasonic_smart_app's Issues

支援用電量數據

新版API提供用電量統計數據,可在裝置底下加入用電量資訊

Screen Shot 2021-08-11 at 10 13 45 AM

是說這圖表真的沒問題嗎

Support PM2.5 for AC

I am trying to add a PM2.5 sensor for ac like this commit. But probably there are some ac's that do not have a PM2.5 sensor. How do you think I should determine this(Model or Device etc...)?

sugoi-wada@5daa07f

My device
Device: CS-RX63GA2, CS-RX22GA2
Model: CZ-T006

冷氣多個實體無法使用

你好,我的冷氣是用CZ-T007連接使用,APP版本是2.0.0.33,HA版本2022.10.5
最近在接入HA後控制相關的實體幾乎都無法使用,請問我可以怎麼樣查看問題?
截圖 2022-10-30 上午12 43 24
截圖 2022-10-30 上午12 43 03
截圖 2022-10-30 上午12 42 43

一直無法正常載入(CZ-T007)

Log寫:
Failed to access API. Returned 417: {"State":"fail","StateMsg":"deviceOffline"}
然後是:
Error fetching Panasonic Smart Application data: Failed while updating device status
image
image

Cannot be operated manually, but can work in timing

System Health
version: core-2021.6.6
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
virtualenv: false
python_version: 3.8.9
os_name: Linux
os_version: 4.4.59+
arch: x86_64
timezone: Asia/Taipei

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/panasonic_smart_app/climate.py:127
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 23:23:04 (9 occurrences)
Last logged: 23:26:46

[140384862573520] 'PanasonicClimate' object has no attribute '_is_on'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 760, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call
await result
File "/config/custom_components/panasonic_smart_app/climate.py", line 127, in async_set_hvac_mode
if not self._is_on:
AttributeError: 'PanasonicClimate' object has no attribute '_is_on'

Can find Integration in Settings

After I install in hacs, 2.3.0, I rebooted HA. And I can’t find Panasonic Smart App in Settings->Integration . My HA is 12.10. HA OS 7.2.

2022-01-27 12:57:16 WARNING (SyncWorker_5) [homeassistant.loader] We found a custom integration panasonic_smart_app which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

Support device info

Devices can be more suitable for the integration which supports multiple entity

V.2.4.0 無法連線至裝置,將於下輪更新時重試

安裝完輸入帳號密碼後會顯示 "重試設定中: None"然後出現"設定失敗"
Log如下:

自行安裝整合產生錯誤。

Logger: homeassistant.config_entries
Source: custom_components/panasonic_smart_app/smartApp/init.py:262
Integration: Panasonic Smart App (documentation, issues)
First occurred: 21:55:54 (1 occurrences)
Last logged: 21:55:54

Error setting up entry [email protected] for panasonic_smart_app
Traceback (most recent call last):
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 244, in request
response = await self._session.request(
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 634, in _request
break
File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 721, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/panasonic_smart_app/init.py", line 42, in async_setup_entry
await client.login()
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 77, in login
response = await self.request(
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 58, in wrapper_call
results = await asyncio.gather(
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 262, in request
raise PanasonicDeviceOffline(f"無法連線至裝置,將於下輪更新時重試")
custom_components.panasonic_smart_app.smartApp.exceptions.PanasonicDeviceOffline: 無法連線至裝置,將於下輪更新時重試

兩台測試OK

CS-QX71FA2
CS-QX28FA2

都是使用 CZ-T007 模組
皆可正常使用,感謝!!

Improve loading time

Loading component takes too much time.

We should make some optimization to reduce loading time.

Screen Shot 2021-06-19 at 8 57 55 PM

Error setting up entry

Version: 1.3.0

更新完有點問題 也重新安裝過了 再麻煩作者幫忙看一下!感謝

Log:
Traceback (most recent call last):
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 155, in request
response = await self._session.request(
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 544, in _request
await resp.start(conn)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 905, in start
self._continue = None
File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 656, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
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_smart_app/init.py", line 43, in async_setup_entry
await client.login()
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 68, in login
response = await self.request(
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 48, in wrapper_call
results = await asyncio.gather(*[
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 159, in request
auth = headers["auth"]
KeyError: 'auth'

Support more functions

The integration only support humidifier entity for now. We should consider adding more entity

For dehumidifier, we can add tank status and timer

機型測試回報

CS-PX63FA2
CS-PX36FA2
CS-PX28FA2
CS-PX22FA2

都是使用CZ-T007模組

Swing Mode 無法設定

用GUI設定Swing Mode成自動以外的角度均會顯示錯誤.
image
但如果用遙控器設置好方向之後HA會正確顯示角度.
此狀況下一樣可調回自動但無法調成其他角度
測試冷氣: Panasonic CS-RX71GA2

錯誤:無法連線至裝置,將於下輪更新時重試

想請問osk2底下這個錯誤是屬於超量使用API的一種嗎?
近期這個問題滿常發生的...

發生後,冷氣溫度、耗電量等皆為unavailable,也無法開關機和設定。

我的冷氣是2021年式RX系列
Home Assistant OS 7.5
supervisor-2022.05.3
core-2022.4.5
Panasonic Smart App-v2.4.0

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/panasonic_smart_app/smartApp/__init__.py:262
Integration: Panasonic Smart App (documentation, issues)
First occurred: May 28, 2022, 7:56:59 AM (1 occurrences)
Last logged: May 28, 2022, 7:56:59 AM

Error setting up entry [email protected] for panasonic_smart_app
Traceback (most recent call last):
  File "/config/custom_components/panasonic_smart_app/smartApp/__init__.py", line 244, in request
    response = await self._session.request(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 634, in _request
    break
  File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/panasonic_smart_app/__init__.py", line 42, in async_setup_entry
    await client.login()
  File "/config/custom_components/panasonic_smart_app/smartApp/__init__.py", line 77, in login
    response = await self.request(
  File "/config/custom_components/panasonic_smart_app/smartApp/__init__.py", line 58, in wrapper_call
    results = await asyncio.gather(
  File "/config/custom_components/panasonic_smart_app/smartApp/__init__.py", line 262, in request
    raise PanasonicDeviceOffline(f"無法連線至裝置,將於下輪更新時重試")
custom_components.panasonic_smart_app.smartApp.exceptions.PanasonicDeviceOffline: 無法連線至裝置,將於下輪更新時重試

洗衣機的目前模式總是顯示不可用

你好我的洗衣機是NA-V178DDH.
插件的版本是v2.4.0.

使用的時候發現洗衣機不論在哪個階段目前模式都是顯示不可用
如以下照片請參考, 洗衣機在脫水中, 但在HA上面還是顯示不可用
Screenshot_20220625-090229
未命名

如果有需要提供更多資訊再麻煩告知, 謝謝

Will you make a support for Japan region?

Since we use Panasonic Smart App in Japan, it might be possible to use this in Japan If I change BASE_URL into Japanese url?
Panasonic apis in Japan are saparated to global also .

Support more select entity

By now, this component still missing following feature:

  • Fan position control(vertical) for climate
  • Motion detection for climate
  • Indicator light mode for climate

We should support these in upcoming release.

Username /password is incorrect

微信图片_20220828150650

I can use the mobile number and password to login in Android Panasonic smart app。

but can't bind in hacs. it throw a username /password is incorrect exception.

why? does sth I miss?

Error setting up entry for panasonic_smart_app

Hi Osk2:
Tks for your hard work on this project.
I got problem on startup after install your code the HACS.
Rasp-pi4
HA OS 8.1
HA core-2021.7.2
Here is log
自訂整合產生錯誤。

Logger: homeassistant.config_entries
Source: custom_components/panasonic_smart_app/smartApp/init.py:262
Integration: Panasonic Smart App (documentation, issues)
First occurred: 16:17:48 (1 occurrences)
Last logged: 16:17:48

Error setting up entry "MY ID " for panasonic_smart_app
Traceback (most recent call last):
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 244, in request
response = await self._session.request(
File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 544, in _request
await resp.start(conn)
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 905, in start
self._continue = None
File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 656, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

During handling of the above exception, another exception occurred:

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_smart_app/init.py", line 42, in async_setup_entry
await client.login()
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 77, in login
response = await self.request(
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 58, in wrapper_call
results = await asyncio.gather(
File "/config/custom_components/panasonic_smart_app/smartApp/init.py", line 262, in request
raise PanasonicDeviceOffline(f"無法連線至裝置,將於下輪更新時重試")
custom_components.panasonic_smart_app.smartApp.exceptions.PanasonicDeviceOffline: 無法連線至裝置,將於下輪更新時重試

CS-LJ50BA2 操作異常

無法即時更新冷氣狀態
按下功能都能正常操作
但面板數據啟動狀態都無反應

希望能加入洗衣機系列

希望能加入洗衣機NA系列
例如NA-V160HDH
能通知衣物洗完或行程設定
謝謝

PS. 原廠台製APP一言難盡

Failed to access API. Returned 403

連線出現錯誤
帳號密碼確定是正確的
應該是Panasinic端API有改?

自訂整合產生錯誤。
Logger: custom_components.panasonic_smart_app.smartApp
Source: custom_components/panasonic_smart_app/smartApp/__init__.py:158
Integration: Panasonic Smart App (documentation, issues)
First occurred: 11:18:37 (1 occurrences)
Last logged: 11:18:37

Failed to access API. Returned 403: 您沒有檢視此目錄或網頁的權限。

Improve logs

  1. Logs were labeled by device currently which were not detailed enough to debug. We should label log by entity type.
  2. Improve log level to make it more consistent.

延遲關機

希望有延遲關機,乾燥機體的功能

Failed to access API. Returned 429: "系統檢測您當前超量使用"

昨天開始連線不正常,一直429,IP有換過結果相同。
目前是有六台冷氣在這個帳號,在麻煩查看下,謝謝。

This error originated from a custom integration.

Logger: custom_components.panasonic_smart_app.smartApp
Source: custom_components/panasonic_smart_app/smartApp/__init__.py:159
Integration: Panasonic Smart App (documentation, issues)
First occurred: 1:09:50 PM (40 occurrences)
Last logged: 1:09:50 PM

Failed to access API. Returned 429: "系統檢測您當前超量使用"

Support more switch entity

We should add following features since Panasonic add these recently.

  • Self-clean mode
  • Anti-mold mode
  • Sleep mode

更新HA日誌出現錯誤

系統資訊
版本 core-2022.8.1
安裝類別 Home Assistant OS
開發版 false
Supervisor true
Docker true
使用者 root
虛擬環境 false
Python 版本 3.10.5
作業系統家族 Linux
作業系統版本 5.15.32-v8
CPU 架構 aarch64
時區 Asia/Taipei
設定目錄 /config
Home Assistant Supervisor
主機作業系統 Home Assistant OS 8.4
更新頻道 stable
Supervisor 版本 supervisor-2022.07.0
Agent 版本 1.2.1
Docker 版本 20.10.14
總磁碟空間 14.2 GB
已使用空間 3.4 GB
健康度 true
支援 true
板 rpi3-64
Supervisor API ok
版本 API ok

日誌內容

Logger: homeassistant.components.number
Source: components/number/init.py:119
Integration: 數字 (documentation, issues)
First occurred: 05:03:16 (4 occurrences)
Last logged: 05:03:16

custom_components.panasonic_smart_app.number::PanasonicDehumidifierOnTimer is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.
custom_components.panasonic_smart_app.number::PanasonicDehumidifierOffTimer is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.
custom_components.panasonic_smart_app.number::PanasonicACOnTimer is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.
custom_components.panasonic_smart_app.number::PanasonicACOffTimer is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.

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.