Open igogold opened 1 year ago
xiaomi_miio documentation xiaomi_miio source (message by IssueLinks)
Hey there @rytilahti, @syssi, @starkillerog, @bieniu, mind taking a look at this issue as it has been labeled with an integration (xiaomi_miio
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Same here, just updated my two monitors, and both doesn't report anything to HA now.
I confirm that the firmware has been updated to version 4.1.8_0244 today and sensor.cleargrass_air Unavailable. Reset and reconnect nothing has changed
I suppose this is being tracked upstream at https://github.com/rytilahti/python-miio/issues/1489
Confirm with 2 devices.
I also confirm this issue. Can you tell me what can be done about it at the moment?
I confirm that problem with my devices
Same problem is here...
Same problem is here...
confirm an issue
Feel free to click the subscribe button either here or on the upstream issue (where this needs to be fixed in the first place), I think there are already enough confirmations that it's an issue.
2022.8.5 not fixed
2022.8.6 not fixed
I think it would be a great idea to indicate here a link to the original problem in the Miio library https://github.com/rytilahti/python-miio/issues/1489
I confirm that problem with my device
I have written code that fixes this problem for the 4th version of the firmware, but it is not yet clear how fast it will be in the new version of the Miio library and when the Home assistant will be able to update it. we'll wait.
https://github.com/Cheaterdev/clear_grass-ha/issues/13
For those who are in a hurry, a temporary solution is written here
Please explain where to fix this file? where does he lie?
2022.8.7 not fixed
My edit has been successfully merged into the main python-miio branch, I hope the release of a new version with Miio fixes will be fast.
https://github.com/rytilahti/python-miio/issues/1489#event-7290801852
@WeslyG What you commented is: "I wrote an implementation that removes the battery field for the 4th firmware version," -- so this update simply removes battery_level info and shows air quality data, right?
If yes - then this is a "solution" similar to https://github.com/Cheaterdev/clear_grass-ha/issues/13 - and this seems like a temporal fix rather than a real solution.
After update 4.1.8._0256 access to battery property has not appeared. :(
@ildar170975
yes, unfortunately, my attempts to understand where the property has moved (renamed) did not lead to a result, because we do not know the original xiaomi protocol or their source codes. (which I'm sure can be done if desired, but it will take a very long time). Therefore, now the main task is to make the integration work again, for which you can use the battery field, which may return later after updating the device firmware.
There is a possibility that the disappearance of the battery field (or rather, the return of an exception to its request) this is nothing but a bug in the device's software.
@WeslyG
Strange that battery_level still can be acquired from ClearGrass devices by MiHome mobile app.
FW on CG was updated 11.08.22 (and I checked it with MiHome that day, it worked), the latest updates of MiHome are below:
@ildar170975 Yes, of course, they will work, because the interface of local interaction (through which we poll devices) and the interface for managing sending data to the server are different parts of the firmware application. In the internal view, everything is still functioning, but no requests are coming directly to the device via wifi. (I was recording my network traffic to this device to determine this) The local interface, as I understand it, is used to get data faster than through an external cloud. It is very likely that now, battery data will always be available only through the cloud.
battery data will always be available only through the cloud.
Using Roborock S5 vacuum robot, battery_level is available via Miio integration. Or is it a different story?
@ildar170975
Yes, it seems to me that these are slightly different stories. I tried to draw how I see the whole scheme of working with the device. And it seems to me that cloud sender has slightly different access to Internal state than local sender. I can't prove it yet, but I'll try to put a record of all traffic on port 54321 on my airQuality and see, after a while, on all incoming requests, whether there will be a battery property.
2022.9.0 not fixed
2022.9.0 not fixed
Because there is still no new release python-miio :(
Is it possible to fix this issue via HACS? It seems that owner of python-miio is not willing to update it anytime soon.
Interesting fact. I disconnected ClearGrass from power and left it. Later I found that it had transmitted data to HA for ~20mins while it was discharging. It never happens when it's powered.
Interesting fact.
I trying repeat your case, but I don't have data from ClearGrass.
I trying repeat your case, but I don't have data from ClearGrass.
same
Not that it connects to HA immediately when the poswer supply is off. But it definitely connects while the battery charge is somewhere between 100% and 0%. I just observed it when charging the device back - see the picture, two devices transmitted data for ~10 minutes (it's charging faster than discharging).
Of course, I re-added both devices to HA after upgrade to 4.1...
I've got this message.
Have you re-added it to Mi Home after firmware updating? Can you see it in Mi Home?
Have you re-added it to Mi Home after firmware updating? Can you see it in Mi Home?
😲 Thank you!!! It helped. Just re-added it in MiHome and than done the same in Xiaomi Miot Auto.
😲 Thank you!!! It helped. Just re-added it in MiHome and than done the same in Xiaomi Miot Auto.
And what do you have now?
😲 Thank you!!! It helped. Just re-added it in MiHome and than done the same in Xiaomi Miot Auto.
And what do you have now?
And what do you have now?
The same as dumbodumbos
Well, what's the point in that? Turn the power on and the problem comes back...
I tried adding the monitor to HA again.
I removed the device from MiHome, removed its integration from HA, restarted the server after updating it. Added monitor to MiHome again, added it to HA.
In MiHome, I can see all the data,
but there is still no data in HA
Well, what's the point in that? Turn the power on and the problem comes back...
I didn't turn off the power. The device, as it was powered from the outlet, remained so. Didn't switch to battery power.
I didn't turn off the power. The device, as it was powered from the outlet, remained so. Didn't switch to battery power.
In which region do you use MiHome?
I tried adding the monitor to HA again. I removed the device from MiHome, removed its integration from HA, restarted the server after updating it. Added monitor to MiHome again, added it to HA. In MiHome, I can see all the data,
but there is still no data in HA
Буду по русски ) Поставил интеграцию Xiaomi Miot Auto - далее добавил устройство - данные пришли через минуту. На питание от АКБ не переходил. Регион Китай
Deleted the device from HA and from MiHome Then connected again. No data :( And... what is "Xiaomi Miot Auto" ? I use Xiaomi Miio integration?
And... what is "Xiaomi Miot Auto" ? I use Xiaomi Miio integration?
Xiaomi Miot Auto - add it via HACS. In it, this device works correctly. https://github.com/al-one/hass-xiaomi-miot
Xiaomi Miot Auto - add it via HACS. In it, this device works correctly. https://github.com/al-one/hass-xiaomi-miot
I confirm that. Adding device from this integration and I see data. Thanks dumbodumbos .
Adding device from this integration and I see data.
Including battery level?
The problem
After the firmware upgrade of Qingping Air Monitor (cgllc.airmonitor.s1) to version 4.1.8_0244 Home Assistant can't get info anymore.
It seems air monitor resets connection with mi home after upgrade. I reconnected it back to mi home, in the mihome mobile app the monitor started to work and shows current values from screen.
I removed integration in the HA and added it back using a token. It recognized cgllc.airmonitor.s1 device and added it to HA. But now I see only one sensor entry w/o an entry from air_monitor domain. And this sensor entry just unavailable.
What version of Home Assistant Core has the issue?
core-2022.8.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Xiaomi Miio
Link to integration documentation on our website
https://www.home-assistant.io/integrations/xiaomi_miio/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
The same issue with latest xiaomi-miio (0.5.12) in command line: