I am trying to get a 433mhz device working from Homey with an app, but no luck with getting the signal definition right.
I have used rf analyser to capture the signal, and predicts the following:
{
"sof": [
335
],
"eof": [
65535
],
"words": [
[
381,
663
],
[
707,
336
]
],
"interval": 10000,
"sensitivity": 0.5,
"repetitions": 20,
"minimalLength": 18,
"maximalLength": 18
}
That signal definition fails to load in my app, as the “eof” can’t be 65535 apparently (removed it, then it loads the definition fine).
However, trying to send the signal does nothing to my device, so I am guessing the recording is slightly off?
I also happen to have an rtl_sdr dongle, and that captured the following raw data, perhaps some one could help me out to adjust the signal definition for Homey?:
Total count: 19, width: 19.11 ms ( 4778 S)
Pulse width distribution:
[ 0] count: 11, width: 324 us [316;348] ( 81 S)
[ 1] count: 8, width: 652 us [648;656] ( 163 S)
Gap width distribution:
[ 0] count: 8, width: 388 us [384;396] ( 97 S)
[ 1] count: 10, width: 716 us [712;724] ( 179 S)
Pulse period distribution:
[ 0] count: 5, width: 720 us [712;740] ( 180 S)
[ 1] count: 5, width: 1368 us [1364;1376] ( 342 S)
[ 2] count: 8, width: 1040 us [1032;1048] ( 260 S)
Pulse timing distribution:
[ 0] count: 19, width: 352 us [316;396] ( 88 S)
[ 1] count: 18, width: 688 us [648;724] ( 172 S)
[ 2] count: 1, width: 10004 us [10004;10004] (2501 S)
Level estimates [high, low]: 2654, 85
RSSI: -7.9 dB SNR: 14.9 dB Noise: -22.9 dB
Frequency offsets [F1, F2]: 18716, 0 (+71.4 kHz, +0.0 kHz)
Guessing modulation: Manchester coding
view at https://triq.org/pdv/#AAB103016002B027148091818090918181809090918181809180918255
Attempting demodulation... short_width: 324, long_width: 0, reset_limit: 728, sync_width: 0
Use a flex decoder with -X 'n=name,m=OOK_MC_ZEROBIT,s=324,l=0,r=728'
pulse_slicer_manchester_zerobit(): Analyzer Device
bitbuffer:: Number of rows: 1
[00] {24} 23 0e 12 : 00100011 00001110 00010010
As for another device that i currently use for rf send/receive is a Tasmota.
When I send the command from my App, I do see a response in Tasmota, so Homey is sending it, and shows as follows:
{"Time":"2023-08-12T19:18:25","RfReceived":{"Data":"0x19C75","Bits":18,"Protocol":6,"Pulse":434}}
But pressing the actual 433 remote shows this:
{"Time":"2023-08-12T19:21:38","RfReceived":{"Data":"0x19C75","Bits":18,"Protocol":8,"Pulse":423}}
Note the difference in “Protocol”…