JohNan/homeassistant-wellbeing

Support other devices

Closed this issue · 10 comments

I need the json payload for that device to be able to know if it can be supported. Try the integration and enable debug logs and post the payload.

我需要該裝置的json有效載荷,以便能夠知道它是否可以支援。 嘗試整合並啟用除錯日誌並釋出有效負載。

How do I provide it? I am a novice

I caught the physical device but can't use the buttons

IMG_0282
IMG_0281
IMG_0280

any news here?

這裡有什麼消息嗎?

Where do I need to get the information?

這裡有什麼消息嗎?

記錄器: homeassistant.components.switch
來源: helpers/entity_platform.py:350
整合: 開關 (相關文件, 問題)
首次發生: 上午1:10:39 (1 事件)
上次登入: 上午1:10:39

Error while setting up wellbeing platform for switch
Traceback (most recent call last):
File "/config/custom_components/wellbeing/switch.py", line 15, in async_setup_entry
WellbeingSwitch(coordinator, entry, pnc_id, "Ionizer"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wellbeing/switch.py", line 26, in init
self._is_on = self.get_entity.state
^^^^^^^^^^^^^^^
File "/config/custom_components/wellbeing/entity.py", line 28, in get_entity
return self.get_appliance.get_entity(self.entity_type, self.entity_attr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/wellbeing/api.py", line 231, in get_entity
return next(
^^^^^
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform
await asyncio.shield(awaitable)
RuntimeError: coroutine raised StopIteration

記錄器: homeassistant.components.fan
來源: helpers/entity_platform.py:576
整合: 風扇 (相關文件, 問題)
首次發生: 上午1:10:39 (1 事件)
上次登入: 上午1:10:39

Error adding entity fan.wellbeing_kong_qi_qing_jing_ji_fanspeed for domain fan with platform wellbeing
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 576, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 865, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1328, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 992, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1113, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1052, in __async_calculate_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 427, in state_attributes
data[ATTR_PERCENTAGE_STEP] = self.percentage_step
^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 384, in percentage_step
return 100 / self.speed_count
~~~~^~~~~~~~~~~~~~~~~~
ZeroDivisionError: division by zero

Enable logging and post the results here

logger:
  logs:
    pyelectroluxgroup.appliance: debug

Here’s the translation: “So, is this what you need? Do I need to put the following code: logger: logs: pyelectroluxgroup.appliance: debug into the configuration.yaml file?” Johan Nenzén @.>於 2024年8月16日 週五,上午6:18寫道:

Closed #80 <#80> as completed. — Reply to this email directly, view it on GitHub <#80 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBLXU7Y3NHTNYTFY23YPIADZRUSJ7AVCNFSM6AAAAABDBZV2POVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTHEYDGNBWGQ2DSMY . You are receiving this because you authored the thread.Message ID: @.
com>

Try the latest version version 1.2.3 and let me know how it works out. If it still doesn't work you can enable debug logging on the integration instead. It should now log more info than before.