osk2 / panasonic_smart_app

🔛 Panasonic Smart App integration for Home Assistant.
https://osk2.github.io/panasonic_smart_app/
MIT License
92 stars 32 forks source link

除濕機無法顯示實體 #102

Closed yiminglee790514 closed 3 months ago

yiminglee790514 commented 9 months ago

123 456 789 000

earthqmei commented 9 months ago

我也有這個問題,已經更新最新版,原廠的App是可以用的

IMG_5264

Log顯示的錯誤也相同

Logger: homeassistant.setup Source: setup.py:404 First occurred: 22:38:31 (2 occurrences) Last logged: 22:43:47

Unable to prepare setup for platform 'panasonic_smart_app.humidifier': Platform not found (cannot import name 'HumidiferDeviceClass' from 'homeassistant.components.humidifier' (/usr/src/homeassistant/homeassistant/components/humidifier/init.py)).

osk2 commented 9 months ago

v2.8.1 有點問題,暫時先請各位手動退回 v2.8.0

yiminglee790514 commented 9 months ago

v2.8.0也不行 111 222

eric2q commented 9 months ago

我觀察到是HA core 2024.2.X的問題,退回2024.1.6,就恢復正常了

earthqmei commented 9 months ago

哈哈 我也是喔,原本在2024.1都沒有問題,是升到2024.2才出現問題

有時就想,或許穩定就好,不用一直更新?

yiminglee790514 commented 9 months ago

更新後已解決 777 888

earthqmei commented 9 months ago

我更新後還是不行呢 IMG_5265 image

Logger: homeassistant.setup Source: setup.py:404 First occurred: 10:53:24 (2 occurrences) Last logged: 22:33:21

Unable to prepare setup for platform 'panasonic_smart_app.humidifier': Platform not found (cannot import name 'HumidiferDeviceClass' from 'homeassistant.components.humidifier' (/usr/src/homeassistant/homeassistant/components/humidifier/init.py)).

osk2 commented 9 months ago

可以試試清掉套件快取

rm -r /config/custom_components/panasonic_smart_app/__pycache__

之後重開 HA

earthqmei commented 9 months ago

嘗試兩次用ssh去刪除快取、重啟、刪掉裝置重新登入都不行。後來我從HACS整個刪掉,確認cache也都不存在了,再重頭安裝就沒問題了。感謝協助!

umas2019 commented 8 months ago

我這邊也有一樣的問題,從HACS整個刪掉也不行,我看的到一台除濕機,另一台就沒辦法。但從官方的APP是OK的

osk2 commented 8 months ago

我這邊也有一樣的問題,從HACS整個刪掉也不行,我看的到一台除濕機,另一台就沒辦法。但從官方的APP是OK的

單一台除濕機消失就不是這個 issue 的問題了,看看日誌裡面有什麼錯誤?

umas2019 commented 8 months ago

Logger: homeassistant.components.sensor Source: helpers/entity_platform.py:352 Integration: 感測器 (documentation, issues) First occurred: 上午12:53:02 (1 occurrences) Last logged: 上午12:53:02

Error while setting up panasonic_smart_app platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 352, in _async_setup_platform await asyncio.gather(pending) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 533, in async_add_entities await asyncio.gather(tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 782, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1325, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1049, in async_calculate_state attr.update(self.state_attributes or {}) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 453, in state_attributes raise ValueError( ValueError: Entity sensor.fang_jian_chu_shi_ji_ben_yue_hao_dian_liang (<class 'custom_components.panasonic_smart_app.sensor.PanasonicEnergySensor'>) with state_class total_increasing has set last_reset. Setting last_reset for entities with state_class other than 'total' is not supported. Please update your configuration if state_class is manually configured.

osk2 commented 8 months ago

這個問題在 v2.8.1 修正了,不幸的是又出現新的問題被我暫時撤回了

目前可以先照著這裡的說明自行修正

umas2019 commented 8 months ago

這個問題在 v2.8.1 修正了,不幸的是又出現新的問題被我暫時撤回了

目前可以先照著這裡的說明自行修正

按照那篇的方法已成功解決解決問題,至少目前可以做,原來可以在另一篇找到解決,感謝您的辛苦

siyb2002 commented 6 months ago

嘗試兩次用ssh去刪除快取、重啟、刪掉裝置重新登入都不行。後來我從HACS整個刪掉,確認cache也都不存在了,再重頭安裝就沒問題了。感謝協助!

請問有其他人這方法成功的嗎?? 我刪掉從 2.7試到2.81 beta都還是不行

osk2 commented 4 months ago

除濕機實體消失的各位可以試試 v2.8.2