Авг 102021
 

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

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

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

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