Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonoff bridge not send fullset to domoticz #1294

Closed
Tresett opened this issue Dec 2, 2017 · 15 comments
Closed

Sonoff bridge not send fullset to domoticz #1294

Tresett opened this issue Dec 2, 2017 · 15 comments
Labels
stale Action - Issue left behind - Used by the BOT to call for attention

Comments

@Tresett
Copy link

Tresett commented Dec 2, 2017

I'm connect RF Bridge to Domoticz, and take few transmitters.
Original Sonoff transmitter working fine, no problew.
Codes, from one other transmitter with 4 buttons - does not correct received in domoticz. Code is one.
This is info from RB bridge console.
Why packet with different High and Low values translate to one code?

13:58:25 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13290,"Low":410,"High":1290,"Data":"5597A8","RfKey":"None"}}
13:58:25 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5609384"}
13:58:36 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13300,"Low":420,"High":1280,"Data":"5597A8","RfKey":"None"}}
13:58:36 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5609384"}
13:58:44 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13300,"Low":420,"High":1270,"Data":"5597A8","RfKey":"None"}}
13:58:44 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5609384"}

@arendst
Copy link
Owner

arendst commented Dec 2, 2017

The code is not the result of High and Low.

The code is the payload send by the RF signal using timing pulses like a sync pulse length (Sync), a low pulse lenght (Low) and a high pulse length (High) of microseconds shown.

The differences you see in Sync, Low and High are normal for this kind of communication as long as the code is the same.

@Tresett
Copy link
Author

Tresett commented Dec 2, 2017

But I press 3 difference keys.

@arendst
Copy link
Owner

arendst commented Dec 3, 2017

Looking at your code value I see a possible problem value of 55xxxx. 55 is used to signal the end of comms between the RF receiver and the esp8266.

I will prepare a change to not test on 55 until all values have been received. Hold on...

arendst added a commit that referenced this issue Dec 3, 2017
* Fix Sonoff Bridge missed learned key if learned data contains 0x55
(End of Transmission) flag (#1095, #1294)
@Tresett
Copy link
Author

Tresett commented Dec 3, 2017

Tnx!
I can check at next weekend.

arendst added a commit that referenced this issue Dec 6, 2017
5.10.0a
 * Add (experimental) support for sensor SHT3x
 * Add support
for sensor MH-Z19(B) using serial interface to be enabled with define
USE_MHZ19 in user_config.h (#561, #1248)
 * Add (experimental) support
for sensor MH-Z19(B) using SoftwareSerial to be enabled with define
USE_MHZ19 in user_config.h (#561, #1248)
 * Add support for iTead SI7021
temperature and humidity sensor by consolidating DHT22 into AM2301 and
using former DHT22 as SI7021 (#735)
 * Fix BME280 calculation (#1051)
 *
Add support for BME680 using adafruit libraries (#1212)
 * Change
ADS1115 default voltage range from +/-2V to +/-6V (#1289)
 * Add
multipress support and more user configurable options to Sonoff Dual R2
(#1291)
 * Fix Sonoff Bridge missed learned key if learned data contains
0x55 (End of Transmission) flag (#1095, #1294)
 * Add support for
TSL2561 using adafruit library (#661, #1311)
 * Add alternative support
for SHT3x (#1314)
arendst added a commit that referenced this issue Dec 8, 2017
5.10.0a
 * Add (experimental) support for sensor SHT3x
 * Add support
for sensor MH-Z19(B) using serial interface to be enabled with define
USE_MHZ19_HARD_SERIAL in user_config.h (#561, #1248)
 * Add
(experimental) support for sensor MH-Z19(B) using SoftwareSerial to be
enabled with define USE_MHZ19_SOFT_SERIAL_OBSOLETE in user_config.h
(#561, #1248)
 * Add (experimental) support for sensor MH-Z19(B) using
stripped SoftwareSerial to be enabled with define USE_MHZ19_SOFT_SERIAL
in user_config.h (#561, #1248)
 * Add support for iTead SI7021
temperature and humidity sensor by consolidating DHT22 into AM2301 and
using former DHT22 as SI7021 (#735)
 * Fix BME280 calculation (#1051)
 *
Add support for BME680 using adafruit libraries (#1212)
 * Change
ADS1115 default voltage range from +/-2V to +/-6V (#1289)
 * Add
multipress support and more user configurable options to Sonoff Dual R2
(#1291)
 * Fix Sonoff Bridge missed learned key if learned data contains
0x55 (End of Transmission) flag (#1095, #1294)
 * Add support for
TSL2561 using adafruit library (#661, #1311)
 * Add alternative support
for SHT3x (#1314)
@Tresett
Copy link
Author

Tresett commented Dec 10, 2017

No changes.
Console messages after press 4 different key:
10:06:44 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13290,"Low":410,"High":1280,"Data":"55FE7E","RfKey":"None"}} 10:06:44 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5635710"} 10:06:49 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13290,"Low":410,"High":1280,"Data":"55FE7E","RfKey":"None"}} 10:06:49 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5635710"} 10:06:54 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13290,"Low":420,"High":1280,"Data":"55FE7E","RfKey":"None"}} 10:06:54 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5635710"} 10:06:58 MQT: tele/Sonoff_Bridge_1/RESULT = {"RfReceived":{"Sync":13310,"Low":420,"High":1270,"Data":"55FE7E","RfKey":"None"}} 10:06:58 MQT: domoticz/in = {"idx":15,"nvalue":0,"svalue":"5635710"}

Domoticz log:
2017-12-10 10:06:43.891 MQTT: Topic: domoticz/in, Message: {"idx":15,"nvalue":0,"svalue":"5635710"} 2017-12-10 10:06:49.724 MQTT: Topic: domoticz/in, Message: {"idx":15,"nvalue":0,"svalue":"5635710"} 2017-12-10 10:06:54.218 MQTT: Topic: domoticz/in, Message: {"idx":15,"nvalue":0,"svalue":"5635710"} 2017-12-10 10:06:58.395 MQTT: Topic: domoticz/in, Message: {"idx":15,"nvalue":0,"svalue":"5635710"}

P.S. I can try to sniff radio with rdl_433. Intresting?

@Tresett
Copy link
Author

Tresett commented Dec 10, 2017

Sniff radio:
`trying device 0: Realtek, RTL2838UHIDIR, SN: 00000001
Found Rafael Micro R820T tuner
Using device 0: Generic RTL2832U OEM
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000.
Bit detection level set to 0 (Auto).
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 433920000 Hz.
*** signal_start = 1152420, signal_end = 1243793
signal_len = 91373, pulses = 134
Iteration 1. t: 212 min: 108 (80) max: 316 (54) delta 10
Iteration 2. t: 212 min: 108 (80) max: 316 (54) delta 0
Pulse coding: Short pulse length 108 - Long pulse length 316

Short distance: 103, long distance: 317, packet distance: 3314

p_limit: 212
bitbuffer:: Number of rows: 6
[00] {25} 55 55 c0 00 : 01010101 01010101 11000000 0
[01] {25} 55 55 c0 00 : 01010101 01010101 11000000 0
[02] {25} 55 55 c0 00 : 01010101 01010101 11000000 0
[03] {25} 55 55 c0 00 : 01010101 01010101 11000000 0
[04] {25} 55 55 c0 00 : 01010101 01010101 11000000 0
[05] {9} 55 00 : 01010101 0
*** signal_start = 1929285, signal_end = 2012262
signal_len = 82977, pulses = 121
Iteration 1. t: 210 min: 106 (71) max: 315 (50) delta 205
Iteration 2. t: 210 min: 106 (71) max: 315 (50) delta 0
Pulse coding: Short pulse length 106 - Long pulse length 315

Short distance: 105, long distance: 319, packet distance: 3317

p_limit: 210
bitbuffer:: Number of rows: 5
[00] {25} 55 55 30 00 : 01010101 01010101 00110000 0
[01] {25} 55 55 30 00 : 01010101 01010101 00110000 0
[02] {25} 55 55 30 00 : 01010101 01010101 00110000 0
[03] {25} 55 55 30 00 : 01010101 01010101 00110000 0
[04] {21} 55 55 30 : 01010101 01010101 00110
*** signal_start = 2376812, signal_end = 2467163
signal_len = 90351, pulses = 131
Iteration 1. t: 211 min: 107 (78) max: 315 (53) delta 5
Iteration 2. t: 211 min: 107 (78) max: 315 (53) delta 0
Pulse coding: Short pulse length 107 - Long pulse length 315

Short distance: 104, long distance: 318, packet distance: 3317

p_limit: 211
bitbuffer:: Number of rows: 6
[00] {25} 55 55 0c 00 : 01010101 01010101 00001100 0
[01] {25} 55 55 0c 00 : 01010101 01010101 00001100 0
[02] {25} 55 55 0c 00 : 01010101 01010101 00001100 0
[03] {25} 55 55 0c 00 : 01010101 01010101 00001100 0
[04] {25} 55 55 0c 00 : 01010101 01010101 00001100 0
[05] {6} 54 : 010101
*** signal_start = 2875458, signal_end = 2946273
signal_len = 70815, pulses = 100
Iteration 1. t: 207 min: 105 (60) max: 310 (40) delta 5
Iteration 2. t: 207 min: 105 (60) max: 310 (40) delta 0
Pulse coding: Short pulse length 105 - Long pulse length 310

Short distance: 105, long distance: 319, packet distance: 3318

p_limit: 207
bitbuffer:: Number of rows: 4
[00] {25} 55 55 03 00 : 01010101 01010101 00000011 0
[01] {25} 55 55 03 00 : 01010101 01010101 00000011 0
[02] {25} 55 55 03 00 : 01010101 01010101 00000011 0
[03] {25} 55 55 03 00 : 01010101 01010101 00000011 0
*** signal_start = 4693159, signal_end = 4736703
signal_len = 43544, pulses = 47
Iteration 1. t: 256 min: 134 (23) max: 378 (24) delta 5
Iteration 2. t: 256 min: 134 (23) max: 378 (24) delta 0
Pulse coding: Short pulse length 134 - Long pulse length 378

Short distance: 246, long distance: 0, packet distance: 247`

@Tresett
Copy link
Author

Tresett commented Dec 12, 2017

Arendst, do you need more debug information?
Can I help smth else for this issue?

@arendst
Copy link
Owner

arendst commented Dec 13, 2017

As Tasmota can only act on decoded RF signals from the RF chip inside the bridge I'm afraid the bus stops here; if this chip does not recognize your signals Tasmota cannot act on it.

@Tresett
Copy link
Author

Tresett commented Dec 13, 2017

Can I debug data from serial (another chip)?
May be syslog?

@arendst
Copy link
Owner

arendst commented Dec 13, 2017

With logging set to 3 you would see this:

12:34:15 BRG: Received A4 30 2A 01 B8 04 F6 36 1F 13 55 
12:34:15 MQT: tele/bridge1/RFRECEIVED = {"RfReceived":{"Sync":12330,"Low":440,"High":1270,"Data":"361F13","RfKey":"None"}}

Where the BRG message is all data received from the RF bridge chip as defined in the ITead RF bridge protocol guide on their wiki https://www.itead.cc/wiki/File:RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf

@Tresett
Copy link
Author

Tresett commented Dec 17, 2017

10:10:17 BRG: Received A4 33 EA 01 9A 05 00 55
10:10:21 BRG: Received A4 33 F4 01 9A 05 0A 55
10:10:25 BRG: Received A4 33 EA 01 9A 05 00 55
10:10:31 BRG: Received A4 33 F4 01 A4 04 F6 55

Code 1, tlow and thight is different
Can I get fullset (A4 33 F4 01 A4 04 F6 55) in Domoticz?

@arendst
Copy link
Owner

arendst commented Dec 17, 2017

Just craft your own Fork and try to get the info to Domoticz. As it is timing you are after, prepare for different values for the same key.

@Tresett
Copy link
Author

Tresett commented Dec 17, 2017

May be can use another idx ... for example voltage or current for send fullset?

arendst added a commit that referenced this issue Jan 7, 2018
5.11.0 20180107
 * Minor webpage HTML optimizations (#1358)
 * Updated
German translation (#1438)
 * Change Sonoff Pow Energy MQTT data message
and consolidate Status 8 into Status 10
 * Change ADS1115 default
voltage range from +/-2V to +/-6V (#1289)
 * Change text to Active for 3
minutes (#1364)
 * Change Wemo SetBinaryState to distinguish from
GetBinaryState (#1357)
 * Change output of HTTP command to valid JSON
and Array only (#1363)
 * Removed all MQTT, JSON and Command language
defines from locale files and set fixed to English (#1473)
 * Renamed
commands Color2,3,4 to Color3,4,5
 * Fix BME280 calculation (#1051)
 *
Fix Sonoff Bridge missed learned key if learned data contains 0x55 (End
of Transmission) flag (#1095, #1294)
 * Fix PWM initialization in
Dimmer/Color mode (#1321)
 * Fix Wemo Emulation (#1357)
 * Fix display
of build date and time in non-english locale (#1465)
 * Fix Wemo and Hue
emulation by adding M-Search response delay (#1486)
 * Add libraries
Adafruit_BME680-1.0.5, Adafruit_Sensor-1.0.2.02, TasmotaSerial-1.0.0 and
TSL2561-Arduino-Library
 * Add command Color2 to set color while keeping
same dimmer value
 * Add device function pointers
 * Add support for
SenseAir S8 CO2 sensor
 * Add color led signal to Carbon Dioxide (CO2)
sensors using defines CO2_LOW and CO2_HIGH in user_config.h
 * Add
support for Domoticz Air Quality sensor to be used by MH-Z19(B) and
SenseAir sensors
 * Add support for PZEM004T energy sensor
 * Add
support for iTead SI7021 temperature and humidity sensor by
consolidating DHT22 into AM2301 and using former DHT22 as SI7021 (#735)

* Add support for BME680 using adafruit libraries (#1212)
 * Add support
for MH-Z19(B) CO2 sensor (#561, #1248)
 * Add multipress support and
more user configurable GPIO to Sonoff Dual R2 (#1291)
 * Add support for
TSL2561 using adafruit library (#661, #1311)
 * Add support for SHT3x
(#1314)
 * Add support for Arilux LC06 (#1414)
 * Add Italian language
file (#1449)
 * Add 2nd Gen Alexa support to Wemo emulation discovery
(#1357, #1450)
 * Add define for additional number of WS2812 schemes
(#1463)
joecotton pushed a commit to joecotton/Sonoff-Tasmota that referenced this issue Jan 8, 2018
5.11.0 20180107
 * Minor webpage HTML optimizations (arendst#1358)
 * Updated
German translation (arendst#1438)
 * Change Sonoff Pow Energy MQTT data message
and consolidate Status 8 into Status 10
 * Change ADS1115 default
voltage range from +/-2V to +/-6V (arendst#1289)
 * Change text to Active for 3
minutes (arendst#1364)
 * Change Wemo SetBinaryState to distinguish from
GetBinaryState (arendst#1357)
 * Change output of HTTP command to valid JSON
and Array only (arendst#1363)
 * Removed all MQTT, JSON and Command language
defines from locale files and set fixed to English (arendst#1473)
 * Renamed
commands Color2,3,4 to Color3,4,5
 * Fix BME280 calculation (arendst#1051)
 *
Fix Sonoff Bridge missed learned key if learned data contains 0x55 (End
of Transmission) flag (arendst#1095, arendst#1294)
 * Fix PWM initialization in
Dimmer/Color mode (arendst#1321)
 * Fix Wemo Emulation (arendst#1357)
 * Fix display
of build date and time in non-english locale (arendst#1465)
 * Fix Wemo and Hue
emulation by adding M-Search response delay (arendst#1486)
 * Add libraries
Adafruit_BME680-1.0.5, Adafruit_Sensor-1.0.2.02, TasmotaSerial-1.0.0 and
TSL2561-Arduino-Library
 * Add command Color2 to set color while keeping
same dimmer value
 * Add device function pointers
 * Add support for
SenseAir S8 CO2 sensor
 * Add color led signal to Carbon Dioxide (CO2)
sensors using defines CO2_LOW and CO2_HIGH in user_config.h
 * Add
support for Domoticz Air Quality sensor to be used by MH-Z19(B) and
SenseAir sensors
 * Add support for PZEM004T energy sensor
 * Add
support for iTead SI7021 temperature and humidity sensor by
consolidating DHT22 into AM2301 and using former DHT22 as SI7021 (arendst#735)

* Add support for BME680 using adafruit libraries (arendst#1212)
 * Add support
for MH-Z19(B) CO2 sensor (arendst#561, arendst#1248)
 * Add multipress support and
more user configurable GPIO to Sonoff Dual R2 (arendst#1291)
 * Add support for
TSL2561 using adafruit library (arendst#661, arendst#1311)
 * Add support for SHT3x
(arendst#1314)
 * Add support for Arilux LC06 (arendst#1414)
 * Add Italian language
file (arendst#1449)
 * Add 2nd Gen Alexa support to Wemo emulation discovery
(arendst#1357, arendst#1450)
 * Add define for additional number of WS2812 schemes
(arendst#1463)
@stale
Copy link

stale bot commented Apr 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Action - Issue left behind - Used by the BOT to call for attention label Apr 23, 2018
@stale
Copy link

stale bot commented May 7, 2018

This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem.

@stale stale bot closed this as completed May 7, 2018
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
* Fix Sonoff Bridge missed learned key if learned data contains 0x55
(End of Transmission) flag (arendst#1095, arendst#1294)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.10.0a
 * Add (experimental) support for sensor SHT3x
 * Add support
for sensor MH-Z19(B) using serial interface to be enabled with define
USE_MHZ19 in user_config.h (arendst#561, arendst#1248)
 * Add (experimental) support
for sensor MH-Z19(B) using SoftwareSerial to be enabled with define
USE_MHZ19 in user_config.h (arendst#561, arendst#1248)
 * Add support for iTead SI7021
temperature and humidity sensor by consolidating DHT22 into AM2301 and
using former DHT22 as SI7021 (arendst#735)
 * Fix BME280 calculation (arendst#1051)
 *
Add support for BME680 using adafruit libraries (arendst#1212)
 * Change
ADS1115 default voltage range from +/-2V to +/-6V (arendst#1289)
 * Add
multipress support and more user configurable options to Sonoff Dual R2
(arendst#1291)
 * Fix Sonoff Bridge missed learned key if learned data contains
0x55 (End of Transmission) flag (arendst#1095, arendst#1294)
 * Add support for
TSL2561 using adafruit library (arendst#661, arendst#1311)
 * Add alternative support
for SHT3x (arendst#1314)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.10.0a
 * Add (experimental) support for sensor SHT3x
 * Add support
for sensor MH-Z19(B) using serial interface to be enabled with define
USE_MHZ19_HARD_SERIAL in user_config.h (arendst#561, arendst#1248)
 * Add
(experimental) support for sensor MH-Z19(B) using SoftwareSerial to be
enabled with define USE_MHZ19_SOFT_SERIAL_OBSOLETE in user_config.h
(arendst#561, arendst#1248)
 * Add (experimental) support for sensor MH-Z19(B) using
stripped SoftwareSerial to be enabled with define USE_MHZ19_SOFT_SERIAL
in user_config.h (arendst#561, arendst#1248)
 * Add support for iTead SI7021
temperature and humidity sensor by consolidating DHT22 into AM2301 and
using former DHT22 as SI7021 (arendst#735)
 * Fix BME280 calculation (arendst#1051)
 *
Add support for BME680 using adafruit libraries (arendst#1212)
 * Change
ADS1115 default voltage range from +/-2V to +/-6V (arendst#1289)
 * Add
multipress support and more user configurable options to Sonoff Dual R2
(arendst#1291)
 * Fix Sonoff Bridge missed learned key if learned data contains
0x55 (End of Transmission) flag (arendst#1095, arendst#1294)
 * Add support for
TSL2561 using adafruit library (arendst#661, arendst#1311)
 * Add alternative support
for SHT3x (arendst#1314)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Action - Issue left behind - Used by the BOT to call for attention
Projects
None yet
Development

No branches or pull requests

2 participants