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:
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:
As said you can also send these values by MQTT in the correct format.Smoke Detection
Activate
/json.htm?type=command¶m=switchlight&idx=<IDX>&switchcmd=On
{
"status": "OK",
"title": "SwitchLight"
}
Deactivate
/json.htm?type=command¶m=switchlight&idx=<IDX>&switchcmd=Off
{
"status": "OK",
"title": "SwitchLight"
}
Reset
/json.htm?type=command¶m=resetsecuritystatus&idx=<IDX>&switchcmd=Off
{
"status": "OK",
"title": "ResetSecurityStatus"
}
/json.htm?type=command¶m=resetsecuritystatus&idx=3456&switchcmd=Normal
{
"status": "OK",
"title": "SwitchLight"
}
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