Question on Smoke sensor (new) json api error

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
zicht
Posts: 272
Joined: Sunday 11 May 2014 11:09
Target OS: Windows
Domoticz version: 2023.1+
Location: NL
Contact:

Question on Smoke sensor (new) json api error

Post 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 ?
Rpi & Win x64. Using : cam's,RFXCom, LaCrosse, RFY, HuE, google, standard Lua, Tasker, Waze traveltime, NLAlert&grip2+,curtains, vacuum, audioreceiver, smart-heating&cooling + many more (= automate all repetitive simple tasks)
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

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

Post by DewGew »

I Want to know this also.
When pressing reset button, log say "Invalid API command received!? (resetsecuritystatus)"
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
gizmocuz
Posts: 2536
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post by gizmocuz »

Thanks for reporting. There was a internal typo and this has been corrected in beta 16576
Quality outlives Quantity!
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

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

Post 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
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest