admin

Мар 312021
 

rule1 ON Power1#state=1 DO Power2 on ENDON ON Power1#state=0 DO power2 off ENDON

 

rule1 ON Power1#state=1 DO Power2 on ENDON ON Power1#state=0 DO power2 off ENDON
rule2 ON Time#Minute=120 DO rule3 1 ENDON ON Time#Minute=360 DO rule3 1 ENDON
rule3 ON Mqtt#Disconnected do backlog power1 1;delay 1; power1 0;rule3 0 endon

 

Мар 302021
 

Schematic_MQTT-Relay-8_2021-04-05

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

# Port D0-D7 OUTPUT

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

# Port D8-D15 INPUT

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

# Enable for binary Sensor
SetOption59 1

Мар 292021
 

Прошивка Tasmota: https://github.com/Jason2866/Tasmota-specials/tree/firmware/firmware/tasmota32

esptool.py –chip esp32 –port /dev/ttyUSB0 –baud 921600 –before default_reset –after hard_reset write_flash -z –flash_mode dout –flash_freq 40m –flash_size detect 0x1000 bootloader_dout_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 tasmota32-ethernet.bin

Активировать Ethernet:

backlog template {"NAME":"WT32-ETH01","GPIO":[0,3200,1,3232,1,1,0,0,1,0,1,1,5536,1,5600,0,0,0,0,5568,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,1],"FLAG":0,"BASE":1}; EthAddress 1; EthType 0; EthClockMode 0; module 0;

 Posted by at 13:43
Мар 252021
 
binaty_sensor:
# IR Recive Tasmota
# {"Time":"2021-03-25T11:36:52","IrReceived":{"Protocol":"UNKNOWN","Bits":19,"Hash":"0x07F1288A"}}
# tele/ESP32SSD1306/RESULT
  - platform: mqtt
    name: "Tasmota_IR_Test"
    state_topic: "tele/ESP32SSD1306/RESULT"
    value_template: "{{ value_json['IrReceived'].Hash }}"
    payload_on: "0x07F1288A"
    payload_off: "0xBB565681"
    availability_topic: "tele/ESP32SSD1306/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"
    qos: 0
    device_class: door
Фев 192021
 

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

# Port D0-D7 OUTPUT

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

# Port D8-D15 INPUT

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

# Enable for binary Sensor
SetOption59 1

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

https://tasmota.github.io/docs/MCP230xx/

Схема: Schematic_MQTT-Relay-8_2021-03-02

Rules:

Включить реле при активизации порта D15 и выключить.

rule on event#MCPINT_D15=1 do power8 on endon on event#MCPINT_D15=0 do power8 off endon

Включить и оставить.

rule on event#MCPINT_D15=1 do power8 toggle endon

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

 Posted by at 12:36