Skip to content

Mecanical Relay Regulator

This regulator is performing an All or Nothing Regulation.

alt text

A relay is able to let current pass to the load or not.

The following schematic is representing the wiring of the relay:

relay

Be carefull during wiring and use the Normally Open (NO) pin.

This kind of relay is only use it with Engine 1 x switch or Engine 1 x dimmer + 1 x bypass

To use this package, add the following lines to your configuration file:

1
2
3
4
5
6
7
packages:
  regulator:
    url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
    files:
      - path: solar_router/regulator_mecanical_relay.yaml
        vars:
          relay_regulator_gate_pin: GPIO22

This package require the definition of pin connected to the gate of the relay. Set relay_regulator_gate_pin into vars according to your hardware