Door Sensors using MQTT
This script runs on a ESP8266 to detect changes with Door Sensors. Each time a door is opened it sends a state change via MQTT. Additional doors can be added as required.
An example of the Configuration.yaml file for Home Assistant is also provided.