Skip to content

Mecanical Relay Regulator

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 variable 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: http://github.com/XavierBerger/ESPHome-Solar-Router/
    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