This will probably only work for Radius customers in the greater Copenhagen area
Here's what we do:
- Connect to Wi-Fi and MQTT,
- Read the output of Kamstrup Omnipower HAN-slot with a Wemos D1 Mini (ESP8266-based MCU),
- Decrypt the incoming data using the two keys you got from Radius (Copenhagen-area DSO),
- Publish the data to a MQTT broker of your choice.
Note: You need to write to kundesupport@radiuselnet.dk to get your decryption keys
- Rename
secrets.h.TEMPLATE
tosecrets.h
and insert your WiFi, MQTT, and Key information - Upload sketch to Wemos
- Connect pin: Wemos
G
pin <-> Kamstrup HAN slot top left pin - Connect pin: Wemos
D5
pin <-> Kamstrup HAN slot top middle pin - Power the Wemos through USB charger
- Subscribe to your MQTT broker and do what ever you want with it
Sorry in advance for the soldering gore. The power output of the omnipower is throttled to 75mA, which is not enough to scan or send over wifi. But we can use a super cap buffer to accumulate enough power between each send.
I'll add instructuions on how to build the simple super cap buffer at some point. It's a 5F cap and a couple of schottky diodes.
Hookup:
- Connect: Buffer
VCC_in
<-> Kamstrup HAN slot bottom left pin - Connect: Buffer
G_in
<-> Kamstrup HAN slot top left pin - Connect: Buffer
VCC_out
<-> Wemos5V
pin - Connect: Buffer
G_out
<-> WemosG
pin - Connect: Kamstrup HAN slot top middle pin to Wemos
D5
pin
Adapted from Claustn to use SoftwareSerial instead of a second UART, to make it work with my Wemos D1 Mini. Claustn adapted his code from Asbjoern whose repo has many more features than this little thing.