Skip to main content

Electrolyser Group Control

What We Control?​

Enapter Electrolysers designed to be stackable. It is possible to have group of electrolysers and such setup requires conviniet way of managing whole group start / stop and production rate.

Objective of Automation​

Automatic control group of Enapter electrolysers they way it is one device.

Requirements​

At least one electrolyser is needed. Public MQTT must be enabled and configured on Enapter Gateway.

Rule to Control Electrolysers Based on Required Power​

local power_manager = electrolysers.power_manager({
'D4416F63D6F029A6D88855F157E01CB9',
'4D6DC302EA88E381A56C15A450F3EDFA',
})

local desired_power_usage = storage.public.read('electrolysers_power')
if desired_power_usage then
power_manager:set_total_power(tonumber(desired_power_usage))
end

Setting Electrolyser Group Required Power​

mosquitto_pub command-line tool from mosquitto MQTT broker package is used. In the example below all electrolysers will start and the prodcution rate which will maintain consumed power at 50000 Watt. If all electrolysers must be started at maximum production rate, very big value like 100000000 can be used. In case all electrolysers must be stopped - 0 must be used.

mosquitto_pub -p 9883 -h 127.0.0.1 -u public -P password -t 'variables/v1/set/electrolysers_power' -m '{ "value": "50000" }'

Rule to Control Electrolysers Based on Required Production Rate​

local power_manager = electrolysers.power_manager({
'D4416F63D6F029A6D88855F157E01CB9',
'4D6DC302EA88E381A56C15A450F3EDFA',
})

local target_production, err = storage.public.read('electrolysers_production')
if target_production then
local max_power = 2400 -- W
local max_production = 520 -- NL/h
local desired_power_usage = target_production / max_production * max_power
power_manager:set_total_power(desired_power_usage)
end

Setting Electrolyser Group Required Production Rate​

mosquitto_pub command-line tool from mosquitto MQTT broker package is used. In the example below all electrolysers will start and the prodcution rate which will maintain production rate at 70%.

mosquitto_pub -p 9883 -h 127.0.0.1 -u public -P password -t 'variables/v1/set/electrolysers_production' -m '{ "value": "70" }'
Hardware diversity is welcome. Integrate any device into a unified energy network.
© 2022 Enapter
Developer toolkit
DocumentationReference