rtl_433 icon indicating copy to clipboard operation
rtl_433 copied to clipboard

Adding custom decoder (Verisure Alarm)

Open mikkelsiggaard opened this issue 9 months ago • 5 comments

I'm trying to add some Verisure door sensors to Home Assistant using this conf: https://github.com/merbanan/rtl_433/blob/master/conf/verisure_alarm.conf

@mdeweerd I hope you can verify that the conf-file I'm using is appropriate for this device: Image

I also hope you'll be able to elaborate on this quote from the conf-file:

The payload is most likely encrypted, but you can still use the id and state to figure out if the contact switch is opened or closed. When I look at the logs there don't seem to be a pattern that I'm able to figure out. The state is always "0" and the id differs a lot. I have disabled all but one door sensor, to make sure I only get one device in the logs.

I have created a file called "rtl_433.conf" under the "/config/rtl_433" folder in Home Assistant. The content of that file is this:

output mqtt://192.168.0.190:1883,user=mqtt,pass=3028Tiger3028
output kv
frequency 868M
protocol 40
convert si
verbose 7
sample_rate   250k
pulse_detect classic

decoder {
    name=Verisure Alarm,
    modulation=FSK_PCM,
    short=208,
    long=208,
    reset=4025,
    gap=2500,
    tolerance=10,
    get=@24:{24}:id,
    get=@52:{12}:state,
}
Log from rtl_433 Home Assistant Add-on


time : 2025-03-19 20:03:29 model : Verisure Alarm count : 1 num_rows : 1 rows : len : 29 data : face4548 id : 4718592 state : 0 codes : {29}face4548 [pulse_slicer_pcm] General purpose decoder 'Verisure Alarm' codes : {29}face4548 [Verisure Alarm] codes : {25}05392a0


time : 2025-03-19 20:03:47 model : Verisure Alarm count : 1 num_rows : 1 rows : len : 25 data : 05392a0 id : 0 state : 0 codes : {25}05392a0 [pulse_slicer_pcm] General purpose decoder 'Verisure Alarm' codes : {25}05392a0 [Verisure Alarm] codes : {27}029c952


time : 2025-03-19 20:04:05 model : Verisure Alarm count : 1 num_rows : 1 rows : len : 27 data : 029c952 id : 2097152 state : 0 codes : {27}029c952 [pulse_slicer_pcm] General purpose decoder 'Verisure Alarm' codes : {27}029c952 [Verisure Alarm] codes : {28}029c8a9


time : 2025-03-19 20:04:24 model : Verisure Alarm count : 1 num_rows : 1 rows : len : 28 data : 029c8a9 id : 9437184 state : 0 codes : {28}029c8a9 [pulse_slicer_pcm] General purpose decoder 'Verisure Alarm' codes : {28}029c8a9 [Verisure Alarm] codes : {26}05392a4

Am I missing something?

mikkelsiggaard avatar Mar 19 '25 19:03 mikkelsiggaard

The device does not look like the one I used to create the config for. You need to treat this as a new device.

merbanan avatar Mar 21 '25 21:03 merbanan

The device does not look like the one I used to create the config for. You need to treat this as a new device.

Ah okay, I'll try to do that. Any recommended sources on how to do this?

mikkelsiggaard avatar Mar 23 '25 13:03 mikkelsiggaard

@mikkelsiggaard Are you still trying to work on this? Basically, first figure out modulation to get bits, and then figure out bits. Look at triq.org for tools. If it's truly encrypted, you are going to have a hard time :-(

gdt avatar Jul 04 '25 10:07 gdt

also you are seeing codes of varying lengths, which to me is a clue that the demod to bits is not right.

gdt avatar Jul 04 '25 10:07 gdt

triq.org seems like a very good ressource to get going again, thanks.

Life got in the way, but it is still on my wishlist.

mikkelsiggaard avatar Oct 23 '25 19:10 mikkelsiggaard