esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
293 stars 36 forks source link

remote_receiver error: Data is coming in too fast #19

Closed spattinson closed 5 years ago

spattinson commented 5 years ago

Env: Home Assistant, 433Mhz generic binary window/door sensors. Board: Wemos D1 mini Component: remote_receiver Description: Code cannot receive codes using rc_switch, get:

[15:26:32][W][remote.receiver:357]: Data is coming in too fast!

This may be significant:

[15:26:18][W][remote.receiver:320]: Remote Receiver Signal starts with a HIGH value. Usually this 
means you have to invert the signal using 'inverted: True' !

Where is this supposed to be set? The sample sketch for rc_switch ReceiveDemo_Advanced works fine As does OpenMQTTGateway

esphomeyaml:
  name: rf_bridge
  platform: ESP8266
  board: d1_mini
wifi:
  ssid: 'home'
  password: 'fileybay'

mqtt:
  broker: '192.168.1.122'
  username: 'scott'
  password: 'XXXXXXX'

# Enable logging
logger:

ota:
  password: 'fileybay'

remote_receiver:
  pin: D2
  dump: rc_switch

Log:

[15:26:18][I][logger:057]: Log initialized
[15:26:18][C][ota:465]: There have been 1 suspected unsuccessful boot attempts.
[15:26:18][I][application:053]: Running through setup()...
[15:26:18][C][remote.receiver:296]: Setting up Remote Receiver...
[15:26:18][C][wifi:027]: Setting up WiFi...
[15:26:18][I][wifi:279]: WiFi Connecting to 'home'...
[15:26:18][I][wifi:347]: WiFi connected!
[15:26:18][C][wifi:325]:   SSID: 'home'
[15:26:18][C][wifi:326]:   IP Address: 192.168.1.203
[15:26:18][C][wifi:328]:   BSSID: D8:50:E6:A8:1E:20
[15:26:18][C][wifi:330]:   Hostname: 'rf_bridge'
[15:26:18][C][wifi:332]:   Channel: 3
[15:26:18][C][wifi:333]:   Subnet: 255.255.255.0
[15:26:18][C][wifi:334]:   Gateway: 192.168.1.1
[15:26:18][C][wifi:335]:   DNS1: 192.168.1.1
[15:26:18][C][wifi:336]:   DNS2: 0.0.0.0
[15:26:18][C][ota:133]: Over-The-Air Updates:
[15:26:18][C][ota:134]:   Address: 192.168.1.203:8266
[15:26:18][C][ota:136]:   Using Password.
[15:26:18][C][mqtt.client:020]: Setting up MQTT...
[15:26:18][I][mqtt.client:079]: Connecting to MQTT...
[15:26:18][I][mqtt.client:115]: MQTT Connected!
[15:26:18][I][application:089]: setup() finished successfully!
[15:26:18][I][application:094]: You're running esphomelib v1.9.0 compiled on Dec  5 2018, 13:59:20
[15:26:18][C][wifi:340]: WiFi:
[15:26:18][C][wifi:325]:   SSID: 'home'
[15:26:18][C][wifi:326]:   IP Address: 192.168.1.203
[15:26:18][C][wifi:328]:   BSSID: D8:50:E6:A8:1E:20
[15:26:18][C][wifi:330]:   Hostname: 'rf_bridge'
[15:26:18][C][wifi:332]:   Channel: 3
[15:26:18][C][wifi:333]:   Subnet: 255.255.255.0
[15:26:18][C][wifi:334]:   Gateway: 192.168.1.1
[15:26:18][C][wifi:335]:   DNS1: 192.168.1.1
[15:26:18][C][wifi:336]:   DNS2: 0.0.0.0
[15:26:18][C][remote.receiver:316]: Remote Receiver:
[15:26:18][C][remote.receiver:317]:   Pin: GPIO4 (Mode: INPUT)
[15:26:18][W][remote.receiver:320]: Remote Receiver Signal starts with a HIGH value. Usually this means you have to invert the signal using 'inverted: True' !
[15:26:18][C][remote.receiver:322]:   Buffer Size: 1000
[15:26:18][C][remote.receiver:323]:   Tolerance: 25%
[15:26:18][C][remote.receiver:324]:   Filter out pulses shorter than: 10 us
[15:26:18][C][remote.receiver:325]:   Signal is done after 10000 us of no changes
[15:26:18][C][ota:133]: Over-The-Air Updates:
[15:26:18][C][ota:134]:   Address: 192.168.1.203:8266
[15:26:18][C][ota:136]:   Using Password.
[15:26:18][C][mqtt.client:054]: MQTT:
[15:26:18][C][mqtt.client:055]:   Server Address: 192.168.1.122:1883
[15:26:18][C][mqtt.client:056]:   Username: 'scott'
[15:26:18][C][mqtt.client:057]:   Client ID: 'rf_bridge-dc4f221d8d57'
[15:26:18][C][mqtt.client:059]:   Discovery prefix: 'homeassistant'
[15:26:18][C][mqtt.client:060]:   Discovery retain: YES
[15:26:18][C][mqtt.client:062]:   Topic Prefix: 'rf_bridge'
[15:26:18][C][mqtt.client:064]:   Log Topic: 'rf_bridge/debug'
[15:26:18][C][mqtt.client:067]:   Availability: 'rf_bridge/status'
[15:26:18][I][application:108]: Running through first loop()
[15:26:18][I][application:125]: First loop finished successfully!
[15:26:32][W][remote.receiver:357]: Data is coming in too fast!
[15:26:32][W][remote.receiver:357]: Data is coming in too fast!
[15:26:32][W][remote.receiver:357]: Data is coming in too fast!
[15:26:32][W][remote.receiver:357]: Data is coming in too fast!
[15:26:33][W][remote.receiver:357]: Data is coming in too fast!
[15:26:33][W][remote.receiver:357]: Data is coming in too fast!
[15:26:33][W][remote.receiver:357]: Data is coming in too fast!
[15:26:33][W][remote.receiver:357]: Data is coming in too fast!
[15:26:59][W][remote.receiver:357]: Data is coming in too fast!
[15:27:00][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:01][W][remote.receiver:357]: Data is coming in too fast!
[15:27:08][W][remote.receiver:357]: Data is coming in too fast!

Additional Information:

With ReceiveDemo_Advanced rc_switch demo sketch I get this:
Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10722,379,1008,1075,310,1071,314,1069,317,373,1012,1062,322,370,1017,1057,327,364,1021,1054,331,1049,337,1045,339,354,1030,1046,340,352,1032,1041,345,349,1036,350,1033,1040,346,1033,355,335,1049,1025,362,330,1051,338,1047,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 346 microseconds Protocol: 1
Raw data: 10717,382,1005,1046,345,1034,354,1028,357,336,1046,1031,353,342,1040,1033,356,337,1044,1031,355,1026,360,1025,362,331,1046,1028,363,331,1047,1028,362,332,1047,342,1040,1030,361,1020,366,331,1044,1033,356,337,1043,344,1041,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10714,388,998,1060,330,1048,339,1044,340,354,1028,1045,344,349,1032,1039,350,344,1036,1038,351,1033,351,1033,350,342,1041,1036,350,345,1034,1040,350,344,1037,349,1035,1037,352,1029,356,338,1043,1032,358,333,1048,341,1042,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10713,385,1000,1059,330,1049,337,1046,338,356,1027,1046,343,349,1032,1045,342,352,1030,1043,344,1037,351,1032,349,347,1036,1037,351,342,1038,1035,356,337,1043,346,1039,1032,355,1028,359,334,1045,1031,356,340,1038,351,1033,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10715,389,998,1061,328,1050,339,1043,340,353,1029,1048,339,353,1029,1043,346,349,1033,1038,352,1030,354,1029,355,342,1038,1036,353,340,1040,1037,349,347,1034,351,1032,1039,352,1030,354,341,1042,1032,355,339,1040,349,1039,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10712,385,1002,1061,330,1047,341,1040,344,351,1032,1043,343,351,1029,1044,347,346,1036,1040,343,1040,347,1036,348,346,1035,1040,347,347,1036,1037,352,341,1038,350,1037,1032,357,1025,360,334,1046,1030,357,338,1043,344,1039,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10714,385,1001,1059,332,1046,340,1046,337,356,1026,1047,343,351,1029,1045,341,352,1032,1042,345,1036,351,1030,355,340,1041,1035,352,343,1037,1036,355,338,1042,345,1036,1039,351,1030,354,341,1041,1034,352,342,1041,347,1035,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10714,389,997,1063,327,1051,338,1044,340,354,1030,1043,344,349,1031,1045,342,349,1032,1042,347,1034,353,1035,345,348,1036,1038,349,345,1037,1038,349,344,1039,347,1035,1037,355,1023,362,334,1046,1030,358,336,1043,346,1038,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10712,385,1003,1060,331,1049,339,1042,342,350,1032,1048,339,352,1029,1044,346,347,1033,1042,347,1033,351,1033,351,344,1038,1036,353,341,1040,1035,352,342,1039,349,1034,1036,354,1030,352,345,1037,1036,352,341,1040,348,1035,

Decimal: 7697716 (24Bit) Binary: 011101010111010100110100 Tri-State: F1FFF1FF01F0 PulseLength: 345 microseconds Protocol: 1
Raw data: 10712,390,998,1060,331,1048,339,1044,343,350,1030,1045,343,350,1033,1040,346,348,1035,1039,348,1036,349,1032,354,340,1040,1040,344,348,1035,1038,352,342,1037,350,1034,1038,354,1026,357,338,1043,1031,357,337,1045,344,1038,

The sensor send each trigger about ten times
If I change my yaml to raw/all instead of rc_switch I get this with esphomeyaml

