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.

WARNING : This kind of relay is not compatible with progressive engine. Only use it engine ON/OFF

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

1
2
3
4
packages:
  regulator:
    url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
    file: solar_router/regulator_mecanical_relay.yaml

This package require the definition of pin connected to the gate of the relay : regulator_gate_pin

1
2
3
4
substitutions:
  # Regulator configuration ------------------------------------------------------
  # Define GPIO pin connected to the relay gate.
  regulator_gate_pin: GPIO22