Live data from Hacker News

Xiaomi Home Integration for Home Assistant

github.com

151–160 of 344 posts

Re: Xiaomi Home Integration for Home Assistant

#151

Earlier quoted context omitted.

That’s why I’m sticking to Zigbee as much as possible. The only place where there’s an internet connection is at the Home Assistant computer which has a Zigbee USB stick.

Slightly off topic but I just bought an inexpensive water leak monitor set and it uses LoRa — I’ve had range problems with other bands “Extremely Long Range: Powered by LoRa technology, the long-range low-power system offers the industry’s longest receiving range (1/4 mile). Areas such as basements and sheds connect up to 100 sensors to deliver product information smoothly.”

LoRa sounds like a good idea for water sensing in particular. Water catches all radio signals at 2.4 GHz and turns the waves into heat (that's why microwave ovens work, after all), so spread-spectrum transmission seems like a good way around that issue. I would test the transmission range in a bathtub.

Re: Xiaomi Home Integration for Home Assistant

#152

Earlier quoted context omitted.

I'm not buying any device that's not 3, everything else turns into a brick as soon as there's some larger change. I have some older Google Speakers, and while they seemed to be 2, after being powered off for long enough they can't be set up again, not even with internet access since their firmware was also outdated and the app isn't able to set them up again.

> I'm not buying any device that's not 3 Same here. My gold standard for this is hardware that comes with the open source Tasmota firmware (or which can be flashed to Tasmota). All 75 light switches in our new house run Tasmota firmware and to me it's the perfect combination of simple, flexible and yet deeply powerful. Devices can be controlled via MQTT, web requests, webUI console or serial and not only does it avoi…

Hi,

I'm using Kasa switches and not sure they can be flashed?

Can you provide couple links with the switch and the firmware you used. Thanks

Re: Xiaomi Home Integration for Home Assistant

#153
post #145

Earlier quoted context omitted.

I got some of those Yeelight ones (gen 1/gray plastic and gen 2/white plastic!) but my experience has been really bad. Even if their app allows you to enable local mode it's laggy and just... stops working after a while, it also seems to break if it can't reach xiaomi servers (pihole). Wondering how you got yours to work, mine are just trash at this point and i've since switched to proper local devices.

Zero lag. If they lose power they revert to cool white. All local. Checked home assistant and its direct integration (yeelight)...no mqtt. And looked up my old notes - copied in below though don't recall details of what I did. Suspect maybe I used the python stuff just to check that lan is enabled rather than editing ------ https://github.com/Squachen/micloud pip install micloud miiocli device --ip 192.168.1.88 --tok…

Just to confirm, you are using the Yeelight app for this setup? On android there's Yeelight Classic (red icon), Yeelight (purple icon), Yeelight Pro (black icon) and the Xiaomi Home one. I think some of my issue might have been that region lock thing that kept changing a few years back (someone mentioned in another parent here). I remember setting it up on the Yeelight (red) but it eventually had me switch to Xiaomi Home (green app) which then required re-setting it up on another cloud region, which then broke again after a while.

I'll give this python script a try for sure, glad to know you got yours to properly work!

Re: Xiaomi Home Integration for Home Assistant

#154
post #121

Earlier quoted context omitted.

“Near my network” suggested it was a security issue. Are there other companies running a cloud-based api for garage doors that don’t charge? It does cost money to keep the servers going. I personally just took a cheap remote, attached its button to an esp32 with a relay, put on mqtt, and interfaced it with homebridge. Now it shows up in the home app. Works well! iCloud via Apple TV connects it to the internet securel…

Nope, my concern wasn’t security, it was corporate greed

I’m curious, do you expect them to run and maintain servers for free?

Re: Xiaomi Home Integration for Home Assistant

#155
post #144
post #129

Earlier quoted context omitted.

Home Assistant itself falls into category 2, with some integrations/utilities in category 1. The amount of stuff it pulls from the mothership and GitHub is crazy. I wish it were local-only by default.

Yes. This is frustrating. Notable examples: Updating an ESPHome device config requires network to build/compile the image. [0] Viewing your Integrations page leaks a list of integrations you are using to "brands.home-assistant.io". [1] [0] https://community.home-assistant.io/t/esphome-completely-off... [1] https://community.home-assistant.io/t/wth-why-are-brand-icon...

Is the certificate for that domain pinned? If not, just host it locally. In fact, I'm going to try doing that. Have you already checked the Docs? Somebody probably already published a gist somewhere with the needed path

Re: Xiaomi Home Integration for Home Assistant

#156
post #94

Earlier quoted context omitted.

Not all manufacturers. At AirGradient, all our air quality monitors can completely run local. Our official firmware is on GitHub and people could even flash their own (adjusted) version. We believe this is how IoT devices should be and are very vocal about it. So I think there are a few manufacturers that think different.

If those devices ran off POE they would be divine. Trying to keep walls looking clean in our custom build and usb power is a drag.

The keywords you're looking for are 'active PoE splitter'.

Re: Xiaomi Home Integration for Home Assistant

#157

I'll be the one to plug Valetudo in this thread I guess. Primitively, it replaces the cloud functionality on-device for robot vacuums (see supported models) and replaces it with local services that run offline and can connect to Home Assistant easily. I will never buy another robot vacuum without Valetudo support as long as that project lives. It's great. https://valetudo.cloud/

Yeah I almost installed it, ripped apart my vacuum, just to realize there are many different roborock S7 versions with different SoCs, and my variant wasn't supported. Also roborock doesn't even support scheduled cleaning without cloud :(

Re: Xiaomi Home Integration for Home Assistant

#158
post #40

Earlier quoted context omitted.

I think (some correct me) you can group most devices into the following categories: 1. Device requires internet for setup, and for usage 2. Device requires internet for setup, but after that don't need it anymore 3. Device can be fully setup without internet, and used without internet Personally I aim to be fully within 3 as much as I can, but some devices are really hard to find at a good price point that falls into…

I'm not buying any device that's not 3, everything else turns into a brick as soon as there's some larger change. I have some older Google Speakers, and while they seemed to be 2, after being powered off for long enough they can't be set up again, not even with internet access since their firmware was also outdated and the app isn't able to set them up again.

Total stab in the dark here, but it could be the local time on the device. Your local clock needs to be relatively close to the actual clock. I've run into this more than a few times with an old Surface Tablet I seldom use. Powered off/battery dead, clock gets out of sync. Power on, cannot get online because everything is TLS/SSL now, even clock sync. Cannot even sync the clock, because of certificate issues. Manually set the time to approximately correct time has resolved my issues with long powered off devices. That is, assuming of course, the _ability_ to set the time on the device.

Re: Xiaomi Home Integration for Home Assistant

#159

Just use ZigBee or Z-wave devices and then use a bridge to connect to HA. Anything else is just WiFi and vendor lockdown

Personal anecdote but at least for me WiFi devices are significantly more reliable and there exists good brands that don't have any vendor lockdown, such as Shelly or Sonoff. Others can do Tasmota. So you shouldn't go around discarding it just because it's wifi. I live in a concrete and metal house. My WiFi coverage is spotless with several APs around the house. Can't really do that with ZigBee. Almost all of my zigb…

I'm just worried about OTA updates. Shelly and Sonoff are playing nice now. They might not always.

Plus, unless you fence off your wifi device from the router, it might be phoning home on you. At least a module without a WiFi stack can't do that

Re: Xiaomi Home Integration for Home Assistant

#160
post #121

Earlier quoted context omitted.

Nope, my concern wasn’t security, it was corporate greed

I’m curious, do you expect them to run and maintain servers for free?

I didn't realize they were selling garage door openers for free.
Post reply on HN