Config: Setting up the Xiaomi Mi Robot Vacuum in Home Assistant

I have a dog who sheds like crazy, and the only thing that keeps the dust bunnies from overrunning me is a robot vacuum. My aging Neato Botvac, after fulfilling several years of hard labor, ate it’s 3rd expensive replacement battery recently. This was obviously a great excuse to get a new one that works with Home Assistant.

I went with the Xiaomi Mi Robot.

After getting paired with the app, teaching the robot English, and sending it on it’s way around the house to do it’s thing, I realized that the process of getting it paired with Home Assistant was not going to be straightforward.

For anyone else who runs into trouble, here’s how I got it working.

Continue reading →

Favorite ESP8266 Internet of Things Projects

So many good uses for these chips, here are a few I’ve made and some I still intend to.

  1. ESP Easy – by far the easiest way to connect a bunch of cheap sensors to an esp8266. I have about 6 of these doing various things.
  2. Bed Occupancy Sensor – FSR sensor for pressure and a simple automation to determine bed occupancy
  3. WiFi Candle Using multiple WS2812 addressable LEDs to create a simple lamp that flickers like a candle.
  4. Notification Flag – Raise a flag based on a simple condition. Would be nice to combine in tandem with…
  5. Mailbox Sensor – Notify when mailbox is opened.
  6. DIY Milight Hub – I’ve been using this and it works great. Control as many cheap Chinese RGB bulbs as you want.
  7. Simple Water Alarm – If water shorts the wires, it wakes a sleeping esp8266 and sounds the alarm
  8. Door/Window Monitor – Along the same lines, a simple magnetic switch monitors the status of a window or door.
  9. Smart Power Strip – Retrofitting a power strip with 2 banks of controllable outlets, using 3D printed parts.
  10. Weather Station Display – Another super cool 3D printed project that plugs in and displays info on a small screen.

My favorite form factor of the esp8266 is the Wemos D1 Mini. Tiny, all the inputs you need, and there are many premade ‘shields’ for it so you can stack components.

 

Hardware: Odroid XU4 as Plex Media Server

The Odroid XU4 – like a Raspberry Pi, but better.

As part of my efforts to be cloud non-dependent, I have a NAS full of several terabytes of music, movies, and TV shows. Plex is of course everyone’s favorite software for solving this problem, as it essentially turns your hard drive full of files into a private Netflix capable of streaming and syncing to any device.

1080p and commercial free, sorry Anthony.

The problem is that streaming and syncing is a very CPU intensive task and requires a server of substantial processing power. Is the cheap Odroid XU4 single board computer up to it?

Continue reading →