Page 1 of 1

Question on Smoke sensor (new) json api error

Posted: Friday 07 February 2025 11:30
by zicht
Version: 2024.7 (build 16464)
Build Hash: f4f5300a2
Compile Date: 2025-01-27 09:06:59
dzVents Version: 3.1.8
Python Version: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:38:17) [MSC v.1932 32 bit (Intel)]

Source used : https://wiki.domoticz.com/Domoticz_API/JSON_URL's#Reset

It was a long time since i tested the smoke detectors. So i did today ...
I noticed it seems something is broken on the api call for smokedetectors to reset the gui...
I thought i could be because of the api changes, but according to the link above my json call is correct


Apperantly the json api works fine for both :

Code: Select all

/json.htm?type=command&param=switchlight&idx=<IDX>&switchcmd=Off
/json.htm?type=command&param=switchlight&idx=<IDX>&switchcmd=On
That works as espected/designed On and Off are activating sound, and stop after 10 secs

But gui reset is not working anymore, also the gui reset button is not working :

Code: Select all

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


bot throw an error
{
"status" : "ERROR"
}

This is a pitty because the switchlight off command sets the sound on for another 10 secs ( but does the reset on the gui)
Are the two not working links abandoned above ( "param=resetsecuritystatus") in the new json structure, or am i doing something wrong ?

Re: Question on Smoke sensor (new) json api error

Posted: Wednesday 12 March 2025 9:05
by DewGew
I Want to know this also.
When pressing reset button, log say "Invalid API command received!? (resetsecuritystatus)"

Re: Question on Smoke sensor (new) json api error

Posted: Wednesday 12 March 2025 10:28
by gizmocuz
Thanks for reporting. There was a internal typo and this has been corrected in beta 16576

Re: Question on Smoke sensor (new) json api error

Posted: Wednesday 12 March 2025 14:19
by DewGew
Great now reset button is working in UI now.
API call from http is working also but not for MQTT.
When I send this command:

Code: Select all

{"command": "resetsecuritystatus", "idx": 840 , "switchcmd": "Normal" }
I get this in the log:

Code: Select all

2025-03-12 14:04:51.064 Error: MQTT: Unknown command received: resetsecuritystatus