You have to make things unique. Otherwise you can not address everything
correctly. For example some hardware support setting a channel. Then you
can combine those to identify a single unit. Model is probably what you
are looking for.
--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.
To post to this group, send email to rtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rtl_433.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rtl_433/a9c80581-a9b1-4d08-8a2a-590e929b1523%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rtl_433" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtl_433+u...@googlegroups.com.
To post to this group, send email to rtl...@googlegroups.com.
Visit this group at https://groups.google.com/group/rtl_433.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rtl_433/ced099dd-f7c5-4bee-8bc8-df980470ba7e%40googlegroups.com.
MQTT connected: Connection Accepted.
Traceback (most recent call last):
File "/usr/local/bin/rtl_433_mqtt_relay.py", line 120, in <module>
run()
File "/usr/local/bin/rtl_433_mqtt_relay.py", line 116, in run
rtl_433_probe()
File "/usr/local/bin/rtl_433_mqtt_relay.py", line 102, in rtl_433_probe
data = parse_syslog(line)
File "/usr/local/bin/rtl_433_mqtt_relay.py", line 83, in parse_syslog
if line.startswith("<"):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
{"time" : "2018-03-21 08:07:55", "model" : "Smoke detector GS 558", "id" : 18316, "unit" : 21, "learn" : 0, "code" : "78f195"}
{"time" : "2018-03-21 08:08:26", "brand" : "OS", "model" : "CM160", "id" : 11, "power_W" : 466}
<165>1 2018-03-21T08:06:17Z hassbian rtl_433 - - - {"time":"2018-03-21 08:06:17","model":"Smoke detector GS 558","id":18316,"unit":21,"learn":0,"code":"78f195"}
<165>1 2018-03-21T08:02:26Z hassbian rtl_433 - - - {"time":"2018-03-21 08:02:26","brand":"OS","model":"CM160","id":11,"power_W":644}
Error parsing value: 'value_json' is undefined (value: <165>1 2018-03-21T07:56:26Z hassbian rtl_433 - - - {"time":"2018-03-21 07:56:26","brand":"OS","model":"CM160","id":11,"power_W":740}, template: {{ value_json.power_W }}