Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

青萍空气检测仪2所有传感器不可用 #1980

Open
NightWatchMiro11 opened this issue Nov 27, 2024 · 5 comments
Open

青萍空气检测仪2所有传感器不可用 #1980

NightWatchMiro11 opened this issue Nov 27, 2024 · 5 comments

Comments

@NightWatchMiro11
Copy link

Device model / 设备型号

cgllc.airm.cgs2

Component version / 插件版本

0.7.24

HA core version / HA版本

2024.11.3

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

青萍空气检测仪2所有传感器不可用

Entity attributes / 实体属性

sensor.cgllc_cgs2_a36a_battery_level

Qingping Air Monitor 2 Battery Level
unavailable	restored: true
state_class: measurement
device_class: battery
friendly_name: Qingping Air Monitor 2 Battery Level
supported_features: 0
unit_of_measurement: %

sensor.cgllc_cgs2_a36a_charging_state

Qingping Air Monitor 2 Battery Charging State
1	friendly_name: Qingping Air Monitor 2 Battery Charging State
supported_features: 0
entity_class: MiotSensorSubEntity
parent_entity_id: sensor.cgllc_cgs2_a36a_environment
service_description: Battery
property_description: Charging State
updated_time: 2024-11-28T01:25:48.848316+08:00
battery_level: 100
battery.charging_state: 1


sensor.cgllc_cgs2_a36a_co2_density

Qingping Air Monitor 2 Environment CO2 Density
unavailable	restored: true
state_class: measurement
device_class: carbon_dioxide
icon: mdi:molecule-co2
friendly_name: Qingping Air Monitor 2 Environment CO2 Density
supported_features: 0
unit_of_measurement: ppm

sensor.cgllc_cgs2_a36a_environment

Qingping Air Monitor 2 Environment Relative Humidity
unavailable	state_class: measurement
device_class: humidity
friendly_name: Qingping Air Monitor 2 Environment Relative Humidity
supported_features: 0
unit_of_measurement: %

sensor.cgllc_cgs2_a36a_pm10_density

Qingping Air Monitor 2 Environment PM10 Density
unavailable	restored: true
device_class: pm10
friendly_name: Qingping Air Monitor 2 Environment PM10 Density
supported_features: 0
unit_of_measurement: µg/m³

sensor.cgllc_cgs2_a36a_pm25_density

Qingping Air Monitor 2 Environment PM2.5 Density
unavailable	restored: true
state_class: measurement
device_class: pm25
icon: mdi:air-filter
friendly_name: Qingping Air Monitor 2 Environment PM2.5 Density
supported_features: 0
unit_of_measurement: µg/m³

sensor.cgllc_cgs2_a36a_temperature

Qingping Air Monitor 2 Environment Temperature
unavailable	restored: true
state_class: measurement
device_class: temperature
friendly_name: Qingping Air Monitor 2 Environment Temperature
supported_features: 0
unit_of_measurement: °C

sensor.cgllc_cgs2_a36a_tvoc_density

Qingping Air Monitor 2 Environment TVOC Density
unavailable	restored: true
state_class: measurement
friendly_name: Qingping Air Monitor 2 Environment TVOC Density
supported_features: 0

Home Assistant Logs / 系统日志

此错误来自自定义集成。

日志记录器: homeassistant
来源: custom_components/xiaomi_miot/sensor.py:521
集成: Xiaomi Miot Auto (文档, 问题)
首次出现: 00:57:53 (581 次总计出现)
上次记录: 01:48:48

Error doing job: Task exception was never retrieved (None)
Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 1056, in _async_update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 962, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 544, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_miot/sensor.py", line 521, in native_value
if not prop.range_min() <= val <= prop.range_max():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<=' not supported between instances of 'int' and 'str'

@NightWatchMiro11 NightWatchMiro11 changed the title 青萍空气检测仪2 青萍空气检测仪2所有传感器不可用 Nov 27, 2024
@jurchiks1967
Copy link

jurchiks1967 commented Nov 28, 2024

Exact same problem.
In the MiHome, QingPing, QingPing+, Yandex Smart Home applications everything is OK.

@benghee
Copy link

benghee commented Nov 28, 2024

My Qingping works only reverted to 0.7.22

@NightWatchMiro11
Copy link
Author

how to revert back to old version

My Qingping works only reverted to 0.7.22

@jurchiks1967
Copy link

I hope the integration developer will be able to find a solution to the problem.

@ljsabc
Copy link

ljsabc commented Nov 30, 2024

how to revert back to old version

My Qingping works only reverted to 0.7.22

Screenshot_2024-11-30-16-06-51-477_com microsoft emmx
In the HACS menu, choose redownload and select a version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants