Сен 202021
 
USB

backlog sensor29 0,2,1; sensor29 1,2,1; sensor29 2,2,1; sensor29 3,2,1
backlog sensor29 4,2,1; sensor29 5,2,1; sensor29 6,2,1; sensor29 7,2,1
backlog SetOption36 0;SetOption65 1;wificonfig 4; SetOption59 1; timezone +3

PZEM-016 RS485

PZEM-016 RS485

Схема: DipTrace Schematic – BIG-Tasmota-V1.0

Авг 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

Июн 082021
 

Схема: 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

LedLink IO14 – Внешний

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

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

 

Апр 012021
 

+5 GND – Перепутаны !!! выводы на плате !

Schematic_TWO-Relay-MQTT-2ESP_2021-04-05

Для ESP-12F
rule1 ON Power1#state=1 DO Power2 on ENDON ON Power1#state=0 DO power2 off ENDON

Для обоих модулей – PowerOnState off

Правило для ESP-01 – Reset ESP-12 и возврат в предыдущие состояние.

rule1 on power1#state=1 DO backlog delay 10; power1 off ENDON

backlog SetOption36 0;SetOption65 1;wificonfig 4

 

Мар 302021
 

Schematic_MQTT-Relay-8_2021-04-05

Настройка Tasmota (MCP23017) 16 Input/Output Ports

# Port D0-D7 OUTPUT

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

# Port D8-D15 INPUT

backlog sensor29 8,2,1; sensor29 9,2,1; sensor29 10,2,1; sensor29 11,2,1
backlog sensor29 12,2,1; sensor29 13,2,1; sensor29 14,2,1; sensor29 15,2,1

# Enable for binary Sensor

HOME ASSISTANT TIPS:
You can use SetOption59 1 in order to get extra SENSOR status telemetry messages in addition to event-triggered RESULT messages. This allows very good integration with Home Assistant because it needs to monitor only one payload for both periodic and instant messages using.

# Binary Sensor

binary_sensor:
– platform: mqtt
  name: “MCP23017 Test D8 SENSOR”
  state_topic: “tele/tasmota/SENSOR”
  value_template: “{{ value_json[‘MCP230XX’].D8 }}”
  payload_on: “1”
  payload_off: “0”
  availability_topic: “tele/tasmota/LWT”
  payload_available: “Online”
  payload_not_available: “Offline”
  qos: 0
 device_class: door

# Rule – Правила для включения реле при появления сигнала на входах.

rule
on event#MCPINT_D15=1 do power8 on endon on event#MCPINT_D15=0 do power8 off endon
on event#MCPINT_D14=1 do power7 on endon on event#MCPINT_D14=0 do power7 off endon
on event#MCPINT_D13=1 do power6 on endon on event#MCPINT_D13=0 do power6 off endon
on event#MCPINT_D12=1 do power5 on endon on event#MCPINT_D12=0 do power5 off endon
on event#MCPINT_D11=1 do power4 on endon on event#MCPINT_D11=0 do power4 off endon
on event#MCPINT_D10=1 do power3 on endon on event#MCPINT_D10=0 do power3 off endon
on event#MCPINT_D9=1 do power2 on endon on event#MCPINT_D9=0 do power2 off endon
on event#MCPINT_D8=1 do power1 on endon on event#MCPINT_D8=0 do power1 off endon

backlog SetOption36 0;SetOption65 1;wificonfig 4; SetOption59 1