I use Home Assistant (HA) for Home Automation and other cool things it can do.
One of the nice things about HA is that it can support many kinds of sensors and it can control many kinds of things (Lights, AC, servos, you name it).
Usually one can buy some compatible sensors or make their own boards with sensors, buttons, displays, etc, but the beauty of the K10 is that it has so many already built in!
Usually an ESP32 device would be onboarded using ESPHome which is great, but only works with HW it knows and has many updates that need managing.
An alternative is to use MQTT which allows any capable device to send and receive messages; regardless of the development environment. This is what I chose.
The K10 allows development in Mind+ (like Scratch), micropython and Arduino.
Unfortunately there's not enough documentation for the latter two so I had to use Mind+, even though I much prefer the others. One "sort of" positive is that Mind+ generates Arduino code which one can modify and build within Mind+, but sadly I was unable to build it in a separate Arduino IDE. They say it's coming. Also; it builds and uploads really FAST!
Anyway, the examples provided are useful and it was easy to make a Proof Of Concept that actually works and can control some lights in my home, using voice.
1. Connect to WiFi
2. Connect to the HA MQTT Message Broker (receives and sends message between "things")
3. Set-up Voice Commands
4. Loop forever: If WakeWord is heard, listen for command. If command is recognised, send specific message to MQTT
5. Upload the program to the Unihiker K10 (Connect it to your PC and click on "Upload")
5. In HA, set up automations for each MQTT Topic/Message to do what you want.
Comments