```bash
[13:32:43][D][remote.raw:051]: Received Raw: 1578, -470, 251, -1832, 426, -1665,
 366, -402, 285, -414, 170, -475, 184, -421, 269, -417, 265, -549, 269, -1823, 289, -1805, 275, -427, 260, -441, 238, -477, 51, -2043, 231, -1866, 229, -435, 256, -433, 252, -504, 249, -449, 250, -452, 
[13:32:43][D][remote.raw:064]:   245, -464, 245, -1860, 173, -1930, 164, -1942, 145, -478, 245, -464, 250, -524, 238, -468, 240, -475, 237, -469, 234, -1859, 102, -524, 231, -486, 235, -530, 230, -509, 236, -501, 189, -3245, 235, -505, 230, -510, 230, -10000
[13:32:43][D][remote.raw:051]: Received Raw: 184, -667, 245, -1014, 165, -4345, 245, -728, 242, -740, 240, -737, 228, -777, 224, -4455, 233, -817, 212, -5099, 227, -1427, 50, -1312, 226, -987, 181, -1633, 226, -5135, 214, -1179, 222, -1295, 175, -3487, 166, -4627, 145, -4184, 200, 
[13:32:43][D][remote.raw:064]:   -1807, 162, -10000
[13:32:43][W][remote.receiver:357]: Data is coming in too fast!
[13:32:43][D][remote.raw:064]: Received Raw: 96, -4345, 186, -10000
[13:32:43][D][remote.raw:051]: Received Raw: 77, -3667, 41, -91, 43, -380, 70, -504, 228, -613, 60, -537, 121, -716, 47, -523, 46, -427, 158, -455, 23, -284, 73, -101, 193, -103, 69, -122, 49, -168, 121, -28, 57, -457, 222, -77, 112, -509, 95, -72, 182, -41, 51, -169, 129, -428, 99, 
[13:32:44][D][remote.raw:051]:   -67, 159, -271, 94, -85, 172, -27, 128, -108, 50, -50, 145, -155, 158, -200, 97, -58, 44, -101, 161, -95, 57, -394, 457, -176, 502, -85, 178, -88, 1323, -58, 74, -67, 103, -34, 349, -51, 421, -32, 508, -65, 104, -74, 416, -98, 1567, -59, 13, -97, 1433, 
[13:32:44][D][remote.raw:064]:   -17, 10000
[13:32:44][W][remote.receiver:357]: Data is coming in too fast!
[13:32:44][D][remote.raw:064]: Received Raw: -26, 97, -56, 201, -52, 45, -37, 1141, -67, 320, -31, 206, -108, 18, -45, 10000

Things I have tried:

different GPIOs, I started off using D4 GPIO2, because it has an LED and I could see when data arrived, This worked with other code not esphomeyaml. I am currently using D2 GPIO4 - same issue. swapped over rf receiver module: same issue tried increasing the buffer, esp8266 seems to crash mostly if you set it greater than 2kb, still crashes sometimes with 2kb, but when it didn't crash I get the same issue. Disabled ota in case they caused overhead. No Difference Thanks in advance. I'm moving from OPenMQTTGateway to esphomeyaml because I wish to standardise, have deployed one project.

OttoWinter commented 5 years ago

Can you try with

remote_receiver:
  pin:
    number: D2
    mode: INPUT_PULLUP
    inverted: True

(and in case that doesn't work maybe also with inverted: False

Thanks!

spattinson commented 5 years ago

Thanks for the quick reply. I have changed back to D4. I got the same error data too fast with inverted: True or False D4 is connected to the onboard LED. it remains lit but not bright and flashes when it receives something, the same as without pullup, I believe the LED comes on when that GPIO is low, so the pullup may not be effective? You will see from the log that I got a wdt reset on the previous boot, second and subsequent boots OK by pressing reset button

with "input_pullup: and "inverted: True" and "dump: raw" pretty much the same as before, I have not tried to compare the raw codes though. I got this:

[18:07:39][C][remote.receiver:296]: Setting up Remote Receiver...
[18:07:39][C][wifi:027]: Setting up WiFi...
[18:07:39][I][wifi:279]: WiFi Connecting to 'home'...
[18:07:39][I][wifi:347]: WiFi connected!
[18:07:39][C][wifi:325]:   SSID: 'home'
[18:07:39][C][wifi:326]:   IP Address: 192.168.1.203
[18:07:39][C][wifi:328]:   BSSID: D8:50:E6:A8:1E:20
[18:07:39][C][wifi:330]:   Hostname: 'rf_bridge'
[18:07:39][C][wifi:332]:   Channel: 3
[18:07:39][C][wifi:333]:   Subnet: 255.255.255.0
[18:07:39][C][wifi:334]:   Gateway: 192.168.1.1
[18:07:39][C][wifi:335]:   DNS1: 192.168.1.1
[18:07:39][C][wifi:336]:   DNS2: 0.0.0.0
[18:07:39][C][ota:133]: Over-The-Air Updates:
[18:07:39][C][ota:134]:   Address: 192.168.1.203:8266
[18:07:39][C][ota:136]:   Using Password.
[18:07:39][W][ota:140]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[18:07:39][C][mqtt.client:020]: Setting up MQTT...
[18:07:39][I][mqtt.client:079]: Connecting to MQTT...
[18:07:39][I][mqtt.client:115]: MQTT Connected!
[18:07:39][I][application:089]: setup() finished successfully!
[18:07:39][I][application:094]: You're running esphomelib v1.9.0 compiled on Dec  5 2018, 17:59:12
[18:07:39][C][wifi:340]: WiFi:
[18:07:39][C][wifi:325]:   SSID: 'home'
[18:07:39][C][wifi:326]:   IP Address: 192.168.1.203
[18:07:39][C][wifi:328]:   BSSID: D8:50:E6:A8:1E:20
[18:07:39][C][wifi:330]:   Hostname: 'rf_bridge'
[18:07:39][C][wifi:332]:   Channel: 3
[18:07:39][C][wifi:333]:   Subnet: 255.255.255.0
[18:07:39][C][wifi:334]:   Gateway: 192.168.1.1
[18:07:39][C][wifi:335]:   DNS1: 192.168.1.1
[18:07:39][C][wifi:336]:   DNS2: 0.0.0.0
[18:07:39][C][remote.receiver:316]: Remote Receiver:
[18:07:39][C][remote.receiver:317]:   Pin: GPIO2 (Mode: INPUT_PULLUP, INVERTED)
[18:07:39][C][remote.receiver:322]:   Buffer Size: 1000
[18:07:39][C][remote.receiver:323]:   Tolerance: 25%
[18:07:39][C][remote.receiver:324]:   Filter out pulses shorter than: 10 us
[18:07:39][C][remote.receiver:325]:   Signal is done after 10000 us of no changes
[18:07:39][C][ota:133]: Over-The-Air Updates:
[18:07:39][C][ota:134]:   Address: 192.168.1.203:8266
[18:07:39][C][ota:136]:   Using Password.
[18:07:39][W][ota:140]: Last Boot was an unhandled reset, will proceed to safe mode in 8 restarts
[18:07:39][C][mqtt.client:054]: MQTT:
[18:07:39][C][mqtt.client:055]:   Server Address: 192.168.1.122:1883
[18:07:39][C][mqtt.client:056]:   Username: 'scott'
[18:07:39][C][mqtt.client:057]:   Client ID: 'rf_bridge-dc4f221d8d57'
[18:07:39][C][mqtt.client:059]:   Discovery prefix: 'homeassistant'
[18:07:39][C][mqtt.client:060]:   Discovery retain: YES
[18:07:39][C][mqtt.client:062]:   Topic Prefix: 'rf_bridge'
[18:07:39][C][mqtt.client:064]:   Log Topic: 'rf_bridge/debug'
[18:07:39][C][mqtt.client:067]:   Availability: 'rf_bridge/status'
[18:07:39][I][application:108]: Running through first loop()
[18:07:39][I][application:125]: First loop finished successfully!
[18:07:48][W][remote.receiver:357]: Data is coming in too fast!
[18:07:48][D][remote.raw:051]: Received Raw: 41, -310, 160, -51, 64, -151, 326, -158, 28, -61, 278, -30, 124, -157, 328, -124, 404, -82, 231, -264, 27, -70, 92, -28, 149, -253, 542, -47, 53, -437, 163, -187, 24, -219, 101, -130, 30, -52, 198, -193, 115, -40, 58, -312, 22, -337, 173, 
[18:07:48][D][remote.raw:051]:   -267, 417, -26, 304, -158, 84, -40, 1403, -174, 139, -38, 24, -36, 203, -98, 168, -149, 109, -20, 26, -40, 26, -94, 87, -127, 21, -585, 305, -109, 60, -411, 136, -78, 39, -12, 457, -243, 347, -193, 950, -188, 49, -169, 381, -64, 13, -100, 50, -147, 
[18:07:48][D][remote.raw:051]:   211, -63, 61, -37, 343, -71, 129, -45, 195, -143, 409, -73, 53, -449, 398, -44, 42, -336, 138, -156, 34, -240, 571, -51, 52, -105, 49, -122, 223, -49, 123, -409, 12, -215, 181, -21, 25, -46, 72, -353, 64, -33, 33, -77, 78, -335, 13, -43, 91, -228, 217, 
[18:07:48][D][remote.raw:051]:   -544, 375, -68, 195, -19, 92, -49, 171, -81, 32, -79, 289, -122, 102, -150, 24, -295, 239, -112, 57, -101, 79, -296, 87, -65, 121, -237, 54, -11, 25, -22, 351, -53, 761, -281, 28, -74, 43, -257, 141, -68, 22, -68, 52, -18, 15, -111, 383, -293, 139, 
[18:07:48][D][remote.raw:051]:   -118, 302, -450, 45, -72, 286, -35, 130, -20, 649, -58, 70, -172, 415, -88, 110, -65, 164, -585, 27, -330, 69, -582, 131, -91, 410, -23, 452, -40, 22, -391, 45, -124, 293, -259, 186, -288, 351, -13, 190, -234, 330, -15, 655, -45, 247, -18, 44, -67, 
[18:07:48][D][remote.raw:051]:   195, -56, 94, -63, 74, -66, 67, -68, 238, -942, 49, -131, 559, -193, 297, -139, 291, -178, 266, -325, 177, -512, 43, -64, 424, -86, 42, -219, 192, -116, 55, -144, 34, -27, 202, -84, 73, -240, 43, -139, 326, -161, 253, -63, 181, -24, 81, -125, 204, 
[18:07:48][D][remote.raw:051]:   -352, 125, -115, 151, -84, 129, -147, 32, -381, 128, -256, 456, -31, 710, -31, 198, -80, 195, -446, 25, -82, 191, -76, 73, -50, 195, -40, 73, -190, 204, -355, 67, -14, 77, -484, 266, -156, 233, -112, 18, -218, 270, -38, 64, -164, 404, -208, 252, -44, 
[18:07:48][D][remote.raw:051]:   525, -154, 36, -47, 38, -186, 89, -78, 20, -86, 54, -70, 48, -183, 130, -318, 180, -39, 210, -231, 15, -151, 231, -12, 210, -173, 60, -3966, 42, -191, 38, -462, 94, -12, 451, -34, 111, -91, 35, -84, 65, -206, 656, -40, 71, -41, 30, -89, 346, -30, 33, 
[18:07:48][D][remote.raw:064]:   -111, 95, -84, 25, -76, 48, -11, 69, -62, 10000
[18:07:50][W][remote.receiver:357]: Data is coming in too fast!
[18:07:50][D][remote.raw:051]: Received Raw: -1157, 317, -414, 1067, -410, 1065, -1154, 343, -1171, 352, -411, 1114, -414, 1114, -1182, 357, -418, 1133, -421, 1130, -1198, 373, -1216, 382, -422, 1177, -429, 1175, -423, 1171, -1236, 383, -1254, 395, -436, 1214, -1280, 404, -1292, 418, 
[18:07:50][D][remote.raw:064]:   -435, 1269, -1322, 412, -456, 1285, -456, 1281, -455, 10000
[18:07:50][W][remote.receiver:357]: Data is coming in too fast!
[18:07:50][D][remote.raw:051]: Received Raw: -1293, 370, -459, 1213, -463, 1221, -1311, 404, -1336, 415, -469, 1305, -478, 1298, -1394, 432, -495, 1361, -499, 1364, -1465, 468, -1553, 508, -470, 1605, -549, 1525, -545, 1531, -726, 371, -352, 664, -422, 385, -343, 386, -65, 510, -411, 
[18:07:50][D][remote.raw:064]:   1681, -592, 384, -323, 811, -407, 388, -301, 395, -127, 499, -310, 1783, -522, 384, -304, 903, -377, 1719, -464, 1641, -435, 10000
[18:07:50][W][remote.receiver:357]: Data is coming in too fast!
[18:07:50][D][remote.raw:051]: Received Raw: -1007, 368, -278, 456, -143, 1964, -310, 1800, -281, 398, -277, 403, -268, 496, -262, 411, -262, 418, -260, 512, -252, 1861, -213, 1908, -190, 430, -254, 421, -246, 577, -243, 1876, -168, 1954, -144, 455, -250, 443, -246, 582, -230, 454, 
[18:07:50][D][remote.raw:064]:   -244, 455, -241, 502, -229, 1894, -92, 2037, -55, 2710, -240, 484, -242, 513, -234, 471, -238, 481, -236, 485, -236, 2624, -235, 500, -206, 1244, -236, 509, -125, 453, -74, 2555, -234, 527, -230, 631, -209, 2402, -143, 1524, -231, 10000
OttoWinter commented 5 years ago

The first line (41, -310, 160, -51, 64, -151, 326, -158, 28, -61, 278, -30, 124, -157, 328, -124, 404, -82, 231, -264, 27, -70, 92, -28, 149, -253, 542, -47, 53, -437, 163, -187, 24, -219, 101, -130, 30, -52, 198, -193, 115, -40, 58, -312, 22, -337, 173,) looks like some garbage data - maybe the RF receiver has a high gain setting or it's just noise.

The second one (-1157, 317, -414, 1067, -410, 1065, -1154, 343, -1171, 352, -411, 1114, -414, 1114, -1182, 357, -418, 1133, -421, 1130, -1198, 373, -1216, 382, -422, 1177, -429, 1175, -423, 1171, -1236, 383, -1254, 395, -436, 1214, -1280, 404, -1292, 418,) looks a lot more reasonable for remote codes.

I've seen somebody have this issue - and I didn't have a solution back then. I don't have any RF appliances so I never was able to test this integration except for IR codes.

But the fact that you do get valid data has me hopeful right now. I think this might be a combination of multiple issues. Ok, next try:

remote_receiver:
  pin:
    number: D2  # any pin should work, just an example
    mode: INPUT_PULLUP  # INPUT probably also could work
    # based on your output, it looks like inverted is not necessary
  # limit to only dumping RCSwitch data - I think the raw data might be slowing down the
  # ESP too much - if it still doesn't work try with raw again (the logs help me diagnose this :P)
  dump: rc_switch
  filter: 200us

And additionally, open up the <NODE_NAME>/src/main.cpp file and manually remove the delay(16); line near the end of the file. In the next esphomelib version that will no longer be necessary, but for now it should increase the update interval.

spattinson commented 5 years ago

No Change that I could notice. Still the same error with rc_switch as the dump mode. I have also tried changing the "idle" setting 2, 15 and 20, that did not help either. I also changed the clock speed in platformio.ini to 160Mhz because thats what I was using in Arduino with the rc_switch sample code which works fine:

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(115200);
  mySwitch.enableReceive(D4); 
}

void loop() {
  if (mySwitch.available()) {
    output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
    mySwitch.resetAvailable();
  }
}

There is usually some noise generated after reset. In the raw dump below I waited a few seconds after the noise finished before triggering my sensor (its a window open sensor with a reed switch) The data from that single trigger is [17:03.26] timestamp to the end of the log.

[17:02:50][I][ota:364]: OTA update finished!
[17:02:50][I][helpers:258]: Rebooting safely... Reason: 'ota'
[17:02:59][I][mqtt.client:115]: MQTT Connected!
[17:02:59][I][application:089]: setup() finished successfully!
[17:02:59][I][application:094]: You're running esphomelib v1.9.0 compiled on Dec  6 2018, 17:01:32
[17:02:59][C][wifi:340]: WiFi:
[17:02:59][C][wifi:325]:   SSID: 'home'
[17:02:59][C][wifi:326]:   IP Address: 192.168.1.203
[17:02:59][C][wifi:328]:   BSSID: D8:50:E6:A8:1E:20
[17:02:59][C][wifi:330]:   Hostname: 'rf_bridge'
[17:02:59][C][wifi:332]:   Channel: 3
[17:02:59][C][wifi:333]:   Subnet: 255.255.255.0
[17:02:59][C][wifi:334]:   Gateway: 192.168.1.1
[17:02:59][C][wifi:335]:   DNS1: 192.168.1.1
[17:02:59][C][wifi:336]:   DNS2: 0.0.0.0
[17:02:59][C][remote.receiver:316]: Remote Receiver:
[17:02:59][C][remote.receiver:317]:   Pin: GPIO2 (Mode: INPUT_PULLUP)
[17:02:59][W][remote.receiver:320]: Remote Receiver Signal starts with a HIGH value. Usually this means you have to invert the signal using 'inverted: True' !
[17:02:59][C][remote.receiver:322]:   Buffer Size: 1000
[17:02:59][C][remote.receiver:323]:   Tolerance: 25%
[17:02:59][C][remote.receiver:324]:   Filter out pulses shorter than: 200 us
[17:02:59][C][remote.receiver:325]:   Signal is done after 10000 us of no changes
[17:02:59][C][ota:133]: Over-The-Air Updates:
[17:02:59][C][ota:134]:   Address: 192.168.1.203:8266
[17:02:59][C][ota:136]:   Using Password.
[17:02:59][C][mqtt.client:054]: MQTT:
[17:02:59][C][mqtt.client:055]:   Server Address: 192.168.1.122:1883
[17:02:59][C][mqtt.client:056]:   Username: 'scott'
[17:02:59][C][mqtt.client:057]:   Client ID: 'rf_bridge-dc4f221d8d57'
[17:02:59][C][mqtt.client:059]:   Discovery prefix: 'homeassistant'
[17:02:59][C][mqtt.client:060]:   Discovery retain: YES
[17:02:59][C][mqtt.client:062]:   Topic Prefix: 'rf_bridge'
[17:02:59][C][mqtt.client:064]:   Log Topic: 'rf_bridge/debug'
[17:02:59][C][mqtt.client:067]:   Availability: 'rf_bridge/status'
[17:02:59][I][application:108]: Running through first loop()
[17:02:59][I][application:125]: First loop finished successfully!
[17:02:59][D][remote.raw:051]: Received Raw: 309, -285, 257, -604, 318, -426, 208, -409, 365, -222, 382, -310, 307, -340, 254, -284, 291, -298, 600, -387, 439, -386, 563, -1034, 558, -234, 315, -411, 278, -232, 613, -380, 433, -451, 340, -328, 270, -663, 505, -523, 503, -215, 217, 
[17:02:59][D][remote.raw:051]:   -361, 467, -367, 764, -404, 492, -265, 399, -283, 314, -512, 267, -270, 433, -318, 599, -353, 621, -451, 517, -472, 898, -212, 274, -709, 277, -895, 595, -299, 389, -245, 298, -1027, 373, -358, 445, -448, 345, -341, 355, -244, 464, -217, 267, -202, 
[17:02:59][D][remote.raw:051]:   896, -558, 245, -494, 539, -290, 492, -328, 248, -316, 1305, -648, 297, -780, 491, -368, 662, -285, 256, -345, 832, -662, 259, -444, 355, -395, 468, -387, 469, -1011, 576, -835, 223, -496, 627, -768, 490, -379, 425, -282, 341, -381, 400, -273, 237, 
[17:02:59][D][remote.raw:051]:   -360, 665, -979, 614, -207, 294, -510, 400, -1065, 299, -510, 606, -242, 564, -625, 427, -440, 611, -423, 655, -610, 355, -389, 617, -581, 351, -271, 311, -285, 388, -767, 897, -388, 759, -520, 206, -248, 1102, -608, 353, -301, 233, -214, 797, -407, 
[17:02:59][D][remote.raw:051]:   283, -316, 252, -505, 1332, -436, 202, -354, 208, -205, 532, -440, 773, -631, 368, -295, 498, -473, 688, -210, 664, -247, 269, -305, 493, -274, 215, -305, 204, -512, 227, -495, 446, -254, 257, -499, 584, -274, 263, -535, 212, -594, 214, -323, 498, 
[17:02:59][D][remote.raw:051]:   -232, 798, -303, 374, -348, 322, -685, 254, -282, 309, -433, 615, -419, 781, -221, 319, -240, 477, -322, 224, -508, 230, -343, 747, -309, 201, -472, 626, -536, 361, -458, 331, -739, 234, -304, 317, -354, 212, -296, 328, -250, 388, -477, 344, -226, 381, 
[17:02:59][D][remote.raw:051]:   -693, 392, -326, 575, -548, 230, -324, 204, -597, 811, -794, 1009, -239, 217, -676, 562, -623, 360, -740, 1181, -204, 244, -343, 679, -394, 228, -353, 335, -375, 283, -230, 282, -535, 510, -296, 655, -387, 797, -607, 257, -398, 540, -335, 221, -311, 
[17:02:59][D][remote.raw:051]:   593, -402, 309, -230, 259, -338, 358, -454, 346, -315, 614, -221, 750, -928, 377, -385, 584, -316, 524, -234, 431, -550, 209, -525, 990, -428, 374, -206, 312, -219, 470, -484, 306, -903, 434, -936, 359, -253, 761, -815, 252, -347, 713, -376, 299, -333, 
[17:02:59][D][remote.raw:051]:   291, -484, 306, -476, 204, -844, 591, -518, 225, -226, 301, -259, 292, -385, 473, -302, 501, -831, 427, -230, 508, -303, 351, -859, 1149, -795, 710, -269, 383, -293, 623, -269, 303, -254, 334, -305, 795, -516, 568, -899, 286, -333, 547, -693, 387, 
[17:02:59][D][remote.raw:051]:   -227, 248, -304, 211, -404, 436, -408, 222, -239, 209, -614, 427, -463, 225, -1003, 348, -259, 454, -402, 539, -261, 710, -354, 888, -477, 639, -296, 364, -370, 361, -834, 255, -604, 383, -242, 295, -366, 524, -307, 419, -201, 398, -387, 551, -472, 
[17:02:59][D][remote.raw:051]:   340, -371, 312, -449, 248, -330, 436, -224, 601, -255, 704, -343, 403, -520, 308, -284, 448, -216, 359, -242, 470, -391, 631, -273, 550, -254, 4534, -440, 478, -412, 217, -447, 655, -640, 245, -314, 361, -408, 387, -232, 426, -257, 276, -317, 321, 
[17:02:59][D][remote.raw:064]:   -399, 10000
[17:02:59][W][remote.receiver:357]: Data is coming in too fast!
[17:02:59][D][remote.raw:064]: Received Raw: -301, 1702, -363, 522, -433, 557, -364, 470, -1119, 898, -1059, 10000
[17:02:59][W][remote.receiver:357]: Data is coming in too fast!
[17:02:59][D][remote.raw:051]: Received Raw: -791, 477, -615, 5880, -2336, 1208, -2718, 1753, -686, 5351, -3079, 734, -652, 985, -553, 1634, -243, 1646, -528, 265, -360, 2306, -1119, 3051, -490, 272, -287, 677, -442, 2088, -812, 472, -234, 1055, -1388, 259, -2235, 322, -859, 939, 
[17:02:59][D][remote.raw:051]:   -286, 283, -268, 477, -341, 1966, -322, 586, -323, 787, -228, 603, -325, 294, -215, 450, -1098, 230, -285, 1430, -2495, 1217, -947, 579, -879, 240, -231, 274, -316, 302, -502, 457, -394, 648, -382, 237, -689, 491, -818, 314, -203, 469, -229, 234, -294, 
[17:03:00][D][remote.raw:051]:   202, -450, 290, -437, 484, -623, 381, -420, 552, -373, 258, -216, 725, -573, 218, -1181, 524, -414, 722, -322, 613, -315, 1189, -648, 410, -434, 334, -386, 798, -227, 243, -415, 283, -424, 563, -585, 204, -290, 256, -1667, 209, -233, 1124, -845, 1329, 
[17:03:00][D][remote.raw:051]:   -259, 224, -978, 350, -916, 222, -218, 1587, -278, 246, -312, 218, -643, 741, -551, 878, -436, 335, -1046, 377, -1443, 221, -1276, 340, -491, 475, -665, 627, -478, 512, -406, 589, -292, 291, -700, 213, -259, 660, -737, 422, -735, 753, -867, 365, -281, 
[17:03:00][D][remote.raw:051]:   490, -360, 266, -492, 255, -454, 465, -371, 557, -232, 285, -436, 1209, -417, 343, -629, 624, -229, 728, -1154, 534, -261, 242, -358, 238, -365, 536, -566, 266, -227, 415, -205, 549, -259, 349, -279, 311, -270, 644, -358, 257, -573, 743, -304, 345, 
[17:03:00][D][remote.raw:051]:   -376, 264, -206, 1467, -556, 366, -429, 431, -1400, 288, -794, 482, -312, 669, -353, 322, -220, 673, -1408, 235, -323, 545, -329, 342, -202, 330, -688, 210, -568, 334, -260, 694, -388, 336, -289, 573, -228, 549, -225, 532, -274, 390, -282, 232, -229, 
[17:03:00][D][remote.raw:051]:   592, -764, 584, -496, 278, -405, 410, -782, 444, -1553, 367, -222, 604, -236, 427, -322, 312, -1263, 2458, -432, 662, -322, 517, -279, 450, -501, 1032, -637, 1081, -651, 470, -339, 323, -301, 627, -642, 591, -576, 676, -316, 303, -507, 237, -544, 270, 
[17:03:00][D][remote.raw:051]:   -558, 747, -424, 223, -664, 310, -349, 334, -265, 1136, -238, 262, -300, 1087, -211, 211, -1193, 379, -272, 354, -509, 249, -202, 483, -492, 316, -809, 529, -406, 304, -706, 858, -300, 425, -420, 360, -247, 355, -277, 420, -236, 596, -422, 265, -267, 
[17:03:00][D][remote.raw:064]:   516, -214, 808, -5598, 653, -222, 773, -809, 1983, -1667, 10000
[17:03:26][D][remote.raw:051]: Received Raw: -567, 207, -212, 269, -289, 275, -400, 436, -249, 503, -396, 439, -420, 468, -1105, 416, -335, 402, -784, 490, -701, 583, -417, 217, -271, 658, -617, 424, -398, 930, -245, 666, -331, 683, -419, 338, -729, 363, -349, 231, -223, 336, -652, 
[17:03:26][D][remote.raw:051]:   487, -349, 325, -263, 445, -930, 600, -601, 465, -308, 298, -262, 696, -531, 642, -336, 222, -394, 317, -201, 456, -330, 287, -997, 817, -792, 300, -377, 382, -350, 507, -1344, 325, -398, 215, -357, 405, -417, 275, -296, 327, -500, 230, -402, 344, 
[17:03:26][D][remote.raw:051]:   -225, 255, -258, 438, -358, 658, -306, 315, -515, 392, -887, 755, -234, 432, -271, 332, -390, 552, -345, 334, -495, 756, -338, 553, -628, 322, -449, 219, -481, 1113, -308, 213, -344, 259, -447, 291, -1192, 536, -521, 660, -254, 201, -767, 206, -372, 
[17:03:26][D][remote.raw:051]:   367, -856, 342, -771, 355, -537, 492, -220, 257, -357, 602, -310, 1143, -331, 317, -312, 697, -530, 298, -409, 612, -701, 248, -605, 322, -281, 1196, -256, 218, -224, 550, -323, 903, -214, 491, -2458, 411, -201, 303, -686, 248, -430, 621, -711, 854, 
[17:03:26][D][remote.raw:051]:   -215, 427, -1017, 527, -358, 639, -614, 302, -404, 203, -671, 588, -330, 676, -571, 1101, -631, 319, -381, 326, -257, 626, -706, 449, -442, 202, -479, 438, -382, 391, -607, 308, -334, 361, -300, 295, -334, 231, -1545, 377, -580, 203, -219, 280, -324, 
[17:03:26][D][remote.raw:051]:   442, -1099, 346, -453, 682, -274, 227, -399, 441, -578, 680, -332, 380, -247, 694, -316, 332, -660, 567, -456, 222, -296, 226, -1187, 467, -379, 634, -308, 660, -505, 434, -832, 308, -264, 456, -478, 645, -282, 466, -774, 225, -229, 569, -543, 391, 
[17:03:26][D][remote.raw:051]:   -406, 260, -316, 359, -218, 311, -882, 306, -352, 476, -488, 236, -736, 337, -217, 296, -540, 211, -443, 430, -331, 689, -448, 1003, -391, 320, -544, 406, -459, 815, -235, 399, -760, 293, -468, 366, -581, 529, -247, 282, -320, 281, -429, 234, -776, 
[17:03:26][D][remote.raw:051]:   313, -391, 373, -297, 259, -269, 344, -263, 270, -399, 361, -252, 258, -250, 478, -583, 269, -685, 374, -1155, 397, -229, 829, -399, 337, -284, 847, -313, 327, -227, 382, -735, 1175, -770, 274, -400, 210, -394, 665, -231, 525, -287, 250, -232, 378, 
[17:03:26][D][remote.raw:051]:   -326, 463, -614, 211, -284, 435, -625, 403, -350, 298, -360, 240, -326, 265, -1015, 636, -751, 368, -491, 395, -321, 429, -426, 540, -231, 367, -715, 349, -265, 522, -222, 353, -680, 554, -223, 216, -256, 802, -221, 332, -404, 213, -463, 411, -246, 
[17:03:26][D][remote.raw:051]:   511, -253, 404, -377, 282, -415, 215, -369, 307, -598, 307, -511, 241, -281, 350, -448, 364, -212, 219, -262, 581, -376, 212, -282, 227, -331, 468, -568, 554, -568, 244, -475, 542, -283, 682, -326, 220, -855, 289, -303, 664, -661, 527, -456, 219, -288, 
[17:03:26][D][remote.raw:051]:   423, -377, 402, -584, 286, -527, 407, -343, 407, -459, 316, -668, 264, -257, 414, -239, 477, -372, 1246, -396, 415, -436, 340, -508, 1254, -548, 456, -867, 432, -293, 543, -307, 289, -460, 800, -535, 496, -288, 476, -302, 278, -449, 318, -582, 335, 
[17:03:26][D][remote.raw:051]:   -373, 750, -331, 374, -363, 438, -510, 222, -633, 472, -391, 485, -339, 894, -207, 434, -259, 256, -606, 239, -875, 203, -514, 452, -206, 248, -1054, 485, -664, 358, -276, 286, -474, 746, -217, 261, -269, 664, -241, 337, -639, 661, -912, 281, -831, 
[17:03:26][D][remote.raw:051]:   438, -473, 447, -263, 214, -223, 927, -546, 254, -555, 255, -659, 540, -330, 353, -417, 207, -399, 340, -830, 722, -517, 668, -339, 261, -250, 366, -1231, 224, -374, 371, -235, 1261, -470, 398, -274, 229, -239, 275, -331, 217, -695, 665, -274, 302, 
[17:03:26][D][remote.raw:051]:   -511, 356, -564, 474, -345, 245, -355, 402, -235, 468, -253, 268, -294, 479, -700, 670, -203, 471, -499, 451, -288, 522, -252, 580, -243, 234, -964, 293, -722, 360, -535, 544, -401, 268, -512, 214, -706, 735, -312, 213, -280, 264, -350, 1007, -212, 
[17:03:26][D][remote.raw:051]:   750, -250, 386, -231, 242, -314, 1012, -216, 238, -234, 643, -825, 287, -330, 487, -523, 393, -390, 455, -580, 436, -598, 348, -295, 342, -640, 298, -414, 352, -325, 274, -443, 625, -388, 329, -993, 680, -442, 691, -216, 280, -281, 389, -582, 331, 
[17:03:26][D][remote.raw:051]:   -452, 983, -457, 430, -257, 594, -231, 597, -315, 328, -424, 572, -388, 402, -496, 685, -425, 665, -327, 407, -326, 277, -771, 470, -340, 925, -455, 267, -322, 477, -486, 338, -351, 274, -335, 250, -721, 541, -318, 275, -613, 313, -457, 471, -385, 259, 
[17:03:26][D][remote.raw:051]:   -817, 245, -242, 482, -502, 475, -716, 1242, -338, 440, -1105, 432, -1075, 1161, -352, 1132, -370, 382, -1099, 374, -1088, 1092, -367, 360, -1087, 358, -1079, 1086, -365, 1084, -371, 355, -1088, 356, -1083, 356, -1078, 1080, -368, 1082, -370, 353, 
[17:03:26][D][remote.raw:064]:   -1091, 1079, -367, 1082, -372, 354, -1089, 1078, -368, 358, -1085, 353, -1083, 356, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 1099, -343, 379, -1058, 381, -1055, 1104, -342, 1103, -347, 382, -1060, 381, -1058, 1100, -346, 379, -1059, 380, -1069, 405, -364, 322, -344, 1100, -354, 370, -1074, 368, -1068, 366, -1071, 1080, -377, 1054, -427, 295, -1136, 1030, -425, 
[17:03:26][D][remote.raw:064]:   1024, -433, 292, -1142, 1028, -425, 302, -1132, 309, -1120, 321, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 1096, -360, 358, -1088, 347, -1083, 1072, -380, 1071, -382, 345, -1094, 348, -1090, 1063, -394, 331, -1091, 355, -1086, 1071, -374, 1077, -382, 353, -1092, 246, -1170, 360, -1083, 1079, -365, 1075, -381, 350, -1087, 1080, -371, 1080, -372, 
[17:03:26][D][remote.raw:064]:   353, -1092, 1073, -377, 351, -1083, 356, -1079, 359, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 1112, -336, 383, -1063, 378, -1054, 1097, -355, 1097, -353, 373, -1064, 378, -1058, 1103, -354, 368, -1069, 372, -1062, 1098, -349, 1100, -349, 367, -1075, 378, -1061, 376, -1060, 492, -380, 227, -441, 1003, -356, 373, -1065, 1102, -354, 
[17:03:26][D][remote.raw:064]:   1092, -361, 367, -1069, 1098, -354, 371, -1069, 371, -1064, 373, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 576, -246, 310, -358, 359, -1033, 405, -1033, 1119, -340, 1106, -338, 387, -1055, 387, -1050, 1112, -333, 390, -1055, 381, -1053, 1107, -340, 1110, -341, 385, -1056, 384, -1057, 386, -1049, 1104, -347, 1107, -342, 395, -1045, 1107, -341, 
[17:03:26][D][remote.raw:064]:   1105, -349, 382, -1061, 1098, -353, 373, -1065, 381, -1056, 382, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 1136, -314, 403, -1038, 397, -1052, 1105, -336, 506, -288, 323, -332, 392, -2792, 811, -334, 380, -1053, 396, -1044, 1116, -332, 1112, -341, 386, -1055, 386, -1047, 397, -1041, 1114, -336, 1115, -337, 387, -1054, 1114, -338, 1105, -352, 
[17:03:26][D][remote.raw:064]:   378, -1060, 1110, -339, 385, -1056, 385, -1053, 385, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 1136, -318, 402, -1036, 402, -1036, 1121, -327, 1124, -336, 398, -1037, 391, -1045, 1117, -333, 392, -1046, 395, -1048, 1114, -334, 1112, -343, 381, -1058, 391, -1045, 393, -1042, 1111, -343, 1106, -347, 381, -1057, 1108, -347, 1108, -338, 
[17:03:26][D][remote.raw:064]:   385, -1058, 1110, -348, 379, -1061, 382, -1054, 385, -10000
[17:03:26][W][remote.receiver:357]: Data is coming in too fast!
[17:03:26][D][remote.raw:051]: Received Raw: 1137, -312, 407, -1036, 398, -1040, 1121, -326, 1123, -334, 391, -1048, 397, -1043, 932, -523, 388, -1047, 397, -1049, 1109, -332, 1122, -334, 388, -1056, 392, -1048, 392, -1050, 1113, -331, 1120, -339, 387, -1061, 1110, -344, 1115, -346, 
[17:03:26][D][remote.raw:064]:   385, -1064, 1113, -348, 381, -1062, 382, -1062, 387, -10000
OttoWinter commented 5 years ago

Ok, that is looking good. I've created a new branch with some minor changes to the remote receiver component which should help with this bug:

You can try the changes with:

esphomeyaml:
  esphomelib_version:
    branch: remote-receiver
spattinson commented 5 years ago

I am now getting codes and they look consistent. I receive data is coming in too fast still several times per second constantly.

[10:10:22][I][mqtt.client:209]: MQTT Connected!
[10:10:22][I][application:089]: setup() finished successfully!
[10:10:22][I][application:094]: You're running esphomelib v1.10.0-dev compiled on Dec  7 2018, 10:09:06
[10:10:22][C][wifi:338]: WiFi:
[10:10:22][C][wifi:323]:   SSID: 'home'
[10:10:22][C][wifi:324]:   IP Address: 192.168.1.203
[10:10:22][C][wifi:326]:   BSSID: D8:50:E6:A8:1E:20
[10:10:22][C][wifi:328]:   Hostname: 'rf_bridge'
[10:10:22][C][wifi:330]:   Channel: 3
[10:10:22][C][wifi:331]:   Subnet: 255.255.255.0
[10:10:22][C][wifi:332]:   Gateway: 192.168.1.1
[10:10:22][C][wifi:333]:   DNS1: 192.168.1.1
[10:10:22][C][wifi:334]:   DNS2: 0.0.0.0
[10:10:22][C][logger:094]: Logger:
[10:10:22][C][logger:095]:   Level: DEBUG
[10:10:22][C][logger:096]:   Log Baud Rate: 115200
[10:10:22][C][remote.receiver:312]: Remote Receiver:
[10:10:22][C][remote.receiver:313]:   Pin: GPIO4 (Mode: INPUT_PULLUP)
[10:10:22][W][remote.receiver:316]: Remote Receiver Signal starts with a HIGH value. Usually this means you have to invert the signal using 'inverted: True' !
[10:10:22][C][remote.receiver:318]:   Buffer Size: 1000
[10:10:22][C][remote.receiver:319]:   Tolerance: 25%
[10:10:22][C][remote.receiver:320]:   Filter out pulses shorter than: 200 us
[10:10:22][C][remote.receiver:321]:   Signal is done after 10000 us of no changes
[10:10:22][C][ota:140]: Over-The-Air Updates:
[10:10:22][C][ota:141]:   Address: 192.168.1.203:8266
[10:10:22][C][ota:143]:   Using Password.
[10:10:22][W][ota:147]: Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts
[10:10:22][C][mqtt.client:058]: MQTT:
[10:10:22][C][mqtt.client:060]:   Server Address: 192.168.1.122:1883 (192.168.1.122)
[10:10:22][C][mqtt.client:061]:   Username: 'scott'
[10:10:22][C][mqtt.client:062]:   Client ID: 'rf_bridge-dc4f221d8d57'
[10:10:22][C][mqtt.client:064]:   Discovery prefix: 'homeassistant'
[10:10:22][C][mqtt.client:065]:   Discovery retain: YES
[10:10:22][C][mqtt.client:067]:   Topic Prefix: 'rf_bridge'
[10:10:23][C][mqtt.client:069]:   Log Topic: 'rf_bridge/debug'
[10:10:23][C][mqtt.client:072]:   Availability: 'rf_bridge/status'
[10:10:23][I][application:108]: Running through first loop()
[10:10:23][I][application:135]: First loop finished successfully!
[10:10:23][W][remote.receiver:328]: Data is coming in too fast!
[10:10:23][W][remote.receiver:328]: Data is coming in too fast!
[10:10:23][W][remote.receiver:328]: Data is coming in too fast!
[10:10:24][W][remote.receiver:328]: Data is coming in too fast!
[10:10:24][W][remote.receiver:328]: Data is coming in too fast!
[10:10:24][W][remote.receiver:328]: Data is coming in too fast!
[10:10:25][W][remote.receiver:328]: Data is coming in too fast!
[10:10:25][W][remote.receiver:328]: Data is coming in too fast!
[10:10:25][W][remote.receiver:328]: Data is coming in too fast!
[10:10:25][W][remote.receiver:328]: Data is coming in too fast!
[10:10:25][W][remote.receiver:328]: Data is coming in too fast!
[10:10:26][W][remote.receiver:328]: Data is coming in too fast!
[10:10:26][W][remote.receiver:328]: Data is coming in too fast!
[10:10:26][W][remote.receiver:328]: Data is coming in too fast!
[10:10:26][W][remote.receiver:328]: Data is coming in too fast!
[10:10:27][W][remote.receiver:328]: Data is coming in too fast!
[10:10:27][W][remote.receiver:328]: Data is coming in too fast!
[10:10:27][W][remote.receiver:328]: Data is coming in too fast!
[10:10:28][W][remote.receiver:328]: Data is coming in too fast!
[10:10:28][W][remote.receiver:328]: Data is coming in too fast!
[10:10:28][W][remote.receiver:328]: Data is coming in too fast!
[10:10:28][W][remote.receiver:328]: Data is coming in too fast!
[10:10:29][W][remote.receiver:328]: Data is coming in too fast!
[10:10:29][W][remote.receiver:328]: Data is coming in too fast!
[10:10:29][W][remote.receiver:328]: Data is coming in too fast!
[10:10:29][W][remote.receiver:328]: Data is coming in too fast!
[10:10:30][W][remote.receiver:328]: Data is coming in too fast!
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='1001100100110001101101'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:10:30][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011'
[10:10:31][W][remote.receiver:328]: Data is coming in too fast!
[10:10:31][W][remote.receiver:328]: Data is coming in too fast!
[10:10:31][W][remote.receiver:328]: Data is coming in too fast!
[10:10:31][W][remote.receiver:328]: Data is coming in too fast!
[10:10:32][W][remote.receiver:328]: Data is coming in too fast!
[10:10:32][W][remote.receiver:328]: Data is coming in too fast!

For a test I triggered a different sensor (pir sensor in my hallway) to see the result, this log is from mqtt:

rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='110000010101010101010100'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='11000001010101010101'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='11000001010101010101'
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!

Definite progress then, thanks for this! As background information on what I am doing. I had an old gsm alarm system with these sensors (smoke alarm, window/door reed sensor, vibration sensor etc) . I pulled the rf receiver out of the alarm box and soldered it to my esp8266. I am using these sensors for home security, presence detection, switching on lights etc.

Is there a way to filter out the duplicate codes?

So I have configured a binary sensor using this information:

binary_sensor:
  - platform: remote_receiver
    name: "Window bathroom"
    rc_switch_raw:
      code: '100110010011000110110100'
      protocol: 1

I get this in the log:

[10:41:34][W][remote.receiver:328]: Data is coming in too fast!
[10:41:34][W][remote.receiver:328]: Data is coming in too fast!
[10:41:34][W][remote.receiver:328]: Data is coming in too fast!
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state ON
[10:41:34][D][binary_sensor:027]: 'Window bathroom': Sending state OFF
[10:41:34][D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='1001100100110001101101'
[10:41:34][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011000110110100'
[10:41:35][D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011'
[10:41:35][W][remote.receiver:328]: Data is coming in too fast!
[10:41:35][W][remote.receiver:328]: Data is coming in too fast!
[10:41:36][W][remote.receiver:328]: Data is coming in too fast!

and this over mqtt showing that it has autoconfigured into home assistant and working

rf_bridge/debug [I][mqtt.client:209]: MQTT Connected!
rf_bridge/status online
homeassistant/binary_sensor/rf_bridge/window_bathroom/config {"name":"Window bathroom","state_topic":"rf_bridge/binary_sensor/window_bathroom/state","availability_topic":"rf_bridge/status","unique_id":"ESPbinary_sensorwindow_bathroom","device":{"identifiers":"dc4f221d8d57","name":"rf_bridge","sw_version":"esphomelib v1.10.0-dev Dec  7 2018, 10:34:11","model":"PLATFORMIO_D1_MINI","manufacturer":"espressif"}}
rf_bridge/debug [I][application:089]: setup() finished successfully!
rf_bridge/debug [I][application:094]: You're running esphomelib v1.10.0-dev compiled on Dec  7 2018, 10:34:11
rf_bridge/debug [C][wifi:338]: WiFi:
rf_bridge/debug [C][wifi:323]:   SSID: 'home'
rf_bridge/debug [C][wifi:324]:   IP Address: 192.168.1.203
rf_bridge/debug [C][wifi:326]:   BSSID: D8:50:E6:A8:1E:20
rf_bridge/debug [C][wifi:328]:   Hostname: 'rf_bridge'
rf_bridge/debug [C][wifi:330]:   Channel: 3
rf_bridge/debug [C][wifi:331]:   Subnet: 255.255.255.0
rf_bridge/debug [C][wifi:332]:   Gateway: 192.168.1.1
rf_bridge/debug [C][wifi:333]:   DNS1: 192.168.1.1
rf_bridge/debug [C][wifi:334]:   DNS2: 0.0.0.0
rf_bridge/debug [C][logger:094]: Logger:
rf_bridge/debug [C][logger:095]:   Level: DEBUG
rf_bridge/debug [C][logger:096]:   Log Baud Rate: 115200
rf_bridge/debug [C][remote.receiver:312]: Remote Receiver:
rf_bridge/debug [C][remote.receiver:313]:   Pin: GPIO4 (Mode: INPUT_PULLUP)
rf_bridge/debug [W][remote.receiver:316]: Remote Receiver Signal starts with a HIGH value. Usually this means you have to invert the signal using 'inverted: True' !
rf_bridge/debug [C][remote.receiver:318]:   Buffer Size: 1000
rf_bridge/debug [C][remote.receiver:319]:   Tolerance: 25%
rf_bridge/debug [C][remote.receiver:320]:   Filter out pulses shorter than: 200 us
rf_bridge/debug [C][remote.receiver:321]:   Signal is done after 10000 us of no changes
rf_bridge/debug [C][ota:140]: Over-The-Air Updates:
rf_bridge/debug [C][ota:141]:   Address: 192.168.1.203:8266
rf_bridge/debug [C][ota:143]:   Using Password.
rf_bridge/debug [C][mqtt.client:058]: MQTT:
rf_bridge/debug [C][mqtt.client:060]:   Server Address: 192.168.1.122:1883 (192.168.1.122)
rf_bridge/debug [C][mqtt.client:061]:   Username: 'scott'
rf_bridge/debug [C][mqtt.client:062]:   Client ID: 'rf_bridge-dc4f221d8d57'
rf_bridge/debug [C][mqtt.client:064]:   Discovery prefix: 'homeassistant'
rf_bridge/debug [C][mqtt.client:065]:   Discovery retain: YES
rf_bridge/debug [C][mqtt.client:067]:   Topic Prefix: 'rf_bridge'
rf_bridge/debug [C][mqtt.client:069]:   Log Topic: 'rf_bridge/debug'
rf_bridge/debug [C][mqtt.client:072]:   Availability: 'rf_bridge/status'
rf_bridge/debug [C][binary_sensor.mqtt:025]: MQTT Binary Sensor 'Window bathroom':
rf_bridge/debug [C][binary_sensor.mqtt:029]:   State Topic: 'rf_bridge/binary_sensor/window_bathroom/state'
rf_bridge/debug [I][application:108]: Running through first loop()
rf_bridge/debug [I][application:135]: First loop finished successfully!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state ON
rf_bridge/binary_sensor/window_bathroom/state ON
rf_bridge/debug [D][binary_sensor:027]: 'Window bathroom': Sending state OFF
rf_bridge/binary_sensor/window_bathroom/state OFF
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='100110010011'
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
hw/debug [D][sensor.dallas:157]: 'Hot Water Temperature': Got Temperature=56.8°C
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
rf_bridge/debug [W][remote.receiver:328]: Data is coming in too fast!
OttoWinter commented 5 years ago

That's great! I wonder if I should increase the default remote receiver buffer size for the ESP8266. The ESP32 already has 10kb of buffer allocated by the default (ESP8266 uses 1kb by default). Maybe increasing it would help.

You can filter out the duplicate pulses using binary sensor filters:

remote_receiver:
  pin: D2
  dump: rc_switch
  filter: 200us
  buffer_size: 10kb

binary_sensor:
  - platform: remote_receiver
    name: "Window bathroom"
    rc_switch_raw:
      code: '100110010011000110110100'
      protocol: 1
    filters:
      - delayed_off: 1s
spattinson commented 5 years ago

Increasing the buffer size causes crashes, this is with 4kb, even with 2kb I get crashes. Why would it be trying to alloc 31736 bytes? device only has 80kb total for user data?

[15:36:59]
[15:36:59]Exception (29):
WARNING Exception type: unknown
[15:36:59]epc1=0x402099da epc2=0x00000000 epc3=0x00000000 excvaddr=0x00003dfc depc=0x00000000
WARNING Decoded 0x402099da: void std::vector<int, std::allocator<int> >::_M_emplace_back_aux<int>(int&&)
[15:36:59]
[15:36:59]ctx: cont 
[15:36:59]sp: 3ffffd00 end: 3fffffd0 offset: 01a0
[15:36:59]
[15:36:59]>>>stack>>>
WARNING Found stack trace! Trying to decode it
[15:36:59]3ffffea0:  00000000 00000000 00000000 fffffffe  
[15:36:59]3ffffeb0:  ffffffff 3fffc6fc 00000001 3fff0c28  
[15:36:59]3ffffec0:  00000000 3fff27c4 3fff0eac 3fffff30  
[15:36:59]3ffffed0:  00000000 4020bd38 00007bf8 401004e8  
WARNING Decoded 0x4020bd38: operator new(unsigned int)
WARNING Decoded 0x401004e8: malloc
[15:36:59]3ffffee0:  00000000 402099c7 00007bf8 4020bd38  
WARNING Decoded 0x402099c7: void std::vector<int, std::allocator<int> >::_M_emplace_back_aux<int>(int&&)
WARNING Decoded 0x4020bd38: operator new(unsigned int)
[15:36:59]3ffffef0:  3fff0fe8 00001efe 3fff2594 402099c7  
WARNING Decoded 0x402099c7: void std::vector<int, std::allocator<int> >::_M_emplace_back_aux<int>(int&&)
[15:36:59]3fffff00:  3fff2594 3fff253c 0000008d ffffd8f0  
[15:36:59]3fffff10:  3fff2594 3fff253c 0000006c 40209a20  
WARNING Decoded 0x40209a20: void std::vector<int, std::allocator<int> >::emplace_back<int>(int&&)
[15:36:59]3fffff20:  00000000 3fff253c 0000008d 40209b65  
WARNING Decoded 0x40209b65: esphomelib::remote::RemoteReceiverComponent::loop()
[15:36:59]3fffff30:  ffffd8f0 00000000 4bc6a7f0 00000000  
[15:36:59]3fffff40:  0000006c 00003dfc 00002710 a10624dd  
[15:36:59]3fffff50:  00000000 00000000 3fff1f2c 3fff253c  
[15:36:59]3fffff60:  3fff27d4 00000002 3fff253c 40204d29  
WARNING Decoded 0x40204d29: esphomelib::Component::loop_()
[15:36:59]3fffff70:  3fff27e8 00000002 3fff0c28 40202dd0  
WARNING Decoded 0x40202dd0: esphomelib::Application::loop()
[15:36:59]3fffff80:  00000000 3fff27e8 00000018 3fff25ec  
[15:36:59]3fffff90:  3fffff70 feefeffe feefeffe 3fff0eac  
[15:36:59]3fffffa0:  3fffdad0 00000000 3fff0ea4 402027ec  
WARNING Decoded 0x402027ec: loop
[15:36:59]3fffffb0:  3fffdad0 00000000 3fff0ea4 4020bf78  
WARNING Decoded 0x4020bf78: loop_wrapper() at core_esp8266_main.cpp
[15:36:59]3fffffc0:  feefeffe feefeffe 3ffe8648 40100721  
WARNING Decoded 0x40100721: cont_wrapper
[15:36:59]<<<stack<<<
[15:36:59]
[15:36:59]last failed alloc call: 402099C7(31736)
WARNING Memory allocation of 31736 bytes failed at 402099C7
WARNING Decoded 0x402099c7: void std::vector<int, std::allocator<int> >::_M_emplace_back_aux<int>(int&&)
[15:36:59]
[15:36:59] ets Jan  8 2013,rst cause:2, boot mode:(3,6)
[15:36:59]
[15:36:59]load 0x4010f000, len 1384, room 16 
[15:36:59]tail 8
[15:36:59]chksum 0x2d
[15:36:59]csum 0x2d
[15:36:59]vbb28d4a3
[15:36:59]~ld

The message about data coming in too quickly is too regular to be actual noise/data I think? Here some log with dump to raw. The message about data coming in too quickly only happens when there is no data and it is every 0.8 seconds approximately:

16:02:17][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:18][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:18][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:19][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:20][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:21][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:22][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:23][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:24][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:24][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:25][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:26][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:26][D][remote.raw:051]: Received Raw: -255, 394, -330, 523, -425, 528, -317, 465, -873, 495, -313, 254, -579, 315, -201, 228, -423, 624, -642, 508, -915, 339, -254, 356, -232, 376, -278, 495, -506, 657, -283, 407, -365, 262, -254, 286, -601, 476, -234, 664, -310, 473, -290, 
[16:02:26][D][remote.raw:051]:   686, -297, 435, -311, 275, -341, 203, -218, 208, -312, 247, -330, 326, -321, 628, -514, 525, -456, 622, -390, 225, -524, 309, -370, 309, -226, 612, -639, 513, -389, 332, -541, 309, -657, 415, -271, 277, -301, 240, -718, 236, -287, 589, -349, 512, -373, 
[16:02:26][D][remote.raw:051]:   309, -781, 554, -858, 650, -359, 590, -477, 381, -432, 418, -685, 405, -1013, 480, -644, 410, -363, 471, -260, 351, -224, 919, -2445, 275, -804, 411, -480, 288, -590, 267, -301, 322, -535, 266, -221, 532, -1055, 608, -570, 703, -438, 743, -591, 966, 
[16:02:26][D][remote.raw:051]:   -443, 211, -252, 397, -585, 509, -494, 503, -624, 532, -528, 324, -359, 562, -553, 248, -647, 223, -285, 488, -407, 660, -243, 269, -355, 447, -425, 322, -226, 359, -799, 1281, -313, 449, -1104, 444, -1074, 1169, -348, 1161, -345, 395, -1101, 384, 
[16:02:26][D][remote.raw:064]:   -1079, 1106, -368, 364, -1088, 363, -1082, 1086, -363, 1087, -369, 360, -1088, 357, -1079, 362, -1076, 1085, -362, 1091, -364, 358, -1089, 1081, -367, 1084, -369, 359, -1088, 1080, -371, 354, -1090, 352, -1085, 353, -10000
[16:02:26][D][remote.raw:051]: Received Raw: 1101, -342, 379, -1061, 380, -1059, 1099, -348, 1090, -374, 348, -1094, 351, -1090, 1048, -433, 293, -1138, 306, -1144, 222, -241, 513, -466, 1024, -419, 311, -1127, 319, -1122, 311, -1118, 1045, -418, 1024, -424, 315, -1118, 1043, -410, 
[16:02:26][D][remote.raw:064]:   1041, -417, 309, -1127, 1046, -407, 322, -1116, 328, -1108, 332, -10000
[16:02:26][D][binary_sensor:027]: 'Toilet Window': Sending state ON
[16:02:26][D][binary_sensor:027]: 'Toilet Window': Sending state ON
[16:02:26][D][remote.raw:051]: Received Raw: 1132, -324, 395, -1053, 392, -1043, 1116, -338, 1116, -340, 390, -1058, 396, -1051, 1112, -342, 391, -1058, 386, -1238, 932, -344, 1113, -352, 378, -1077, 387, -1058, 389, -1058, 1107, -368, 980, -475, 384, -1062, 1122, -354, 1128, -348, 
[16:02:26][D][remote.raw:064]:   391, -1082, 1129, -356, 382, -1090, 392, -1078, 386, -10000
[16:02:27][D][remote.raw:051]: Received Raw: 728, -727, 408, -1055, 391, -1058, 1124, -336, 1134, -345, 401, -1081, 402, -1073, 1140, -348, 402, -1084, 404, -1077, 1152, -352, 1155, -355, 404, -1112, 410, -1104, 407, -1094, 1165, -359, 1173, -368, 409, -1133, 1186, -371, 1201, -377, 
[16:02:27][D][remote.raw:064]:   412, -1170, 1203, -390, 417, -1180, 418, -1164, 415, -10000
[16:02:27][D][remote.raw:051]: Received Raw: 1192, -314, 432, -1102, 413, -1096, 1191, -357, 1205, -365, 420, -1166, 427, -1154, 1226, -380, 432, -1178, 437, -1177, 1251, -388, 1274, -399, 440, -1239, 449, -1226, 451, -1228, 1301, -406, 1322, -422, 457, -1292, 1360, -431, 1394, -455, 
[16:02:27][D][remote.raw:064]:   487, -1379, 1452, -470, 502, -1434, 504, -1427, 507, -10000
[16:02:27][D][remote.raw:051]: Received Raw: 1388, -395, 507, -1316, 502, -1332, 1459, -459, 1557, -502, 386, -1707, 361, -1726, 535, -383, 315, -881, 403, -1684, 524, -1595, 465, -387, 293, -386, 888, -396, 266, -425, 227, -490, 2519, -1678, 398, -1708, 379, -394, 266, -406, 841, 
[16:02:27][D][remote.raw:064]:   -417, 262, -413, 263, -605, 257, -1848, 316, -411, 258, -409, 253, -476, 251, -422, 247, -415, 247, -542, 247, -1863, 255, -432, 242, -431, 237, -528, 233, -1879, 220, -1893, 209, -10000
[16:02:27][D][remote.raw:051]: Received Raw: 252, -437, 252, -921, 5253, -466, 248, -1190, 937, -5259, 245, -523, 226, -561, 224, -2406, 1882, -535, 235, -540, 627, -765, 238, -1062, 2763, -4118, 235, -657, 234, -643, 226, -650, 234, -884, 2856, -723, 227, -717, 226, -745, 221, -772, 
[16:02:27][D][remote.raw:064]:   220, -2537, 223, -1171, 4927, -10000
[16:02:27][D][remote.raw:064]: Received Raw: 205, -1340, 210, -1680, 2290, -4351, 2539, -641, 1146, -2131, 612, -1076, 202, -3621, 674, -942, 625, -345, 508, -369, 1137, -363, 494, -2866, 1251, -268, 1066, -461, 627, -365, 340, -331, 288, -481, 288, -520, 1057, -323, 10000
[16:02:27][D][remote.raw:064]: Received Raw: -10000
[16:02:28][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:28][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:29][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:30][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:31][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:32][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:33][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:34][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:34][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:35][D][remote.raw:051]: Received Raw: 962, -522, 823, -1277, 206, -1657, 356, -500, 924, -434, 389, -431, 308, -462, 1148, -446, 366, -212, 302, -296, 311, -338, 456, -794, 300, -234, 305, -455, 311, -367, 475, -282, 354, -734, 331, -236, 507, -685, 523, -357, 999, -558, 647, 
[16:02:35][D][remote.raw:051]:   -565, 386, -254, 951, -265, 351, -242, 858, -368, 649, -244, 208, -586, 755, -216, 249, -673, 251, -277, 316, -268, 580, -543, 340, -400, 567, -282, 460, -339, 481, -413, 597, -217, 205, -384, 247, -280, 260, -696, 289, -203, 878, -618, 389, -246, 307, 
[16:02:35][D][remote.raw:051]:   -505, 1204, -5317, 507, -898, 376, -2444, 392, -436, 942, -401, 213, -704, 217, -247, 294, -251, 326, -482, 725, -215, 506, -574, 1300, -467, 422, -332, 250, -369, 207, -623, 210, -272, 311, -395, 278, -350, 238, -341, 1396, -249, 427, -236, 344, -614, 
[16:02:35][D][remote.raw:051]:   661, -477, 374, -261, 389, -395, 363, -522, 689, -279, 2288, -6811, 1025, -825, 427, -440, 206, -393, 322, -536, 285, -276, 391, -336, 463, -293, 843, -300, 436, -299, 542, -450, 680, -539, 599, -914, 594, -262, 230, -383, 253, -237, 204, -289, 495, 
[16:02:35][D][remote.raw:051]:   -625, 291, -409, 701, -896, 219, -323, 220, -716, 464, -524, 335, -320, 553, -845, 219, -344, 329, -311, 566, -262, 644, -212, 646, -869, 511, -649, 1027, -394, 235, -686, 247, -904, 208, -289, 473, -313, 253, -966, 337, -201, 363, -365, 1035, -462, 
[16:02:35][D][remote.raw:051]:   256, -256, 750, -897, 451, -782, 560, -827, 432, -334, 418, -310, 572, -644, 279, -409, 787, -633, 415, -482, 235, -220, 305, -490, 685, -283, 253, -355, 575, -248, 748, -665, 664, -348, 202, -212, 236, -422, 317, -441, 533, -564, 270, -247, 497, -377, 
[16:02:35][D][remote.raw:051]:   404, -409, 344, -245, 222, -639, 403, -273, 205, -259, 269, -253, 336, -335, 442, -259, 589, -1032, 449, -560, 330, -580, 430, -459, 244, -234, 239, -313, 512, -228, 204, -493, 257, -319, 538, -318, 381, -417, 250, -243, 280, -322, 453, -377, 352, 
[16:02:35][D][remote.raw:051]:   -375, 252, -313, 201, -659, 235, -581, 388, -767, 573, -246, 354, -422, 327, -362, 233, -405, 241, -256, 526, -443, 329, -272, 435, -282, 276, -487, 208, -421, 371, -229, 755, -421, 209, -622, 445, -457, 299, -358, 240, -425, 908, -570, 220, -429, 548, 
[16:02:35][D][remote.raw:051]:   -213, 548, -599, 386, -308, 577, -382, 463, -550, 349, -390, 261, -419, 309, -558, 702, -338, 379, -237, 580, -225, 1033, -470, 271, -317, 445, -505, 620, -328, 456, -348, 433, -373, 260, -315, 328, -670, 303, -419, 331, -295, 217, -343, 394, -387, 
[16:02:35][D][remote.raw:051]:   444, -383, 230, -205, 506, -303, 631, -216, 698, -309, 837, -254, 773, -327, 206, -232, 334, -850, 246, -426, 213, -420, 304, -511, 411, -404, 252, -332, 358, -238, 556, -290, 411, -343, 288, -447, 337, -629, 271, -600, 439, -731, 259, -583, 245, -274, 
[16:02:35][D][remote.raw:051]:   874, -335, 493, -220, 446, -397, 220, -254, 337, -653, 608, -672, 229, -228, 252, -212, 553, -485, 592, -512, 1072, -245, 626, -443, 268, -447, 303, -337, 668, -517, 295, -330, 355, -570, 362, -290, 851, -312, 370, -496, 348, -341, 540, -321, 342, 
[16:02:35][D][remote.raw:051]:   -442, 454, -726, 377, -242, 475, -306, 340, -572, 384, -505, 976, -282, 417, -415, 209, -341, 451, -385, 540, -231, 423, -369, 488, -322, 295, -258, 336, -267, 275, -513, 509, -230, 419, -432, 632, -211, 394, -607, 369, -254, 1210, -394, 315, -363, 
[16:02:35][D][remote.raw:051]:   649, -394, 222, -303, 536, -213, 836, -600, 583, -997, 683, -480, 508, -353, 347, -207, 281, -363, 396, -1024, 414, -712, 212, -458, 504, -206, 465, -378, 321, -347, 231, -371, 230, -268, 717, -614, 419, -361, 824, -268, 524, -476, 272, -204, 336, 
[16:02:36][D][remote.raw:051]:   -257, 538, -439, 580, -429, 399, -581, 239, -728, 296, -707, 404, -426, 348, -725, 447, -597, 371, -593, 281, -716, 340, -628, 415, -556, 351, -602, 393, -524, 475, -710, 257, -593, 362, -674, 413, -469, 405, -536, 458, -570, 1113, -752, 391, -603, 
[16:02:36][D][remote.raw:051]:   475, -1028, 221, -778, 733, -1266, 375, -521, 383, -583, 319, -665, 434, -509, 487, -288, 1559, -612, 936, -632, 808, -871, 498, -709, 361, -991, 233, -858, 246, -682, 216, -625, 1190, -849, 534, -289, 790, -1318, 491, -545, 395, -556, 264, -717, 408, 
[16:02:36][D][remote.raw:051]:   -580, 403, -579, 203, -808, 287, -621, 277, -729, 396, -506, 506, -539, 447, -488, 208, -225, 1012, -548, 382, -322, 689, -502, 964, -512, 471, -1035, 391, -1059, 214, -404, 775, -1031, 441, -554, 1003, -380, 512, -838, 751, -396, 469, -338, 552, -325, 
[16:02:36][D][remote.raw:051]:   204, -579, 400, -1066, 419, -279, 721, -475, 1011, -480, 338, -669, 963, -467, 967, -472, 501, -856, 590, -340, 1032, -589, 470, -521, 252, -2309, 507, -1591, 272, -447, 413, -627, 498, -397, 561, -378, 231, -653, 512, -587, 494, -445, 594, -350, 511, 
[16:02:36][D][remote.raw:051]:   -615, 411, -519, 287, -686, 620, -355, 485, -629, 314, -475, 479, -591, 426, -601, 330, -559, 421, -494, 547, -292, 375, -1256, 484, -1000, 438, -421, 729, -221, 354, -1200, 770, -382, 516, -991, 417, -918, 414, -386, 327, -338, 459, -1038, 520, -516, 
[16:02:36][D][remote.raw:051]:   478, -534, 399, -416, 246, -338, 718, -336, 987, -560, 332, -1307, 1210, -479, 508, -209, 644, -479, 248, -523, 587, -753, 1213, -348, 222, -501, 451, -349, 224, -572, 429, -288, 322, -278, 397, -402, 470, -479, 307, -242, 341, -679, 420, -219, 497, 
[16:02:36][D][remote.raw:051]:   -366, 489, -366, 414, -350, 587, -249, 509, -605, 318, -318, 518, -202, 214, -274, 263, -363, 578, -231, 1253, -344, 548, -687, 956, -229, 678, -609, 360, -235, 600, -316, 673, -311, 332, -429, 718, -216, 475, -299, 240, -481, 411, -205, 420, -460, 
[16:02:36][D][remote.raw:051]:   545, -314, 302, -628, 313, -298, 288, -646, 360, -957, 411, -849, 449, -202, 394, -417, 388, -370, 250, -305, 299, -310, 286, -717, 319, -269, 370, -425, 426, -616, 217, -222, 707, -286, 408, -238, 774, -483, 411, -456, 658, -379, 601, -253, 817, 
[16:02:36][D][remote.raw:051]:   -1002, 291, -944, 227, -548, 1324, -237, 312, -203, 717, -460, 209, -313, 475, -295, 285, -306, 280, -284, 286, -550, 311, -350, 301, -330, 579, -245, 222, -229, 290, -333, 232, -283, 321, -269, 622, -459, 257, -311, 249, -330, 255, -605, 369, -773, 
[16:02:36][D][remote.raw:051]:   701, -489, 256, -343, 265, -471, 727, -323, 299, -260, 229, -233, 430, -308, 669, -922, 264, -347, 443, -235, 263, -594, 281, -275, 367, -862, 366, -323, 695, -297, 453, -780, 352, -320, 394, -422, 637, -475, 427, -360, 234, -481, 219, -1141, 521, 
[16:02:36][D][remote.raw:051]:   -434, 269, -240, 460, -276, 441, -510, 629, -425, 364, -583, 204, -233, 371, -261, 893, -234, 319, -362, 806, -224, 268, -228, 221, -346, 288, -753, 214, -364, 513, -614, 720, -544, 736, -234, 514, -275, 469, -352, 201, -355, 404, -290, 345, -581, 447, 
[16:02:36][D][remote.raw:051]:   -704, 421, -618, 285, -333, 369, -509, 516, -252, 591, -511, 707, -499, 356, -313, 462, -489, 204, -336, 300, -325, 374, -337, 547, -347, 341, -497, 314, -587, 230, -654, 278, -493, 281, -217, 361, -289, 208, -518, 569, -340, 1031, -1046, 477, -406, 
[16:02:36][D][remote.raw:051]:   465, -324, 330, -209, 414, -370, 322, -302, 469, -228, 392, -216, 519, -361, 380, -205, 789, -362, 423, -230, 344, -236, 427, -556, 254, -416, 1043, -283, 344, -546, 496, -371, 242, -606, 381, -246, 656, -300, 417, -352, 771, -449, 718, -238, 722, 
[16:02:36][D][remote.raw:051]:   -350, 443, -502, 574, -386, 495, -276, 479, -710, 215, -350, 214, -470, 530, -556, 500, -223, 426, -209, 226, -311, 312, -533, 560, -558, 240, -468, 389, -339, 918, -320, 635, -340, 246, -227, 205, -296, 353, -350, 413, -257, 236, -347, 517, -288, 698, 
[16:02:36][D][remote.raw:051]:   -273, 352, -347, 237, -236, 481, -431, 389, -500, 641, -391, 345, -414, 406, -452, 376, -303, 284, -523, 517, -858, 320, -313, 526, -201, 280, -540, 287, -370, 440, -406, 220, -273, 511, -1160, 278, -296, 403, -750, 601, -260, 346, -230, 343, -355, 
[16:02:36][D][remote.raw:051]:   381, -605, 235, -284, 329, -324, 294, -309, 264, -311, 320, -416, 390, -214, 376, -511, 472, -375, 428, -471, 271, -456, 618, -313, 814, -243, 237, -518, 283, -842, 484, -327, 785, -301, 364, -477, 537, -519, 285, -219, 411, -643, 754, -483, 322, -281, 
[16:02:36][D][remote.raw:051]:   233, -600, 662, -245, 503, -1183, 523, -317, 220, -511, 291, -309, 416, -457, 204, -449, 236, -305, 358, -449, 392, -391, 275, -377, 304, -218, 359, -783, 544, -554, 288, -250, 307, -673, 881, -467, 429, -688, 238, -296, 311, -382, 254, -429, 356, 
[16:02:36][D][remote.raw:051]:   -653, 384, -369, 325, -927, 218, -318, 283, -318, 368, -583, 498, -216, 567, -360, 1650, -894, 268, -373, 307, -327, 320, -597, 272, -460, 426, -400, 426, -403, 359, -284, 415, -277, 484, -220, 610, -204, 285, -298, 352, -344, 282, -512, 497, -508, 
[16:02:36][D][remote.raw:051]:   300, -558, 324, -327, 434, -392, 404, -438, 453, -244, 226, -324, 369, -336, 456, -259, 343, -813, 237, -425, 227, -253, 271, -300, 202, -373, 368, -358, 287, -736, 206, -315, 776, -368, 243, -598, 645, -455, 219, -573, 368, -319, 625, -472, 226, -286, 
[16:02:36][D][remote.raw:051]:   481, -346, 211, -352, 448, -757, 206, -556, 459, -507, 212, -331, 626, -300, 211, -468, 353, -930, 478, -293, 274, -294, 223, -399, 280, -329, 601, -433, 594, -748, 483, -631, 207, -351, 426, -236, 373, -213, 286, -805, 452, -557, 420, -459, 312, -405, 
[16:02:36][D][remote.raw:051]:   500, -539, 337, -558, 435, -320, 478, -309, 290, -278, 458, -466, 227, -227, 230, -448, 263, -363, 260, -483, 259, -455, 357, -432, 564, -216, 398, -259, 519, -328, 394, -432, 261, -560, 237, -385, 451, -295, 309, -731, 413, -218, 222, -337, 510, -231, 
[16:02:36][D][remote.raw:051]:   478, -203, 460, -407, 232, -372, 272, -371, 213, -349, 489, -523, 358, -240, 291, -793, 480, -647, 305, -503, 405, -726, 201, -312, 361, -369, 380, -360, 477, -494, 467, -202, 846, -203, 325, -281, 407, -555, 597, -899, 1106, -298, 1057, -346, 1031, 
[16:02:36][D][remote.raw:064]:   -355, 335, -1054, 1020, -366, 328, -1060, 1008, -377, 319, -1068, 1007, -375, 1000, -391, 990, -400, 297, -1080, 994, -400, 288, -1099, 975, -442, 243, -1139, 244, -1131, 927, -500, 893, -475, 221, -1153, 916, -515, 1576, -1135, 254, -10000
[16:02:36][D][binary_sensor:027]: 'Kitchen': Sending state ON
[16:02:36][D][binary_sensor:027]: 'Kitchen': Sending state ON
[16:02:36][D][remote.raw:051]: Received Raw: 381, -1009, 1080, -315, 605, -774, 1052, -332, 357, -1027, 1045, -339, 359, -1026, 1045, -336, 357, -1039, 1036, -348, 1041, -333, 1045, -349, 344, -1036, 1043, -346, 344, -1038, 1039, -348, 343, -1040, 349, -1034, 1039, -348, 1058, -328, 
[16:02:36][D][remote.raw:064]:   337, -1041, 1033, -354, 337, -1048, 346, -1033, 351, -10000
[16:02:36][D][binary_sensor:027]: 'Kitchen': Sending state ON
[16:02:36][D][remote.raw:051]: Received Raw: 402, -984, 1076, -317, 1054, -332, 1048, -341, 362, -1012, 1060, -326, 367, -1018, 1048, -345, 357, -1018, 1079, -320, 340, -1037, 1049, -335, 354, -1031, 1042, -345, 352, -1032, 1046, -344, 339, -1041, 351, -1031, 1046, -342, 1037, -349, 
[16:02:36][D][remote.raw:064]:   347, -1025, 1048, -339, 354, -1034, 354, -1036, 352, -10000
[16:02:36][D][binary_sensor:027]: 'Kitchen': Sending state ON
[16:02:36][D][remote.raw:051]: Received Raw: 231, -1133, 396, -997, 1063, -322, 1061, -336, 345, -1025, 1062, -326, 364, -1016, 1061, -328, 367, -1015, 1051, -340, 1046, -347, 1042, -346, 341, -1029, 1050, -334, 358, -1024, 1049, -334, 359, -1037, 352, -1049, 346, -1021, 1041, -337, 
[16:02:36][D][remote.raw:064]:   362, -1024, 1046, -337, 356, -1027, 357, -1026, 365, -10000
[16:02:36][D][remote.raw:051]: Received Raw: 387, -997, 1074, -316, 1090, -298, 666, -708, 382, -1018, 1056, -331, 358, -1022, 1055, -331, 359, -1028, 1052, -334, 1043, -335, 1051, -334, 358, -1021, 1047, -346, 355, -1027, 1047, -340, 356, -1018, 371, -1018, 1056, -330, 1046, -340, 
[16:02:36][D][remote.raw:064]:   353, -1064, 1009, -341, 352, -1043, 343, -1030, 364, -10000
[16:02:36][D][remote.raw:051]: Received Raw: 400, -983, 1081, -308, 1064, -321, 1062, -324, 362, -1023, 1051, -341, 361, -1037, 205, -383, 267, -505, 366, -1023, 1055, -369, 533, -812, 1055, -336, 351, -1029, 1054, -332, 362, -1016, 1051, -347, 346, -1030, 363, -1022, 1046, -341, 
[16:02:36][D][remote.raw:064]:   1039, -355, 338, -1026, 1060, -331, 357, -1025, 363, -1216, 10000
[16:02:37][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:38][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:39][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:39][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:40][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:41][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:42][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:42][D][remote.raw:051]: Received Raw: -440, 528, -449, 1209, -972, 268, -624, 438, -264, 657, -370, 214, -338, 611, -296, 965, -585, 482, -375, 1061, -237, 435, -357, 381, -1314, 456, -335, 341, -284, 366, -1261, 612, -477, 205, -615, 320, -314, 409, -211, 227, -270, 372, -688, 
[16:02:42][D][remote.raw:051]:   356, -227, 231, -219, 220, -270, 204, -629, 408, -765, 408, -283, 347, -228, 205, -379, 273, -420, 495, -472, 327, -319, 352, -212, 451, -299, 425, -401, 531, -282, 340, -455, 607, -299, 378, -271, 430, -242, 441, -884, 223, -457, 554, -482, 259, -279, 
[16:02:42][D][remote.raw:051]:   543, -906, 441, -312, 833, -378, 597, -597, 367, -362, 315, -372, 1076, -978, 393, -586, 426, -1370, 384, -5290, 1592, -220, 235, -272, 253, -1417, 507, -362, 437, -231, 268, -373, 610, -341, 707, -578, 360, -231, 335, -1402, 415, -4770, 582, -472, 
[16:02:42][D][remote.raw:064]:   272, -237, 226, -638, 245, -232, 515, -295, 278, -5708, 295, -391, 454, -944, 341, -256, 10000
[16:02:42][D][remote.raw:051]: Received Raw: -319, 328, -422, 653, -1420, 512, -207, 913, -417, 204, -494, 386, -212, 496, -249, 352, -384, 242, -482, 467, -1119, 907, -2976, 5935, -1924, 316, -1188, 4100, -3143, 596, -326, 608, -288, 305, -284, 719, -397, 632, -264, 268, -260, 582, 
[16:02:42][D][remote.raw:051]:   -485, 228, -789, 698, -742, 641, -547, 1060, -1786, 550, -219, 948, -1025, 1807, -304, 207, -889, 306, -284, 613, -963, 284, -1279, 289, -236, 1511, -729, 337, -229, 263, -1026, 332, -1317, 389, -5394, 473, -734, 319, -456, 215, -644, 325, -463, 1011, 
[16:02:42][D][remote.raw:064]:   -313, 440, -252, 383, -621, 697, -617, 423, -1217, 454, -5620, 991, -686, 460, -305, 540, -375, 532, -580, 642, -228, 688, -270, 410, -982, 5470, -284, 2010, -220, 543, -228, 235, -232, 231, -271, 214, -389, 378, -212, 305, -335, 229, -10000
[16:02:43][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:44][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:45][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:46][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:47][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:47][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:48][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:49][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[16:02:50][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
OttoWinter commented 5 years ago

Looked into this again and the 10kb is a bit wrong. It's allocating a buffer with 10 000 integers of 4 byte each. So actually it's 40kb - which is too much. Maybe try other numbers, 5kb or 3kb

Looking at RCSwitch again, I guess some of the computation could be lifted into the interrupt, but I don't really like that solution.

I find it really weird though that somehow there can be that much data in a short amount of time. I'm confused

spattinson commented 5 years ago

I have tried other buffer sizes 2kb works sometimes but I get crashes. Stack trace is in this https://github.com/OttoWinter/esphomeyaml/issues/257#issuecomment-445279239 I have had this deployed for a few weeks and it is mostly working despite the "data coming in too quickly" messages. I have had to reset the module a few times as it stopped updating my hass when motion sensors are triggered. I dont know what the cause is so I will leave my computer on collecting the debug log.

There are two sensors out of ten which do not work. Guessing the timing may be slightly off from what the code is expecting. One produces inconsistant codes, these are the same sensor being triggered and I have removed the lines in between, note detected as protocol 1 and 4, the beginning of the code is truncated by a varying amount

rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='10011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='00100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='00100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='1110011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='1110011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='11110011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='11110011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='0011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='0011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=1 data='1110011000100110011'
rf_bridge/debug [D][remote.rc_switch:236]: Received RCSwitch: protocol=4 data='1110011000100110011'

The other sensor which does not work is not detected as rc_switch protocol at all, have set "all" as the protocol:

[17:01:49][D][remote.raw:051]:   -263, 228, -355, 223, -399, 674, -885, 329, -453, 559, -760, 307, -277, 1048, -1368, 252, -399, 359, -330, 384, -796, 564, -770, 493, -455, 314, -439, 346, -827, 429, -350, 228, -308, 379, -318, 243, -240, 318, -207, 209, -464, 248, -588, 731, -377, 
[17:01:49][D][remote.raw:051]:   340, -636, 501, -529, 310, -327, 210, -349, 2280, -3546, 284, -4473, 210, -267, 1030, -506, 534, -338, 663, -1286, 455, -598, 1240, -2589, 243, -581, 1141, -1197, 2576, -408, 363, -224, 307, -264, 1328, -492, 330, -261, 362, -536, 581, -599, 944, -431, 
[17:01:49][D][remote.raw:051]:   515, -993, 394, -324, 330, -334, 767, -206, 313, -471, 399, -447, 229, -223, 713, -401, 301, -405, 592, -334, 1083, -415, 844, -203, 309, -325, 1023, -419, 680, -434, 557, -432, 297, -408, 404, -221, 375, -285, 449, -924, 542, -608, 301, -495, 392, 
[17:01:49][D][remote.raw:051]:   -445, 398, -357, 361, -325, 958, -557, 284, -531, 245, -2323, 1707, -236, 695, -794, 286, -369, 294, -932, 475, -345, 403, -309, 341, -873, 434, -508, 475, -466, 258, -710, 244, -234, 285, -1182, 403, -306, 209, -592, 593, -421, 356, -475, 777, -412, 
[17:01:49][D][remote.raw:064]:   261, -412, 2224, -523, 1818, -579, 615, -1746, 1798, -605, 618, -1815, 613, -1806, 615, -10000
[17:01:50][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[17:01:50][D][remote.raw:051]: Received Raw: 734, -333, 929, -465, 603, -360, 281, -1293, 206, -260, 248, -248, 823, -363, 416, -896, 458, -233, 270, -681, 345, -980, 230, -415, 609, -513, 345, -381, 206, -252, 353, -379, 208, -558, 857, -505, 223, -1505, 389, -1032, 524, -543, 212, 
[17:01:50][D][remote.raw:064]:   -2058, 1670, -487, 551, -1505, 517, -1452, 1459, -479, 1444, -481, 475, -1411, 1400, -474, 1391, -476, 455, -1390, 1368, -470, 451, -1376, 450, -1366, 446, -10000
[17:01:50][D][remote.raw:064]: Received Raw: 550, -1560, 577, -1668, 626, -10000
[17:01:50][D][remote.raw:064]: Received Raw: 10000
[17:01:50][D][remote.raw:051]: Received Raw: -597, 1037, -2180, 2589, -507, 431, -520, 1598, -540, 1703, -1459, 623, -298, 418, -424, 327, -4769, 225, -601, 213, -243, 371, -426, 557, -488, 556, -363, 379, -335, 406, -1085, 1335, -1499, 1567, -414, 824, -2114, 1556, -407, 1527, -416, 
[17:01:50][D][remote.raw:064]:   547, -1355, 1470, -408, 1459, -414, 519, -1324, 1421, -409, 1418, -411, 1417, -414, 498, -1311, 492, -1298, 1388, -409, 1391, -420, 480, -1315, 1368, -435, 1360, -465, 431, -1369, 1322, -483, 423, -1377, 416, -1364, 424, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 471, -1286, 485, -1289, 483, -1298, 1355, -440, 1346, -454, 1348, -449, 450, -1331, 1345, -450, 1350, -458, 440, -1339, 1233, -549, 1348, -449, 1347, -461, 440, -1340, 449, -1333, 1340, -449, 1344, -457, 436, -1343, 1342, -447, 1346, -454, 
[17:01:50][D][remote.raw:064]:   441, -1340, 1359, -450, 239, -1537, 434, -1329, 447, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 495, -1264, 498, -1267, 493, -1269, 1366, -419, 1355, -425, 1356, -430, 463, -1328, 1310, -453, 1352, -433, 459, -1316, 1347, -429, 1374, -420, 1368, -418, 453, -1328, 452, -1317, 1341, -437, 1347, -440, 457, -1323, 1043, -744, 1339, -444, 
[17:01:50][D][remote.raw:064]:   454, -1317, 1347, -441, 451, -1325, 453, -1316, 455, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 505, -1254, 505, -1254, 500, -1263, 1368, -412, 1363, -421, 1362, -420, 469, -1311, 1351, -421, 1358, -423, 467, -1308, 1355, -427, 1380, -413, 1376, -419, 462, -1321, 463, -1308, 1348, -440, 1357, -441, 461, -1326, 1358, -440, 1360, -450, 
[17:01:50][D][remote.raw:064]:   451, -1342, 1362, -442, 460, -1338, 458, -1327, 461, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 511, -1252, 506, -1258, 502, -1261, 1369, -418, 1371, -423, 1377, -428, 474, -1338, 1362, -430, 1390, -440, 468, -1354, 1378, -450, 1394, -461, 1402, -445, 482, -1376, 470, -1372, 1406, -458, 1417, -462, 481, -1394, 1425, -467, 1440, -471, 
[17:01:50][D][remote.raw:064]:   490, -1412, 1449, -480, 485, -1426, 491, -1418, 486, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 511, -1267, 512, -1270, 508, -1279, 1388, -425, 1409, -433, 1431, -445, 503, -1382, 442, -1448, 1468, -463, 511, -1421, 1497, -464, 1525, -462, 1524, -497, 520, -1496, 520, -1484, 1535, -499, 1562, -509, 534, -1545, 1579, -517, 1621, -535, 
[17:01:50][D][remote.raw:064]:   552, -1606, 1641, -541, 557, -1641, 549, -1608, 548, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 564, -1399, 562, -1409, 558, -1420, 1556, -476, 1589, -499, 962, -380, 281, -515, 577, -1606, 1695, -545, 1809, -581, 619, -1778, 1094, -405, 343, -609, 518, -330, 379, -340, 301, -588, 366, -341, 364, -337, 358, -695, 479, -1942, 636, 
[17:01:50][D][remote.raw:064]:   -1781, 822, -333, 340, -954, 499, -349, 318, -331, 324, -642, 390, -2029, 721, -343, 325, -352, 1074, -346, 308, -344, 305, -797, 399, -2028, 633, -342, 294, -354, 258, -595, 201, -350, 2421, -1890, 532, -10000
[17:01:50][D][remote.raw:051]: Received Raw: 667, -1644, 682, -1699, 691, -1772, 322, -340, 257, -325, 1467, -374, 272, -339, 258, -961, 280, -338, 260, -343, 253, -349, 880, -351, 2123, -348, 251, -347, 246, -352, 862, -361, 248, -355, 240, -362, 859, -379, 2084, -376, 237, -366, 
[17:01:50][D][remote.raw:051]:   238, -364, 202, -545, 737, -373, 236, -379, 201, -553, 745, -363, 217, -380, 226, -541, 687, -2328, 1967, -512, 229, -380, 230, -373, 802, -445, 230, -393, 232, -371, 795, -455, 2824, -383, 224, -976, 787, -374, 226, -392, 769, -487, 2517, -396, 225, 
[17:01:50][D][remote.raw:064]:   -391, 223, -631, 679, -2219, 221, -10000
[17:01:51][D][remote.raw:051]: Received Raw: 2866, -2266, 215, -2231, 234, -451, 231, -462, 234, -699, 878, -465, 228, -898, 926, -477, 222, -843, 2695, -492, 223, -488, 220, -826, 975, -508, 217, -768, 2690, -539, 218, -529, 218, -749, 995, -553, 214, -718, 975, -592, 210, -680, 
[17:01:51][D][remote.raw:064]:   2774, -2412, 1066, -1199, 1458, -981, 3053, -727, 212, -949, 1212, -4598, 207, -6867, 10000
[17:01:51][D][remote.raw:064]: Received Raw: -7306, 5193, -2955, 1049, -1131, 232, -1766, 575, -594, 864, -759, 247, -335, 261, -944, 514, -316, 261, -605, 482, -343, 891, -1550, 255, -348, 825, -903, 929, -387, 221, -376, 439, -221, 1964, -589, 381, -628, 327, -10000
[17:01:51][D][remote.raw:064]: Received Raw: 718, -264, 2163, -10000
[17:01:51][D][remote.raw:064]: Received Raw: 10000
[17:01:51][D][remote.raw:064]: Received Raw: -321, 262, -256, 660, -577, 692, -1161, 1121, -10000
[17:01:51][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[17:01:52][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
[17:01:52][D][remote.raw:051]: Received Raw: 1138, -381, 379, -217, 822, -224, 1284, -679, 521, -410, 279, -751, 264, -602, 713, -264, 229, -287, 256, -456, 349, -781, 424, -281, 410, -696, 568, -688, 724, -605, 399, -349, 229, -236, 262, -247, 532, -371, 328, -408, 293, -383, 735, 
[17:01:52][D][remote.raw:051]:   -633, 327, -472, 367, -224, 205, -522, 271, -811, 1001, -256, 506, -361, 276, -345, 955, -292, 459, -772, 231, -462, 514, -589, 516, -274, 263, -461, 270, -669, 862, -358, 775, -478, 684, -366, 404, -268, 355, -522, 319, -498, 304, -316, 248, -581, 
[17:01:52][D][remote.raw:064]:   279, -237, 292, -997, 242, -1109, 426, -4169, 5501, -2956, 1113, -10000
[17:01:52][W][remote.receiver:328]: Data is coming in too fast! Try increasing the buffer size.
HFsi commented 5 years ago

I'm getting an error while compiling with the branch "remote-receiver" Is it still active?

OttoWinter commented 5 years ago

I'm getting an error while compiling with the branch "remote-receiver"

No, it is not. In the latest esphome dev (not esphome-core dev, the python dev) though this should be gone. Incoming data that is coming in too fast is just discarded (and should happen less often due to misc improvements)

escoand commented 5 years ago

I've similar problems and raw is constantly dumping useless data without even one silent second. With the dev branch it's not getting better but the real data isn't recognized better. Is there something we can do to help you?

OttoWinter commented 5 years ago

I've similar problems and raw is constantly dumping useless data without even one silent second.

Well if there's useless raw data on the wire it will be dumped. That's the whole point of raw. If the protocol is supported you can also enable all dumpers except for the raw one.

escoand commented 5 years ago

The issue history implied some kind of generic RF or rc_switch problem to me and your mentioned branch did not solve my problem. So the noise coming in is more a problem of my concrete setup, right?

matthijsv93 commented 5 years ago

I have the same problem. When set to only dump rcswitch decoded data, the only thing that is displayed is the error "data coming in too fast". I'm using d1mini with RX470C 433mhz rf receiver. When i use tasmo, I get the decoded data without any noise . However I do prefer to work with Esphome.

bphermansson commented 5 years ago

Same problem here. The receivers have an AGC, if there's no strong signal they raise their gain to try to get a signal. So if you look at the signal in an oscilloscope there's a constant noise on the output. Is that why the buffer is filled up?

escoand commented 5 years ago

So far so good. What is Tasmota (and others) doing to avoid the noise?

HFsi commented 5 years ago

Did you flashed the RF chip or used the original firmware?

escoand commented 5 years ago

@HFsi I myself have a XD-RF-5V. But if different modules have the same problem with ESPHome there seems to be something strange going on. I've used my module successfully with the 433utils.

Gastondamian commented 5 years ago

I have the same issue with XD-RF-5V receiver. I will try the module with OpenMQTTGateway.

Gastondamian commented 5 years ago

I uploaded this example https://github.com/sui77/rc-switch/tree/master/examples/ReceiveDemo_Advanced from RCSwitch to my nodemcu

It works perfect and gave me this code when my KERUI PIR Sensor is activated:

Decimal: 14769002 (24Bit) Binary: 111000010101101101101010 Tri-State: not applicable PulseLength: 299 microseconds Protocol: 1 Raw data: 9299,915,301,915,302,914,304,302,905,301,905,301,905,302,904,911,306,300,906,908,308,299,907,909,308,908,308,298,908,908,310,907,310,296,909,906,311,905,312,295,910,904,312,295,911,905,312,294,912,

But with esphome using remote_receiver on the same nodemcu, the code is truncated or not displayed with a lot of "Data is coming in too fast! Try increasing the buffer size." messages.

[17:39:10][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:10][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:11][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:12][D][remote.rc_switch:183]: Received RCSwitch: protocol=1 data='11000010101101101101010'
[17:39:12][D][remote.rc_switch:183]: Received RCSwitch: protocol=4 data='11000010101101101101010'
[17:39:13][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:14][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:14][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:15][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:16][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:16][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:17][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:18][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:19][D][remote.rc_switch:183]: Received RCSwitch: protocol=1 data='1000010101101101101010'
[17:39:19][D][remote.rc_switch:183]: Received RCSwitch: protocol=4 data='1000010101101101101010'
[17:39:20][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:20][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:21][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:22][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:24][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:24][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:25][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:26][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:27][D][remote.rc_switch:183]: Received RCSwitch: protocol=1 data='01101101010'
[17:39:27][D][remote.rc_switch:183]: Received RCSwitch: protocol=4 data='01101101010'
[17:39:28][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:28][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:29][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:30][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:30][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:31][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.
[17:39:32][W][remote.receiver:313]: Data is coming in too fast! Try increasing the buffer size.

I played with filter, idle and buffer parameters but I couldn't obtain good results.

ruben0909 commented 5 years ago

Same here.

HFsi commented 5 years ago

@Gastondamian Did you tried OMG? That will be my next attemp since I have Sonoff Bridge

escoand commented 5 years ago

@HFsi I tried Tasmota and it's working in general without the garbage. The only problem I have with it is that my remote is sending some kind of rolling code:

This is the output of constantly pushing the same button:

[19:41:06]20:41:07 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x23FB6C","Bits":24,"Protocol":3,"Pulse":103}}
[19:41:08]20:41:09 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x28801C","Bits":24,"Protocol":5,"Pulse":523}}
[19:41:11]20:41:12 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x2F37AC","Bits":24,"Protocol":5,"Pulse":526}}
[19:41:13]20:41:14 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x23FB6C","Bits":24,"Protocol":5,"Pulse":525}}
[19:41:20]20:41:21 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x23FB6C","Bits":24,"Protocol":5,"Pulse":525}}
[19:41:22]20:41:23 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x27035C","Bits":24,"Protocol":3,"Pulse":103}}
[19:41:29]20:41:29 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x28801C","Bits":24,"Protocol":5,"Pulse":519}}
[19:41:32]20:41:32 RSL: tele/sonoff/RESULT = {"RfReceived":{"Data":"0x23FB6C","Bits":24,"Protocol":5,"Pulse":524}}
OttoWinter commented 5 years ago

No that's incorrect. The difference is that Tasmota just does not have a raw dumper, where esphome has one. If you don't want to see raw dumps just disable them in the dumpers key. Problem solved.

Raw is especially useful for IR codes (and RF codes too) because the application doesn't need to support the protocol.

If the rc_switch codes are not decoded correctly that would be a bug. The getting lots of raw messages is correct (and a feature).

xiaolei0125 commented 5 years ago

This is my configuration, but I received a number of different codes. These codes seem to be truncated. Can someone tell me why? how can I get the correct code of 24 bits?

remote_receiver: pin: D1 tolerance: 50% filter: 250us idle: 4ms buffer_size: 2kb dump: [rc_switch]

Received RCSwitch: protocol=1 data='1000100000' Received RCSwitch: protocol=2 data='1000100000' Received RCSwitch: protocol=1 data='10001000000000001011' Received RCSwitch: protocol=2 data='10001000000000001011' Received RCSwitch: protocol=3 data='10001000000000001011' Received RCSwitch: protocol=2 data='100010000000000010111110' Received RCSwitch: protocol=3 data='100110000000000010111110' Received RCSwitch: protocol=1 data='10001000000000001' Received RCSwitch: protocol=2 data='10001000000000001' Received RCSwitch: protocol=3 data='10001000000000001' Received RCSwitch: protocol=1 data='1000100000000000101' Received RCSwitch: protocol=2 data='1000100000000000101' Received RCSwitch: protocol=3 data='1000100000000000101' Received RCSwitch: protocol=4 data='1000100000000000101' Received RCSwitch: protocol=5 data='1000100000000000101'

OttoWinter commented 5 years ago

but I received a number of different codes.

That is because there are different protocols with different timings that sometimes overlap. So one message can sometimes be decoded by several protocols but only one is correct. You need to check which one is correct my trial and error.

how can I get the correct code of 24 bits?

There are two lines with a code of 24 bits, use those (if you know that the code is 24 bits long)

xiaolei0125 commented 5 years ago

@OttoWinter Thanks for your reply, I will try again later.

Gastondamian commented 5 years ago

This is my configuration, but I received a number of different codes. These codes seem to be truncated. Can someone tell me why? how can I get the correct code of 24 bits?

remote_receiver: pin: D1 tolerance: 50% filter: 250us idle: 4ms buffer_size: 2kb dump: [rc_switch]

Received RCSwitch: protocol=1 data='1000100000' Received RCSwitch: protocol=2 data='1000100000' Received RCSwitch: protocol=1 data='10001000000000001011' Received RCSwitch: protocol=2 data='10001000000000001011' Received RCSwitch: protocol=3 data='10001000000000001011' Received RCSwitch: protocol=2 data='100010000000000010111110' Received RCSwitch: protocol=3 data='100110000000000010111110' Received RCSwitch: protocol=1 data='10001000000000001' Received RCSwitch: protocol=2 data='10001000000000001' Received RCSwitch: protocol=3 data='10001000000000001' Received RCSwitch: protocol=1 data='1000100000000000101' Received RCSwitch: protocol=2 data='1000100000000000101' Received RCSwitch: protocol=3 data='1000100000000000101' Received RCSwitch: protocol=4 data='1000100000000000101' Received RCSwitch: protocol=5 data='1000100000000000101'

I have the same issue, the code is truncated and I receive al lot of "Data is coming in too fast! Try increasing the buffer size."