Фев 192021
 

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

# sensor29 0,5,0 Port D0 OUTPUT
# ………………………..
# sensor29 7,5,0 Port D7 OUTPUT

# sensor29 8,2,1 Port D8 INPUT
# ……………………….
# sensor29 15,2,1 Port D8 INPUT
# SetOption59 1 Enable for 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

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

 Posted by at 12:36