Stekker releases open source library for S2

We’ve released our Ruby code for S2 on Github. That’s because we here at Stekker are a smart charging service provider – which means we provide smart charging services for businesses and developers. Through a partnership with TNO and others (see below), Stekker was able to develop a new integration that made Stekker also ‘S2-compatible’ and created an S2 ruby library in the process.

S2 is an open European standard developed for smart energy management. It defines how energy management systems communicate with flexible devices like EV chargers, heat pumps or batteries. The standard was developed by TNO in the Netherlands and has been adopted as part of the European smart grid infrastructure.

Our Ruby S2 Gem

We recognized that while the S2 standard existed on paper, Ruby developers lacked a practical tool to implement it. So we decided to open-source our library, as we had promised the Dutch government and TNO at the start of our partnership.

The S2-ruby gem is Stekker’s open-source implementation of the S2 protocol. It handles WebSocket connections, message validation, protocol state management. This way, developers can focus on (vibe-)coding their applications while assuring the EN 50491-12-2 is being followed.

This gem is released under the Apache 2.0 license, meaning you can do as you please with this code, as long as you you give a shout out to Stekker. We’re happy to contribute to the S2-infrastructure in Europe and where-ever developers are implementing the latest standards for grid-aware and sustainable charging.

The Stekker Ruby gem can be found here:

S2 Github Library: https://github.com/stekker/s2-ruby

We have more information available on our website, see below.

S2 Consortium

Stekker has been working with TNO and WePositive.Energy to create resource managers, and an S2 EMS-architecture and S2 analyser. We do this under the project name AdoptS2.

Insmart and Accuselect are focusing on steering heat pumps and stationary batteries, and Stekker is responsible for creating an architecture that implements S2 for charge points.

Through this partnership, we’re able to create a fully working S2 ecosystem. For more information, see the links below.

More information about the S2 library