How My personal Agent Alfred talks to my vacuum
The Idea Came First Hi guys, I'm here again. After building Alfred here I wanted him to be able to control Juliana, my Xiaomi X20+ robot vacuum. I did not know how that was going to work and I did ...

Source: DEV Community
The Idea Came First Hi guys, I'm here again. After building Alfred here I wanted him to be able to control Juliana, my Xiaomi X20+ robot vacuum. I did not know how that was going to work and I did not have a clear path forward, but the goal was clear tbh. Ask Alfred something and then he can act on the available tools to him. So I started where most network curiosity starts. I ran an nmap scan on my LAN to see what Juliana was actually exposing to the network. All TCP ports were closed. But UDP port 54321 was open and listening. Bingo!. If you have not read about Alfred yet, I wrote about how I built him here. This feature is a direct result of what I called the Floodgate Effect in that article. The moment Alfred works in one area of your life, you immediately want to connect everything else. Juliana was next on the list. Its weird that I have names for things in my house but yh that's me. Speaking Juliana's Language Having a port is not the same as having a conversation unfortunately.