Skip to content
Wilco Wijbrandi edited this page Dec 5, 2022 · 9 revisions

S2 Introduction

What is S2?

S2 is the short name for the EN 50491-12-2 standard for in building energy management. It is a protocol for the energy management of energy intensive devices found in the build environment, such as photovoltaic systems, EV chargers, batteries, (hybrid) heat pumps and white goods. It is specifically designed to utilize energy flexibility. It is built in such a way that it can work with any flexible device from any manufacturer, and that it would work for any energy management use case. It is not meant to replace existing protocols for energy management, but rather to provide a universal language for energy flexibility in the build environment.

What is energy flexibility?

TODO

Why do we need energy flexibility?

TODO

Why do we need a common protocol for energy flexibility?

TODO

What is s2-ws-json?

S2 was designed as a semantic protocol, which can have multiple, mutually compatible, implementing protocols. Different devices might prefer a different form of communication. For example, you can have a version of S2 which uses bluetooth, and another version which uses KNX. These versions differ in the transport protocol they use, but typically also in the way they encode data. Since both protocols are based upon the same S2 specification, one S2 implementing protocol can easily be translated into the other version using a simple software adapter.

S2-ws-json is a protocol specification which implements the S2 protocol using the common web technologies WebSockets and JSON. S2-ws-json can be used for:

  • in-building communication between device and energy management system using a wired (Ethernet) or wireless (Wi-Fi) network
  • communication between a device in the building and an energy management system in the cloud
  • communication between a device endpoint in the cloud with an energy management system in the cloud
  • communication between a device endpoint in the cloud and an energy management system in the building