I’ve had an R2D2 Sphero droid for years and it was collecting dust.
With the help of Claude and other online resources, I have created a home assistant integration for it.
It uses an ESP32-32S to interface with R2D2 over bluetooth. Then with an API running over wifi on the ESP32, you can wake him up, trigger 56 animations, put him in tripod/bipod mode and put him to sleep with REST and RESTful commands.
I have it in an automation where when I switch on my Gaming-PC (racked in the basement to play games remotely) it will do his happy animation. Inversly, when it is switched off it will play his sad emotion.
I hope you enjoy it, it’s been a fun project to put together.
I’ve made an update to the sketch and configuration.yaml to get R2D2’s sleep and connected status over the API.
This is useful in automations so that you can check R2D2’s status before sending an animation command. If he’s asleep, you wake him first and then send the animation.
Badge with the status where he sleeps (conditional to show him asleep when he is, otherwise show him as awake)