osk2 / panasonic_smart_app Goto Github PK
View Code? Open in Web Editor NEW🔛 Panasonic Smart App integration for Home Assistant.
Home Page: https://osk2.github.io/panasonic_smart_app/
License: MIT License
🔛 Panasonic Smart App integration for Home Assistant.
Home Page: https://osk2.github.io/panasonic_smart_app/
License: MIT License
Command code should be uppercase or state will not updated.
Known effected entities:
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...)?
My device
Device: CS-RX63GA2, CS-RX22GA2
Model: CZ-T006
Can not control dehumidifier entity after shutting down.
We need rewrite logic of property available
.
您好
你的Custom Component真的很好用,真的很感謝您!
如果有新增冷氣風向風力調整功能的話會更完善
感謝!
Buzzer state doesn't change after switching.
Ha無法連線冷氣,但登入Panasonic app顯示冷氣連線正常,
不知道是否官方有更換API?
If there's offline device under account, custom component will never be loaded.
大大, 更新後冷氣的室外溫度不顯示, 急冷顯示開的關不掉, 本月耗電量也不顯示, 請查看, 謝謝
We should add correct attribute for energy sensor to enable energy dashboard of HA.
Ref: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics
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'
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
We need to handle device types which are not supported yet at this line.
Devices can be more suitable for the integration which supports multiple entity
安裝完輸入帳號密碼後會顯示 "重試設定中: 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: 無法連線至裝置,將於下輪更新時重試
We should fix this warning by adding version into manifest
Some users may need larger number of update interval since they have lots of device.
We need provide config to allow user override update interval
As we filtered out device which are not climate and humidifier, user still can't setup integration when they have washing machine registered in Smart App
CS-QX71FA2
CS-QX28FA2
都是使用 CZ-T007 模組
皆可正常使用,感謝!!
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'
The integration only support humidifier entity for now. We should consider adding more entity
For dehumidifier, we can add tank status and timer
Reported by user. Not yet tested.
Edit: May related to #1.
CS-PX63FA2
CS-PX36FA2
CS-PX28FA2
CS-PX22FA2
都是使用CZ-T007模組
從HA關掉冷氣機可以正常使用,
但從homekit關掉冷氣機則功能無效,
這樣會影響到siri使用,
另外有些功能有實體但無法開關,
如ECONAVI等等。
想請問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: 無法連線至裝置,將於下輪更新時重試
我是使用除濕機
希望能有風量的調整及PM2.5的顯示
(型號 F-Y32EH 清淨機+除濕機一體型)
謝謝
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 .
By now, this component still missing following feature:
We should support these in upcoming release.
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: 無法連線至裝置,將於下輪更新時重試
無法即時更新冷氣狀態
按下功能都能正常操作
但面板數據啟動狀態都無反應
希望能加入洗衣機NA系列
例如NA-V160HDH
能通知衣物洗完或行程設定
謝謝
PS. 原廠台製APP一言難盡
When I install this app. Can't open my Ha web UI.
Since happened from OS 7
連線出現錯誤
帳號密碼確定是正確的
應該是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: 您沒有檢視此目錄或網頁的權限。
[已解決]我的設備裡面找不到開關,也找不到像是
https://percy10442.pixnet.net/blog/post/560576446-panasonic%E5%86%B7%E6%B0%A3%E6%A8%A1%E7%B5%84%E6%95%B4%E5%90%88%E9%80%B2%E5%85%A5home-assistant
裡面介紹的基本冷氣功能,請問知道該如何解決嗎?
希望有延遲關機,乾燥機體的功能
昨天開始連線不正常,一直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: "系統檢測您當前超量使用"
This line should be correct to target humidity
To keep current humidity, we may register a sensor entity to update value
We should add following features since Panasonic add these recently.
系統資訊
版本 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.
Currently the component update all device status after sending command which cause update takes too long. We should make it update single device only to improve UX and performance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.