Re: [Update smoke detector] Alarm and Heating management
Posted: Monday 01 April 2019 17:33
A new device connected: a smoke detector. I use a classical smoke detector (KD5810 IC). I've opened it (i.e. this smoke detector no longer approved!) to connect it to an ESP8266 (pins 7 and 16 of circuit KD5810 used according to info found on Internet). My personal touch is to no longer use a 9V battery and to use this smoke detector with a protected selector switch in Domoticz with the following levels:
- OFF: the ESP8266 powers off the smoke detector. The smoke detector is DISARMED,
- Monitoring: The ESP8266 powers on (+ 9V) the smoke detector. The smoke detector is ARMED,
- Smoke: in case of smoke detection, the smoke detector/ESP8266 send a Mqtt message to put the selector in this level (which will then send sms and email). Once in this mode (also true for Siren), only the OFF mode can be selected. But eventually (if you are currently in Monitoring mode) possible to force this level from Domoticz (i.e. Fire alert from another appliance and we want this smoke detector siren running also),
- Siren: selected from Domoticz, the smoke detector siren will sound continuously. Allows you to have an additional indoor siren for other alerts than Fire,
- Test: using pin16, the ESP8266 put the smoke detector in test mode (the siren sounds for a few seconds) and checks that the alert signal (pin7) goes to high level. If the test is OK, the smoke detector/selector are then automatically put in Monitoring mode. If the test fails, the smoke detector/selector are automatically set to OFF.
The ESP8266 also manages an additional (optional) temperature sensor like DHT22. By default, using Mqtt, temp/hum are sent every five minutes to Domoticz.
Also every 5 minutes, the ESP8266 double-checks that Domoticz is synchronized with its own alert status (in case of Mqtt alert messages lost or Domoticz previously down when smoke detector went to alert mode).
Arduino code here: https://github.com/Antori91/Home_Automa ... KD5810.ino
Smoke detector wiring here: https://github.com/Antori91/Home_Automa ... P8266).GIF
- OFF: the ESP8266 powers off the smoke detector. The smoke detector is DISARMED,
- Monitoring: The ESP8266 powers on (+ 9V) the smoke detector. The smoke detector is ARMED,
- Smoke: in case of smoke detection, the smoke detector/ESP8266 send a Mqtt message to put the selector in this level (which will then send sms and email). Once in this mode (also true for Siren), only the OFF mode can be selected. But eventually (if you are currently in Monitoring mode) possible to force this level from Domoticz (i.e. Fire alert from another appliance and we want this smoke detector siren running also),
- Siren: selected from Domoticz, the smoke detector siren will sound continuously. Allows you to have an additional indoor siren for other alerts than Fire,
- Test: using pin16, the ESP8266 put the smoke detector in test mode (the siren sounds for a few seconds) and checks that the alert signal (pin7) goes to high level. If the test is OK, the smoke detector/selector are then automatically put in Monitoring mode. If the test fails, the smoke detector/selector are automatically set to OFF.
The ESP8266 also manages an additional (optional) temperature sensor like DHT22. By default, using Mqtt, temp/hum are sent every five minutes to Domoticz.
Also every 5 minutes, the ESP8266 double-checks that Domoticz is synchronized with its own alert status (in case of Mqtt alert messages lost or Domoticz previously down when smoke detector went to alert mode).
Arduino code here: https://github.com/Antori91/Home_Automa ... KD5810.ino
Smoke detector wiring here: https://github.com/Antori91/Home_Automa ... P8266).GIF