+1

Your cart is empty.

Case Study: Cozify HAN & Home Assistant - Phase-specific energy automation

In many home automation projects, reliable phase-specific electricity consumption data is missing. The Cozify HAN reader brings this directly to your home and quickly becomes a valuable data point in the Home Assistant environment: real-time voltage, current, and power data enable smart load management, price-based optimizations, and safety measures.

Why Bring Phase-specific Measurement to Home Assistant?

  • More Precise Optimization: Monitoring individual phases reveal spikes that overall measurement does not show.
  • Real-time Peak Shaving: Automation can turn off non-critical loads during peak periods.
  • Better Overload Protection: All compatible devices, such as Shelly, can react based on accurate phase-based data and disconnect only devices connected to the overloaded phase. This combined solution has proven effective with Cozify HAN and Shelly.

Overview: How to Integrate Cozify HAN with Home Assistant

  • Ensure Cozify HAN is installed and visible on your local network.
  • Add sensors to Home Assistant (YAML or UI) and define automations for peak shaving, notifications, and energy reporting.
  • Pay attention to security: if necessary, keep meter and automation interfaces on a separate network or ensure strong authentication and firewall rules.

Examples: REST Sensors and Automation in Home Assistant

The example found here gives an idea of how to use the configuration.yaml file to import Cozify HAN data into the Home Assistant system.

Modify your Home Assistant's configuration.yaml file as needed.

A simple automation that turns off a non-critical relay if any phase exceeds the threshold:

For scalability, you can also use aggregated template tables, averages of previous values, or hysteresis delays to prevent rapid switching on/off.



automation:
  - alias: Cut non-critical load on overload
    trigger:
      - platform: numeric_state
        entity_id: sensor.cozify_phase_1_current
        above: 20
      - platform: numeric_state
        entity_id: sensor.cozify_phase_2_current
        above: 20
      - platform: numeric_state
        entity_id: sensor.cozify_phase_3_current
        above: 20
    action:
      - service: switch.turn_off
        target:
          entity_id: switch.non_critical_load
      - service: notify.mobile_app_yourphone
        data:
          message: "Ei-kriittinen kuorma katkaistu ylikuormitustilanteen vuoksi."



Cozify HAN, Home Assistant, and Shelly — Practical Synergy

Shelly devices are well-suited for relay and switch control in Home Assistant. When Shelly listens to Cozify HAN's phase-specific values, it can disconnect only the overloaded phase in real time or smartly control loads during peaks. This approach offers both cost savings and improved electrical safety. When transmission power charges are included in the equation, clear financial savings begin to emerge.


Tips and Best Practices for Technical Users

  • Interval and Network Load: Remember that the HAN/P1 port reports data at 10-second intervals.
  • Hysteresis and Delays: Add a 30–120 second delay and upper/lower limits to prevent unnecessary switching.
  • Safety: Ensure relays and switches support the electrical ratings of devices and that automations do not perform actions that could cause danger.
  • Test Phase by Phase: Start with one phase and simulate loads before full deployment.

How to Get Started Now

  • Get a Cozify HAN and place it in your electrical cabinet. Note: If your cabinet is far from the WiFi router, you may need an external antenna to improve coverage. This is also true if your cabinet is, for example, in a traditional metal box (Faraday cage); an additional antenna may be necessary.
  • Connect Home Assistant to the same network and make your first REST query to HAN.
  • Add one test sensor and define a simple automation (as above).
  • Expand step by step: add relays, notifications, and optimizations.

Conclusion

Phase-specific data elevates home automation: cost savings, improved safety, and smarter control are achievable with relatively little effort when Cozify HAN is connected to Home Assistant and relay control.

If you need help customizing YAML examples for your environment or a quick plan to get started, check out the extensive online resources. You’ll easily find several discussion groups and sites focused on supporting Home Assistant users. If your question is purely about the Cozify HAN device or interface, Cozify is the right direction for assistance.

Home Assistant Integration

Currently, a “direct” and an easy Home Assistant integration has not yet been implemented, so users must edit the configuration.yaml file themselves; an example is provided here. There are certainly many ways to do this, and the one presented is just an example, not necessarily the only one, or the most efficient. Comments and suggestions for developing a better integration are welcome.

Sources and Further Information

Where to get Cozify HAN?

Thank you for reading!
Share your experiences and feedback at info@cozify.fi

 

Jukka Talja

Jukka Talja
Cozify, Head of Sales