ESPHome + rc_switch + Faro Fan - need help!

Hello,

I’ve been using HA for a couple years with relatively basic “works out of the box” stuff like z-wave and zigbee.

I recently purchased a ceiling fan from Faro:

The remote that comes with it is a FT0316A that operates on the 433.92Mhz frequency.

Faro sell a wall switch for this fan but it’s like 120$ which I find pretty steep, so I figured I would try to control the fan with an ESP32. I looked at their documentation for the wall switch and apparently it needs to be paired so I don’t know if this is a problem in itself.

I hooked up an RF receiver and dumped rc_switch in the configuration. For the life of me I cannot get consistent codes out of the remote. I have played a bit with the filter, tolerance and idle settings but I can replicate the data with the same button press.

I have it set, rather randomly, at this:

tolerance: 100%
  filter: 300us
  idle: 1ms

When I press the on button, here’s what the logs put out:

[15:49:50][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=2 data='001001001001'
[15:49:58][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=2 data='0010010010'
[15:49:58][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=2 data='001001001001110011011'

The first data 001001001001 is when I press the On button (the fan is turned off and turns on)

Then when I press the On button again, this time I get 2 data outputs, 0010010010 followed by 001001001001110011011

When I continue pressing the on/off button, the data output is always different…any pointers as to how I should tackle this?

I’m really a beginner when it comes to radio frequencies and electronics so forgive me if my question is stupid.

Thanks!

Try with defaults, or something between.
Also if you have that cheapest four pin receiver without antenna /crystal, you might consider replacing it with better one.

remote_receiver:
  pin:
    number: GPIO14
  dump:
    - rc_switch
  tolerance: 60%
  idle: 1ms

You can long press the required key

When multiple identical codes appear, you can determine the code you need.

[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='1110101100000110000000001'
[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:03][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:04][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:04][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'
[16:43:04][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='111101100000110000000001'

111101100000110000000001
This repeated code is my remote control button code

Hey man, thanks for the tip with the long press, looks promissing. I just tried it out with another RF receiver model I purchased and I get the same code plenty of times in a row with your technique.

Will try to create a button and see if that works!