Voltcraft SEM6000 / SPB012BLE Integration

So, I finally bit the bullet and published the integration for the Voltcraft SEM6000 / SPB012BLE power plug (GitHub - Anty0/homeassistant-voltcraft_sem6000_spb012ble-integration: Voltcraft SEM6000 / SPB012BLE Integration for Home Assistant). Enjoy! ^^
Let me know if you find any issues! It’s my first home assistant integration, so don’t expect anything fancy.

2 Likes

Thank you! I will try this.

I want to ask you something, I’ve been using this

to poll them via BLE so I can get metrics into Prom/Grafana. It works fine overall but periodically SEM6000 would lock me out refusing any connections until I do a power cycle.

Have you ever experienced anything like that ?

Nice! ^^
I haven’t tried that project yet, but I’ve definitely seen the repository. It’s quite a bold move to write the whole thing as an expect script. I’m tipping my virtual hat to whoever wrote it. I wouldn’t have the nerve for this much expect scripting. :3

My power plug seems to support only a single connection at a time. Once Home Assistant is connected to the power plug, nothing else can connect to it.
Other than that, I’ve never really had issues with it refusing connections. ^^

So I’ve switched to yours from expect thing and I think I observe same behavior

It worked fine for ~6 hours but after HA shows this :

It comes back to me if I reload your integration

When its unavailable, it stops reading from Volcraft, as I have REST api to query data from HA and it just returns same value. Once I reload integration it starts to report different values, so I assume it works.

I dont have anything else connected to Volcraft apart a single instance of HA. I do have Bluetooth proxies but I guess they shouldn’t pro-actively connect.

This is exactly same behavior I had with expect thing. It would work fine until it stops syncing and the only way to fix is to power cycle Volcraft. At least with yours, seems like reloading integration fixes it.

That’s fine I’m dumping Volcraft for IKEA Inspelning - at least for basic things that it can handle.

Need to figure out what to use for Washing machine yet.

Yeah, it seems my implementation doesn’t handle reconnects very well. I have a PR from emptyturtle (Add support for authentication and improve connection stability by emptyturtle · Pull Request #7 · Anty0/homeassistant-voltcraft_sem6000_spb012ble-integration · GitHub) which might fix this. I should finally be able to look at it this weekend. Fingers crossed it will fix the issue for you too ^^

In my setup, the power plug is about 3m from the Bluetooth adapter, so I haven’t had any connection issues while testing.

Identical to mine.

So when I wrote my post yday, I reloaded integration and it worked.

Now it shows this again :

Started to work again after reload.

Thank you! Fingers crossed.