admin

Май 172022
 

DipTrace Schematic – Button-ESP-MCP-V2.0.2022 (PDF)

Output via MCP23017 – для включения светодиодов.

backlog sensor29 8,5,0; sensor29 9,5,0; sensor29 10,5,0; sensor29 11,5,0
backlog sensor29 12,5,0; sensor29 13,5,0; sensor29 14,5,0; sensor29 15,5,0

Input via MCP23017 – Кнопки 

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

9-я – Кнопка

SwitchMode1 15

Send only MQTT message on switch change. This will stop the switch from controlling power outputs.

tele/tasmota/SENSOR = {“Time”:”2021-01-01T00:00:00″,”Switch1“:”OFF”}
tele/tasmota/SENSOR = {“Time”:”2021-01-01T00:00:00″,”Switch1“:”ON”}

Дополнительные параметры.

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

SetOption36 0 – 0 Disable boot loop control
SetOption65 1 – 1 Disable – Device recovery using fast power cycle detection
SetOption59 1 – 1 Enable Send tele/%topic%/STATE in addition to stat/%topic%/RESULT for commands: State, Power and any command causing a light to be turned on.
wificonfig 4 = Retry other AP without rebooting (default)

Display SSD1306

displaymode 0

rule1 on tele-DS18B20#Temperature do publish cmnd/LCDKNOP/DisplayText [s1][l1c1]Dacha: %value% C endon

LEDLink – можно заменить на PWM и управлять подсветкой кнопок.

- platform: mqtt
name: "LCDSA-Brightness"
unique_id: "LCDSA-Brightness"
command_topic: "cmnd/LCDSA/POWER1"
state_topic: "stat/LCDSA/RESULT"
state_value_template: "{{value_json.POWER1}}"
brightness_command_topic: "cmnd/LCDSA/Dimmer"
brightness_state_topic: "stat/LCDSA/RESULT"
brightness_scale: 100
brightness_value_template: "{{value_json.Dimmer}}"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/LCDSA/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false
Янв 282022
 

Если кому нужно продам. Пишите.

Подключение модуля SSR Version 1.0 (PDF)

DipTrace Schematic.3-SSR-V1.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; sensor29 5,2,1

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

SetOption36 0 – 0 Disable boot loop control
SetOption65 1 – 1 Disable – Device recovery using fast power cycle detection
SetOption59 1 – 1 Enable Send tele/%topic%/STATE in addition to stat/%topic%/RESULT for commands: State, Power and any command causing a light to be turned on.
wificonfig 4 = Retry other AP without rebooting (default)

Корпус

https://www.chipdip.ru/product/d4mg

https://www.electronshik.ru/item/ECT/D4M-RU

Янв 202022
 

Схема: DipTrace Schematic – D3MG

Варианты использования: 

Нельзя одновременно подавать 5В на вход и подключать сети 220В.

Для управления WS2812 – можно использовать проект WLED.

Config для WS2812 Home-Assistant


- platform: mqtt
    name: "WS2812 LED"
    unique_id: "WS2812_LED_CTRL"
    command_topic: "cmnd/5relayNew/POWER1"
    state_topic: "stat/5relayNew/RESULT"
    state_value_template: "{{value_json.POWER1}}"
    brightness_command_topic: "cmnd/5relayNew/Dimmer"
    brightness_state_topic: "stat/5relayNew/RESULT"
    brightness_scale: 100
    brightness_value_template: "{{value_json.Dimmer}}"
    rgb_command_topic: "cmnd/5relayNew/Color"
    rgb_state_topic: "stat/5relayNew/RESULT"
    rgb_value_template: "{{value_json.Color.split(',')[0:3]|join(',')}}"
    effect_command_topic: "cmnd/5relayNew/Scheme"
    effect_state_topic: "stat/5relayNew/RESULT"
    effect_value_template: "{{value_json.Scheme}}"
    effect_list:
      - 0
      - 1
      - 2
      - 3
      - 4
    payload_on: "ON"
    payload_off: "OFF"
    availability_topic: "tele/5relayNew/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"    
    qos: 1
    retain: false
Янв 132022
 

E18-MS1PA1-IPX_Usermanual_EN_v1.1

E18-MS1PA2-IPX_UserManual_EN_v1.2

Джамперы установлены для подключения ZigBee модуля к ESP8266/UART0.  Модуль E18-MS1PA1-IPX – Можно запрограммировать как Coordinator или Router, для сети ZigBee.

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;TelePeriod 150

DipTrace Schematic – ESP-ZigBee-Input-Module-V1.0.0

Router: https://github.com/Koenkk/Z-Stack-firmware/tree/master/router/Z-Stack_Home_1.2

Как загрузить: https://zigbee.blakadder.com/zigbee2tasmota.html

ZigBee Router

Программирование через USB при подачи основного питания.

11:54:14.067 ZIG: rebooting CC2530 device
11:54:19.257 ZIG: timeout, goto label 99
11:54:19.259 RSL: RESULT = {“ZbState”:{“Status”:99,”Message”:”Abort”}}
11:54:19.260 ZIG: Abort
11:54:19.261 ZIG: Stopping (99)

Rule on zbstate#status=99 do zbreset 2 endon

 

 

 Posted by at 11:15
Янв 112022
 

 

DipTrace Schematic – Button-ESP-MCP-V1.0-COLOR

8 Кнопоок MCP23008

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

ДВЕ Кнопки на портах GPIO12 и GPIO13

SwitchMode1 1
SwitchMode2 1
Rule1 ON switch1#state DO publish stat/KnopkaRomik/RESULT {“SWITCH1”:%value%} ENDON
Rule2 ON switch2#state DO publish stat/KnopkaRomik/RESULT {“SWITCH2”:%value%} ENDON
Backlog Rule1 1; Rule2 1

Платы + схемы

DipTrace Schematic – Button-ESP-MCP-V2.0

 Posted by at 13:22