Problems with "smoke_gs558.c"

361 views
Skip to first unread message

Peter Drozda

unread,
Aug 27, 2018, 8:24:06 AM8/27/18
to rtl_433
Hi guys,

I just bought smoke detector GS558, exactly the same manufacturer as stated in the "tests" also the version seems to be the same.
But anyway, it seems that rtl433 is not able to correctly handle that, it seems it detects the type of device, but then it states it is unsupported.
I managed to record some .cu8 files, but my knowledge so far does not allow me to fix it somehow..
So far it seems to me that the content of the packets seems to be correct, but probably timing is different?
I'm attaching my recored files.. Would anyone be able to assist me?

I really appreciate your support!
Thanks.
g003_433.92M_250k.cu8
g004_433.92M_250k.cu8

Christian Zuckschwerdt

unread,
Aug 27, 2018, 8:53:55 AM8/27/18
to rtl_433
The samples look valid and decode to proper values.

rtl_433 -q -F json -r g003_433.92M_250k.cu8
{"time" : "@0.000000s", "model" : "Smoke detector GS 558", "id" : 1235, "unit" : 11, "learn" : 0, "code" : "c09a6b"}

What exact commands do you use, where does it state "unsupported"?

Peter Drozda

unread,
Aug 27, 2018, 9:05:01 AM8/27/18
to rtl_433
Hi Christian,

thanks for the reply. I run rtl_433 from Domoticz by simply defining specific devices, e.g. -R 3 - R 86 . In this case -R 3 is my temperature sensor which just reads fine and -R 86 is smoke detector..
The signal is received, but it states something like:

... Unhandled sensor type, please report: (XXXX-XX-XX XX:XX:XX,Smoke detector GS 558

Then there are some numbers, but I don't have them currently.. Would it help it, to provide the full error message including those numbers and many "," characters..
I can copy the exact message and provide it..
In general I don't use any other command line switches, except of -R... I also tried without specifying device, but still the same issue..
I don't set any specific frequency, just the default.. could that be the problem? 
I tried also directly from command line - without Domoticz involved, simply by running rtl_433 or rtl_433 -R 86 .. still the same problem..
Thanks.

Christian Zuckschwerdt

unread,
Aug 27, 2018, 9:20:57 AM8/27/18
to rtl_433
Using
    rtl_433 -R 86 -r g004_433.92M_250k.cu8
will work. Though I recommend using the json output
    rtl_433 -F json -R 86 -r g004_433.92M_250k.cu8

It will also work live, i.e. without `-r FILE`. Setting a center frequency is optional, the default is fine.

"Unhandled sensor type..." is a Domoticz (or plugin) error, not rtl_433. Maybe someone else here can help with that.

Peter Drozda

unread,
Aug 27, 2018, 9:31:19 AM8/27/18
to rtl_433
Hi Christian,

aaah.. it seems I'm more confused than I thought.. I don't know why I believed it is message from rtl_433..
If it originates in Domoticz it is completely different story...
Thanks for your help!

Is there anybody who could give me some hints where to start my investigation in Domoticz?
Thanks.

Peter Drozda

unread,
Aug 27, 2018, 10:03:13 AM8/27/18
to rtl_433
Ok.. now I know what is the problem..
Domoticz can't handlle input from this sensor.. since it cannot decide what type of device it is, since it doesn't send temperature or wind as weather sensors nor it sends 'state' or 'command' as switches..
So the easiest way for me would be to adapt and recompile 'smoke_gs558.c' and add there additional field, e.g. "state", something like:

data = data_make(
"time", "", DATA_STRING, time_str,
"model", "", DATA_STRING, "Smoke detector GS 558",
"id" , "", DATA_INT, id,
"unit", "", DATA_INT, unit,
"learn", "", DATA_INT, learn > 1,
"code", "Raw Code", DATA_STRING, code_str, "state", "", DATA_STRING, "ON",
NULL);
Then Domoticz will be able to recognize it as a switch:

bool hasstate =
(!data["state"].empty()) ||
(!data["command"].empty());
bool state =
data["state"] == "ON" ||
data["command"] == "On";
if (hasstate)
{
unsigned int switchidx = (id & 0xfffffff) | ((channel & 0xf) << 28);
SendSwitch(switchidx,
unit,
batterylevel,
state,
0,
model);
continue;
}
Thanks for your quick support Christian!!!

Rob Peters

unread,
May 14, 2020, 5:54:04 AM5/14/20
to rtl_433
I know this is an old thread, but the reason why I can not handle this sensor is indeed that there is no state like OK or ALARM
Your code is different then mine ({"time" : "2020-05-14 11:47:53", "model" : "Smoke-GS558", "id" : 32637, "unit" : 30, "learn" : 0, "code" : "ffefbe"})

Maybe you could post some json outputs when you start the learn process, make it go off (fire alerm, maybe this works with the test button) and when it goes off

Best to open a topic on the Domoticz github repo for this one
Reply all
Reply to author
Forward
0 new messages