Блок управления насосом в колодце.

Скоро будет схема и описание.

Tasmota Rules:

BACKLOG SETOPTION114 1;SWITCHMODE 1

RULE
ON SYSTEM#BOOT DO POWER0 OFF ENDON
ON POWER1#STATE=1 DO POWER2 ON ENDON
ON POWER1#STATE=0 DO POWER2 OFF ENDON
ON POWER2#STATE=1 DO POWER1 ON ENDON
ON POWER2#STATE=0 DO POWER1 OFF ENDON
ON MQTT#DISCONNECTED DO POWER0 OFF ENDON
ON SWITCH1#STATE=1 DO POWER2 OFF ENDON
ON SWITCH1#STATE=0 DO POWER1 ON ENDON

RULE2
ON EVENT#MCPINT_D4=0 DO POWER2 OFF ENDON
ON EVENT#MCPINT_D5=0 DO POWER2 OFF ENDON

RULE3
ON EVENT#MCPINT_D3=1 DO POWER1 ON ENDON
ON EVENT#MCPINT_D3=0 DO POWER2 OFF ENDON

 

Правила для системы авто-полива. Отображения индикации.

RULE
ON EVENT#MCPINT_D3=1 DO POWER1 TOGGLE ENDON
ON EVENT#MCPINT_D3=0 DO POWER1 TOGGLE ENDON
ON EVENT#MCPINT_D4=1 DO POWER2 TOGGLE ENDON
ON EVENT#MCPINT_D4=0 DO POWER2 TOGGLE ENDON
ON EVENT#MCPINT_D5=1 DO POWER3 TOGGLE ENDON
ON EVENT#MCPINT_D5=0 DO POWER3 TOGGLE ENDON
ON SYSTEM#BOOT DO POWER0 0 ENDON

Умный дом – Контролер 3 порта – Version 3.0

3 Реле Модуль Version 3.0 (PDF)

MCP23008-E/SO, 8-битный расширитель порта ввода/вывода

backlog sensor29 0,5,0; sensor29 1,5,0; sensor29 2,5,0
backlog sensor29 3,2,1; sensor29 4,2,1; sensor29 5,2,1

backlog SetOption36 0;SetOption65 1;wificonfig 4; SetOption59 1; TelePeriod 150; TimeZone +3

rule
on event#MCPINT_D3=1 do power1 toggle endon on event#MCPINT_D3=0 do power1 toggle endon
on event#MCPINT_D4=1 do power2 toggle endon on event#MCPINT_D4=0 do power2 toggle endon
on event#MCPINT_D5=1 do power3 toggle endon on event#MCPINT_D5=0 do power3 toggle endon
ON system#boot DO Power0 0 ENDON

SetOption0 0Не сохранять последнее состояние !!!

Схема: DipTrace Schematic – 3-Relay-ESP-12e-ver-V3-0

P.S. IC3 – Оптрон = KPC354NT0A Остальные можно ставить KPC357NT0C

Tasmota 3 Реле модуль умного дома версия 1.0

Схема: DipTrace Schematic – 3-relay-esp-12e-ver-1-0

MCP23008-E/SO, 8-битный расширитель порта ввода/вывода

backlog sensor29 0,5,0; sensor29 1,5,0; sensor29 2,5,0
backlog sensor29 3,2,1; sensor29 4,2,1

backlog SetOption36 0;SetOption65 1;wificonfig 4

SetOption59 1

rule
on event#MCPINT_D3=1 do power2 toggle endon on event#MCPINT_D3=0 do power2 toggle endon
on event#MCPINT_D4=1 do power3 toggle endon on event#MCPINT_D4=0 do power3 toggle endon

Индикация включения реле.

RULE
ON EVENT#MCPINT_D3=1 DO POWER1 TOGGLE ENDON
ON EVENT#MCPINT_D3=0 DO POWER1 TOGGLE ENDON
ON EVENT#MCPINT_D4=1 DO POWER2 TOGGLE ENDON
ON EVENT#MCPINT_D4=0 DO POWER2 TOGGLE ENDON
ON EVENT#MCPINT_D5=1 DO POWER3 TOGGLE ENDON
ON EVENT#MCPINT_D5=0 DO POWER3 TOGGLE ENDON
ON SYSTEM#BOOT DO POWER0 0 ENDON

LedLink IO14 – Внешний

Выходы/Входы

Реле 1 / Реле 2 / Реле 3 – расположения реле – вид сверху