[Update smoke detector] Alarm and Heating management

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

User avatar
Antori91
Posts: 136
Joined: Sunday 12 February 2017 17:12
Target OS: NAS (Synology & others)
Domoticz version: 4.10717
Location: France
Contact:

Re: [Update smoke detector] Alarm and Heating management

Post by Antori91 »

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
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
User avatar
householder
Posts: 5
Joined: Monday 14 January 2019 5:26
Target OS: Windows
Domoticz version: last
Location: Stockholm
Contact:

Re: [Update smoke detector] Alarm and Heating management

Post by householder »

In terms of heating optimization, I found it wise to use the simple room infrared heater rather than electric? You'll definitely notice the $ billing difference in the positive incline. Also, I wanted to add that those guys have a nice notice feature - if you subscribe and there is any sale on amzn, they will notify you by email, very useful if you're hunting on the specific type of product
User avatar
Antori91
Posts: 136
Joined: Sunday 12 February 2017 17:12
Target OS: NAS (Synology & others)
Domoticz version: 4.10717
Location: France
Contact:

Re: [Update smoke detector] Alarm and Heating management

Post by Antori91 »

Hello,

I’m upgrading my fire detection server (described in the previous post) by replacing the smoke detector with an MQ-2 sensor. This allows:
- to log 24/7 the smoke values (unit: ppm),
- using this logging and smoke generation tests to choose the best alert threshold value. This is to avoid false detections (it seems to happen very often with market smoke detector). The default threshold value is set in the code to 300 ppm. This value can be dynamically changed via the name of the Selector switch corresponding to this server: FireServerName {xxx} where xxx is the actual threshold to use.

Here is:

- The wiring diagram: https://github.com/Antori91/Home_Automa ... 20MQ2).GIF
Notice the 2K resistor in the cable between the MQ-2 and the ESP8266 to get the voltage to the ADC pin in the 0-1V range. There is already a 1K load resistor in my MQ-2 board. By adding this resistor of 2K, this makes a load resistance of 2/3 K.

- The code: https://github.com/Antori91/Home_Automa ... 10_MQ2.ino

PS: Better to say this is DIY smoke detector NOT APPROVED AT ALL by insurance companies
Dashboard-2.GIF
Dashboard-2.GIF (272.39 KiB) Viewed 683 times
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest