RF Converter V3.0 custom integration

Recently, I’ve created custom integration for RF Converter V3.0 WiFi to Remote.

Click here to download

Feel free to give me any feedback.
Thank you.

2 Likes

Thanks! Great job!..

The RF Converter module does not respond to sending a packet from Home Assistant.

reload_remote - retrieves the data correctly:

{"ecostar": {"ip": "192.168.2.28", "mac": "08:3a:8d:ee:2a:4f", "type": "1", "project": "13", "frequency": "43392", "id": "1726589522", "key": {"garaz": "32", "wjazdowa": "64"}}}

send_command - it’s visible that the packet was sent to the RF module, but the LED on the RF, which signals task execution, does not react (192.168.1.101 is my Home Assistant).

root@router:/tmp/home/root# cat /proc/net/nf_conntrack | grep 192.168.2.28
ipv4     2 tcp      6 1085 ESTABLISHED src=192.168.2.28 dst=47.254.152.213 sport=30327 dport=8950 src=47.254.152.213 dst=10.100.0.2 sport=8950 dport=30327 [ASSURED] mark=0 use=2
ipv4     2 udp      17 28 src=192.168.1.101 dst=192.168.2.28 sport=39109 dport=26258 [UNREPLIED] src=192.168.2.28 dst=192.168.1.101 sport=26258 dport=39109 mark=0 use=2

Where else can I look for a solution to the problem?

Sorry for the late response. Since the RF converter communicates on layer 2, it needs to be on the same network as the Home Assistant. I guess 192.168.1.101 and 192.168.2.28 are on different subnets, so they won’t be able to communicate each other.

Thanks for the response. I switched to the same network, but the converter still doesn’t respond to the command.
I’m attaching the packet send and receive capture from Wireshark.

First, please ensure that Smartmate app is working correctly. Next, how did you capture packets with Wireshark? Normally, Layer 2 packets cannot be captured because they are only passed through a switch hub. Lastly, please post the binary of the captured packet, and I’ll check for any issues. Thank you.

Yes, the Smartmate app is working correctly. The gate opens, and the green LED lights up on the RF Converter V3.0 device.

I suspect that the data being sent is incorrect or the checksum is off.
When sending the packet through this integration, the blue Wi-Fi LED on the RF Converter V3.0 blinks, but the green LED, which indicates the signal being sent to the gate, remains red.
Thank you for your help.

No.     Time           Source                Destination           Protocol Length Info
   1078 6.663952       192.168.2.30          192.168.2.28          UDP      85     26258 → 26258 Len=43

