Make your electricity smarter – now with Shelly!
Make your home and property smarter – Cozify HAN and Shelly now together.
Energy consumption management has reached a new level. The direct compatibility of the Cozify HAN device with Shelly products brings real-time control and automation within everyone's reach – easily and safely.
Why is this significant?

- Immediate savings: Shelly devices utilise the real-time phase-specific measurement data from the Cozify HAN. This allows for automatic optimisation of electricity consumption – reducing power costs and lowering peak power requirements, resulting in significant savings.
- Safety: Shelly can cut or connect the power immediately when an overload is detected in a phase. This prevents overloads automatically, ensuring the safe use of electrical devices.
- Easy setup: Newer Shelly devices quickly and reliably connect to the Cozify HAN data using scripts.
- Expandability: The same solution works as a standalone system or as an expandable network.
A concrete example
Add a script with Shelly app or with Shelly's desktop web interface when logged in, to do the following:
Shelly monitors the phase-specific values of the Cozify HAN and cuts the power if a main fuse exceeds the set limit -> Power is restored when the value drops to a safe level. This prevents overloads automatically and reduces the need for manual monitoring.
In the same way, peak power charges from electricity grid companies can be managed by controlling phase-specific consumption peaks.
Example script with Shelly Script: The following script illustrates the logical connection: retrieving Cozify HAN measurement data and controlling the Shelly relay based on the limits.
let COZIFY_HAN_URL = "http://USE-YOUR-HAN-IP/meter";
let CHECK_INTERVAL = 10;
function checkCurrent() {
Shelly.call("HTTP.GET", { url: COZIFY_HAN_URL }, function(res, e) {
if (res && res.code === 200) {
let data = JSON.parse(res.body);
let currents = data.i;
let maxCurrent = Math.max.apply(null, currents);
if (maxCurrent > 20) {
Shelly.call("Switch.Set", { id: 0, on: false });
} else if (maxCurrent < 10) {
Shelly.call("Switch.Set", { id: 0, on: true });
}
} else {
print("Error fetching Cozify HAN data:", e);
}
});
}
Timer.set(CHECK_INTERVAL * 1000, true, checkCurrent);
|
![]() |
Tip: It is recommended to target control to the critical phase and add delays to prevent unnecessary on/off switching.
Other benefits:
- Real-time peak shaving: Non-critical loads can be cut during peak times.
- More precise overload protection: Shelly makes phase-specific decisions, cutting only the critical phase.
- Clear feedback to the user: Mobile notifications and LED states indicate the reason for switching, reducing confusion. This depends on the features of the Shelly used.
- Flexibility: The solution is easy to expand to other automation and use cases.
Cozify HAN and Shelly – Save, secure, and automate. With the Cozify HAN and Shelly, you get real-time electricity consumption data, enabling automatic load management, savings, and safety – easily and reliably.
If you want to test the synergy between Cozify HAN and Shelly, start by purchasing Cozify HAN from one of the following places:
- nurkantakaa.fi
- onninen.fi
- sonepar.fi
- ... and it is also available from Cozify's own store.
Thank you for reading!
Share your experiences and feedback at info@cozify.fi

Jukka Talja
Cozify, Head of Sales
