- 积分
- 293
- 金钱
- 204
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 293
- 金钱
- 204
- HASS币
- 0
|
yinjiong兄弟的M1插件,用了,第一个M1会显示的,第二个数据取不到:
显示:Update for sensor.m1_b fails
custom_components/sensor/PhicommAirDetector.py (ERROR)
看了一下提示,212行出错:
File "/home/homeassistant/.homeassistant/custom_components/sensor/PhicommAirDetector.py", line 212, in update jsonData = PhicommM1Sensor.deviceDatas[self.deviceId]KeyError: '1-B0:F8:93:22:79:98'
212行内容: jsonData = PhicommM1Sensor.deviceDatas[self.deviceId] self._state_attrs = { ATTR_PM25: jsonData['pm25'], ATTR_TEMPERATURE: jsonData['temperature'], ATTR_HUMIDITY: jsonData['humidity'], ATTR_HCHO: jsonData['hcho'], ATTR_BRIGHTNESS: brightness_state, ATTR_NAME: jsonData['name'],
请教这个问题出在哪里?
|
|