Based on EspNowFloodingMesh project:
Topics:
trigger/relay1/set (set relay open for 3 seconds)
switch/relay2/set (set relay open/closed)
switch/relay3/set (set relay open/closed)
switch/relay4/set (set relay open/closed)
switch/relay2/value (relay current state)
switch/relay3/value (relay current state)
switch/relay4/value (relay current state)
contact/reedSensor/value (reed sensor state open/closed)
Hox! Reed sensor is connected to rx pin on esp01
Used: