I have an old Hassbian version of Home Assistant running that has all my Xiaomi devices connected and running. The motion/door/etc sensors all seem to work fine.
I recently started creating a VM version of Hass.io in VirtualBox using the vmdk provided on the website.
When I went to add my Xiaomi devices I added the entry into my configuration.yaml file and restarted. All my devices showed up! Yay. But I quickly noticed that none of them were updating. No matter what I’ve tried I can’t seem to get them to update. In the Mi Home ios app the sensors work fine and update the app.
Things I’ve tried:
Shutdown/unplug old Hassbian server so it wasn’t interfering
Restarted all components (Hass.io, unplugged Xiaomi Gateway)
Tried entering the host ip aswell as mac and key, also just key
Tried regenerating a new key in the Mi Home app under the gateway settings
Notes:
I’m using virtualbox and the network mode is set to bridged and allow all
If anyone has any other ideas of what could be going wrong I’d appreciate the help!
I think we have the same problem: Binary sensor problem
I find similar chat about it on the zigbee2mqtt github but no solution yet. Anyone else can confirm or help? A big part of my automation is based on working sensors
Edit: seeing that you’re using the xiaomi hub makes me think that it’s a home assistant problem and not a zigbee2mqtt problem…
Later today I’ll try rolling back to an older hass and report back here.
So I cleared my home-assistant.log file and hit clear under the “i” log display on the UI. Then did a restart of HASS. Nothing showed up in the logs. No entries at all. Everything else works, and the Xiaomi sensors show up at the top, but when I trigger a door sensor or motion sensor (or any other sensor) nothing is updated. However my Hassbian instance is running on my Pi in parallel right now and gets the updates no problem.
So I restarted/reset the VirtualBox Hass.io VM and let it start up. My Hue showed up, my Xiaomi sensors, broadlink switches, etc, etc. I went to the “i” and hit refresh and went to home-assistant.log via configurator and hit refresh. The only thing in the logs was this:
2019-01-06 00:23:16 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=51 from 2019-01-06 07:16:31.490527)
Should I try removing all components except the xiaomi gateway to try and isolate whether something else is causing it?
Could this be a firewall type issue (with it being in the VM)? Maybe the host machine isn’t letting the incoming sensor data come through the firewall?
He mentions running HA in a Virtualbox and that his sensors show up but don’t work. Anyone else have a solution to this problem? It seems that he thought that VirtualBox was blocking the multicast messages.
I didn’t post logs because like grifter7 there doesn’t seem to be any related activity in the logs (both hass and - in my case - the zigbee2mqtt logs). Sorry for not mentioning that. I’ve cleaned up my configuration.yaml because there were some other unrelated errors (asus device tracker, telegram notify stuff) so you can have a better look at my logs. I hope you see something that we are missing.
at the moment I’ve synced 2 binary sensors (xiaomi aqara) that don’t update. The Tradfri lamps work without any problems. There’s no other zigbee devices connected.
Oh ok. Maybe I can try that. Are you able to provide and simple steps to do that? Did you just follow the “Generic linux server” install instructions on this page: https://www.home-assistant.io/hassio/installation/ ?
Yes, it seems like a network/multicast issue but in HASSio you do not have any control of that so I’m not using it. As you do not experience any issues with your other setup I do not expect it to be a problem related to your router
I’d like to troubleshoot this further with my limited knwledge by downgrading. Now downgrading hass.io is not difficult for me (install older version on my rpi, boot et voila). However I don’t know how to install an older version of the add-on zigbee2mqtt. Can’t find information on the forums on that. Only suggestions I can find is to use snapshots but I dont have those. atm I only backup my configuration.yaml
So: how do I install an older version of an add-on?
Hi!
Did you have any luck?
I’m also trying to migrate from RPi3 to VBox on Win10. Using HASSio.
Runing Wireshark on another computer I can see the Xiaomi responding with multicast to the 10 disocevery messages and that is all I get from it.