@runnane/node-red-contrib-easee 0.5.6

Module for streaming Easee data. Based on node-red-contrib-signalrcore

npm install @runnane/node-red-contrib-easee

npm downloads

Node-Red module for streaming Easee charger data.

Features

  • SignalR streaming client
  • Pre-defined list of REST API GET/POST commands
  • Custom commands through REST API

Howto

npm i @runnane/node-red-contrib-easee

Add the easee Charger Streaming Client node Configure the node with username/password and the Charger ID.

Streaming node

Configure the node with username/password and a Charger ID ("EH000000"). Streaming telemetry from the signalR enpoint will be available in the fourth output, the ProductUpdate one.

REST node

Use the easee REST Client node Configure the node with an account username/password. The REST node will not authenticate on its own, so you will need to authenticate/renew tokens. However, if you use the easee Charger Streaming Client node, you do not need to authenticate additionally with the REST node, as the signalR socket will authenticate and renew automatically.

There are two ways of sending commands:

Sending predefined commands by topic

Send the your selected command as the topic into the node. You can set the charger, site and/or circuit variables directly in the node, or send them as msg.charger, msg.site and msg.circuit to override. Implemented commands that may be sent as topic, are:

  • login
  • refresh_token
  • charger
  • charger_details
  • charger_state
  • charger_site
  • charger_config
  • charger_session_latest
  • charger_session_ongoing
  • stop_charging
  • start_charging
  • pause_charging
  • resume_charging
  • toggle_charging
  • dynamic_current (Without msg.payload.body for reading (GET), and with msg.payload.body for setting (POST).)
  • reboot

Example, get charger details:

node.send({
  topic: "charger_details",
  charger: "EH000000",
});

Sending custom commands

Send the full path as msg.command, and optionally the POST body as msg.payload. See developer.easee.cloud for full list of commands.

Example to set dynamic current to 3x25A by doing a custom command with POST body:

node.send({
  command: "/sites/1234/circuits/1345/dynamic_current",
  body: { phase1: 25, phase2: 25, phase3: 25 },
});

Example

See example flows image

Credits and references

Node Info

Version: 0.5.6
Updated 5 months, 1 week ago
License: Apache-2.0
Rating: 4.5 2

Actions

Rate:

Downloads

9 in the last week

Nodes

  • easee-configuration
  • easee-rest-client
  • charger-streaming-client

Keywords

  • easee
  • charger
  • ev
  • signalr
  • node-red

Maintainers