A quick, night time vibe coding session...
Many years ago I had solar panels fitted to the house along with a PassivLiving system. This Zigbee powered system controls my heating and my three smart plugs by monitoring my solar panels and total house power usage.
A year later, I bought this little XBee S2 device, an adapter and an FTDI friend. The idea was to connect this to my PassivLiving Zigbee network and do stuff. I never did get around to it.

Last night, while digging through my selection of electronic components, I came across the XBee and decided it was time to try and finish off one of my many stalled projects.
After a couple of hours conversing with my LLM of choice that night, many trips to and fro the control panel and several cups of Yorkshire tea, I finally managed to pair the XBee to the network. I did have 3 smart plugs, now my XBee emulates a forth.

With the XBee now part of the network, it was time to start querying the network. Several devices discovered, metrics being recorded and a quick trip around the house to work out which smart plug was which - I finally ended up with a dashboard showing my live metrics.


All that was left to do this morning was deploy that to my home lab, a Talos based kubernetes cluster.
I'm not sure what I'll do with it next. The XBee appears as a switch and the hub will turn it on when I'm generating more solar power than I'm consuming, and off when I'm not. I wonder if I can use it to alter the power settings on the lab's GPU?
🤔
ok, one last edit. As we are pretending to be a smart plug and smart plugs can report power usage, lets report the GPU's power usage.

🤔
I have to send my solar panel generation metre readings in frequently so that I can get paid. I send them in via email - I can automate that now 😂
A few notes...
The XBee replicates a smartplug so that I could pair it using the smartplug pairing mechanism. I didn't try replicating a different device but you do need to replicate one or the pairing fails. I didn't try putting the system into maintenance mode - I think you hold the rest button as you power the hub.
Yes, I was able to turn other smart plugs on and off remotely using the XBee.
I couldn't fetch readings directly from the temperature sensor/device (it goes to sleep and I couldn't work out how the hub gets the data when it wakes up) - you can get this directly from the hub via HTTP - you can fetch events - it has external temperature events too. Quite a few of the metrics come from the hub itself at the moment.
And finally...
this is why I don't normally run my dishwasher at night - nearly 2kw 😱