Frame 1078: 85 bytes on wire (680 bits), 85 bytes captured (680 bits) on interface \Device\NPF_{0F4E7421-ABE4-4575-85A5-6F700304567D}, id 0
Ethernet II, Src: Intel_de:65:4d (04:e8:b9:de:65:4d), Dst: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
    Destination: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Intel_de:65:4d (04:e8:b9:de:65:4d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
    [Stream index: 6]
Internet Protocol Version 4, Src: 192.168.2.30, Dst: 192.168.2.28
User Datagram Protocol, Src Port: 26258, Dst Port: 26258
Data (43 bytes)

0000  fe 01 01 0d 04 e8 b9 de 65 4d 08 3a 8d ee 2a 4f   ........eM.:..*O
0010  00 00 00 00 00 00 00 00 02 01 00 0c 66 e9 aa 52   ............f..R
0020  00 00 00 00 a9 80 40 00 00 75 ef                  [email protected].

No.     Time           Source                Destination           Protocol Length Info
   1082 6.685618       192.168.2.28          192.168.2.30          UDP      73     26258 → 26258 Len=31

Frame 1082: 73 bytes on wire (584 bits), 73 bytes captured (584 bits) on interface \Device\NPF_{0F4E7421-ABE4-4575-85A5-6F700304567D}, id 0
Ethernet II, Src: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f), Dst: Intel_de:65:4d (04:e8:b9:de:65:4d)
    Destination: Intel_de:65:4d (04:e8:b9:de:65:4d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
    [Stream index: 6]
Internet Protocol Version 4, Src: 192.168.2.28, Dst: 192.168.2.30
User Datagram Protocol, Src Port: 26258, Dst Port: 26258
Data (31 bytes)

0000  fe 02 01 0d 08 3a 8d ee 2a 4f 04 e8 b9 de 65 4d   .....:..*O....eM
0010  00 00 00 00 00 00 00 00 02 01 00 00 00 e6 ef      ...............

No.     Time           Source                Destination           Protocol Length Info
   1101 7.074682       192.168.2.28          192.168.2.30          UDP      74     26258 → 26259 Len=32

Frame 1101: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface \Device\NPF_{0F4E7421-ABE4-4575-85A5-6F700304567D}, id 0
Ethernet II, Src: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f), Dst: Intel_de:65:4d (04:e8:b9:de:65:4d)
    Destination: Intel_de:65:4d (04:e8:b9:de:65:4d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
    [Stream index: 6]
Internet Protocol Version 4, Src: 192.168.2.28, Dst: 192.168.2.30
User Datagram Protocol, Src Port: 26258, Dst Port: 26259
Data (32 bytes)

0000  fe 01 01 0d 08 3a 8d ee 2a 4f 04 e8 b9 de 65 4d   .....:..*O....eM
0010  00 00 00 00 00 00 00 00 21 01 00 01 00 00 08 ef   ........!.......

No.     Time           Source                Destination           Protocol Length Info
   1123 7.574880       192.168.2.28          192.168.2.30          UDP      74     26258 → 26259 Len=32

Frame 1123: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface \Device\NPF_{0F4E7421-ABE4-4575-85A5-6F700304567D}, id 0
Ethernet II, Src: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f), Dst: Intel_de:65:4d (04:e8:b9:de:65:4d)
    Destination: Intel_de:65:4d (04:e8:b9:de:65:4d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
    [Stream index: 6]
Internet Protocol Version 4, Src: 192.168.2.28, Dst: 192.168.2.30
User Datagram Protocol, Src Port: 26258, Dst Port: 26259
Data (32 bytes)

0000  fe 01 01 0d 08 3a 8d ee 2a 4f 04 e8 b9 de 65 4d   .....:..*O....eM
0010  00 00 00 00 00 00 00 00 21 01 00 01 00 00 08 ef   ........!.......

No.     Time           Source                Destination           Protocol Length Info
   2067 11.646526      Intel_de:65:4d        Espressif_ee:2a:4f    ARP      42     Who has 192.168.2.28? Tell 192.168.2.30

Frame 2067: 42 bytes on wire (336 bits), 42 bytes captured (336 bits) on interface \Device\NPF_{0F4E7421-ABE4-4575-85A5-6F700304567D}, id 0
Ethernet II, Src: Intel_de:65:4d (04:e8:b9:de:65:4d), Dst: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
    Destination: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Intel_de:65:4d (04:e8:b9:de:65:4d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: ARP (0x0806)
    [Stream index: 6]
Address Resolution Protocol (request)
    Hardware type: Ethernet (1)
    Protocol type: IPv4 (0x0800)
    Hardware size: 6
    Protocol size: 4
    Opcode: request (1)
    Sender MAC address: Intel_de:65:4d (04:e8:b9:de:65:4d)
    Sender IP address: 192.168.2.30
    Target MAC address: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
    Target IP address: 192.168.2.28

No.     Time           Source                Destination           Protocol Length Info
   2068 11.647935      Espressif_ee:2a:4f    Intel_de:65:4d        ARP      42     192.168.2.28 is at 08:3a:8d:ee:2a:4f

Frame 2068: 42 bytes on wire (336 bits), 42 bytes captured (336 bits) on interface \Device\NPF_{0F4E7421-ABE4-4575-85A5-6F700304567D}, id 0
Ethernet II, Src: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f), Dst: Intel_de:65:4d (04:e8:b9:de:65:4d)
    Destination: Intel_de:65:4d (04:e8:b9:de:65:4d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Source: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: ARP (0x0806)
    [Stream index: 6]
Address Resolution Protocol (reply)
    Hardware type: Ethernet (1)
    Protocol type: IPv4 (0x0800)
    Hardware size: 6
    Protocol size: 4
    Opcode: reply (2)
    Sender MAC address: Espressif_ee:2a:4f (08:3a:8d:ee:2a:4f)
    Sender IP address: 192.168.2.28
    Target MAC address: Intel_de:65:4d (04:e8:b9:de:65:4d)
    Target IP address: 192.168.2.30

Thank you for the detailed post. The packets were sent from 192.168.2.30 to 192.168.2.28 four times, and they’re not same. Could you please specify in more detail how you called send_command each time? and how your remote controllers are registered in Safemate app?