Functionality of Smoke Detector Switch

Moderator: leecollings

Post Reply
User avatar
FireWizard
Posts: 1755
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Functionality of Smoke Detector Switch

Post by FireWizard »

Hi,

As it has become mandatory to install smoke detectors (smoke alarms) in the Netherlands by July 1st, I assume that many of you want to have these connected to Domoticz. In other countries this is already longer the case.

In fact a smoke detector is not a switch but a sensor. It detects smoke and that will result that the smoke detector switch switches from its quiescent state to the alarm state.

This is presented as below:

Screenshot_smoke_detector.png
Screenshot_smoke_detector.png (110.41 KiB) Viewed 1699 times
You have to create a virtual switch first and edit the device later in order to change it to a smoke detector.
As you probably want to avoid that the switch is accidentally activated, I recommend to protect the Smoke Detector Switch with a password.

You can control the detector remotely by JSON and MQTT,

The JSON commands are as described in the Wiki and as follows:
Smoke Detection
Activate

/json.htm?type=command&param=switchlight&idx=<IDX>&switchcmd=On

{
"status": "OK",
"title": "SwitchLight"
}

Deactivate

/json.htm?type=command&param=switchlight&idx=<IDX>&switchcmd=Off

{
"status": "OK",
"title": "SwitchLight"
}

Reset

/json.htm?type=command&param=resetsecuritystatus&idx=<IDX>&switchcmd=Off

{
"status": "OK",
"title": "ResetSecurityStatus"
}

/json.htm?type=command&param=resetsecuritystatus&idx=3456&switchcmd=Normal

{
"status": "OK",
"title": "SwitchLight"
}
As said you can also send these values by MQTT in the correct format.

As soon as you change the switch from an ordinary switch to a smoke detector, you will see that you get an extra "Reset" button.
If you click that button, shortly a pop-up "Switching Normal" is visible, regardless whether the switch is "On" or "Off".

As usual with a switch, if it is "On" ("Activated") you can switch to "Off" (Deactivated)
This works, both from operating the button (not desirable) and remotely (JSON).

Question.

Does someone knows, what the intended use of the reset button is?

Visually nothing happens. However if you press that "Reset" button in case of an activated smoke detector, you will not say anything until you refresh the screen. You will see that internally something has been reset, but what.

I have been discussing this issue before with waaren (RIP), but that never ended satisfactory.
See: viewtopic.php?p=266131&hilit=smoke#p266131

So: What does that "Reset" button do?

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests