Rf Bridge Lag Issue

I have a frustrating problem, I am using the Sonoff RF bridge together with Sonoff DW1’s and Sonoff PIR2 sensors. All communications are working as expected, however, there seems to be a “polling interval” that depending on the exact time that you trigger the sensor, there can be a lag of a few seconds before OH receives the action and responds accordingly - This issue is especially apparent where I have a PIR sensor in my bathroom with turns on the bathroom light when it detects movement. by the time the light turns on you have fumbled about int the dark for some time!

The Question:
Does anyone know of a method to increase the polling interval (assuming that what the issue is of course) so that this lag is reduced?

Thanks B.

Can you publish your items and bindings configurations, please?

Delayed response… Apologies!

Details of my configurations are below.

.items

// === Groups ===
Group       gHI										"Human Interation Items"

// === General Items ===
Switch 		LAVA_LAMP								"Lava Lamp" 										(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_BC_001/POWER:command:*:default],<[broker:stat/sonoff_BC_001/POWER:state:default]"}
Switch 		DOWNSTAIRS_LAMP							"Lamp" 												(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_BC_003/POWER:command:*:default],<[broker:stat/sonoff_BC_003/POWER:state:default]"}
Switch 		WAX_HEATER 								"Wax Heater" 										(gHI)	["Switchable"] 			{mqtt=">[broker:cmnd/sonoff_BC_002/POWER:command:*:default],<[broker:stat/sonoff_BC_002/POWER:state:default]"}
Number 		LIVING_ROOM_TEMPERATURE 				"Living Room Temperature [%.1f °C]" <temperature>			["CurrentTemperature"]	{mqtt="<[broker:tele/sonoff_TH16_1/SENSOR:state:JSONPATH($.AM2301.Temperature)]"}
Number 		LIVING_ROOM_HUMIDITY 					"Living Room Humidity [%.1f %%]" 	<temperature> 									{mqtt="<[broker:tele/sonoff_TH16_1/SENSOR:state:JSONPATH($.AM2301.Humidity)]"}
Switch 		DRIVE_LIGHTS 							"Drive Lights"		 								(gHI)	["Switchable"] 			{mqtt=">[broker:cmnd/sonoff_T1_001/POWER1:command:*:default],<[broker:stat/sonoff_T1_001/POWER1:state:default]"}
Switch 		GARDEN_LIGHTS 							"Garden Flood Light"								(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_T1_001/POWER2:command:*:default],<[broker:stat/sonoff_T1_001/POWER2:state:default]"}
Switch 		ENTRANCE_LIGHT 							"Entrance Light" 									(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_T1_002/POWER:command:*:default],<[broker:stat/sonoff_T1_002/POWER:state:default]"}
Switch 		LANDING_LIGHT 							"Landing Light"										(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_T1_003/POWER:command:*:default],<[broker:stat/sonoff_T1_003/POWER:state:default]"}
Switch 		BATHROOM_LIGHT 							"Bathroom Light" 									(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_T1_004/POWER:command:*:default],<[broker:stat/sonoff_T1_004/POWER:state:default]"}
Switch 		MASTER_BEDROOM_LIGHTS 					"Master Bedroom Lights"								(gHI)
Switch 		COFFEE_MACHINE 							"Coffee Machine"									(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_BC_004/POWER:command:*:default],<[broker:stat/sonoff_BC_004/POWER:state:default]"}
Color  		MyWiFiLight_color 						"Living Room Colour"								(gHI)	["Lighting"]			{channel="wifiled:wifiled:60019495E926:color"}
Switch 		LIVING_ROOM_LIGHTS1						"Living Room 1"										(gHI)	["Switchable"] 			{mqtt=">[broker:cmnd/sonoff_T1_005/POWER1:command:*:default],<[broker:stat/sonoff_T1_005/POWER1:state:default]"}
Switch 		LIVING_ROOM_LIGHTS2						"Living Room 2"										(gHI)	["Switchable"] 			{mqtt=">[broker:cmnd/sonoff_T1_005/POWER2:command:*:default],<[broker:stat/sonoff_T1_005/POWER2:state:default]"}
Switch 		LIVING_ROOM_LIGHTS3						"Living Room 3"										(gHI)	["Switchable"] 			{mqtt=">[broker:cmnd/sonoff_T1_005/POWER3:command:*:default],<[broker:stat/sonoff_T1_005/POWER3:state:default]"}	
Switch 		S4CH_1 									"Telly"												(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_4CH_001/POWER1:command:*:default],<[broker:stat/sonoff_4CH_001/POWER1:state:default]"}
Switch 		S4CH_2									"Amp"												(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_4CH_001/POWER2:command:*:default],<[broker:stat/sonoff_4CH_001/POWER2:state:default]"}
Switch 		S4CH_3									"channel 3 TBC"										(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_4CH_001/POWER3:command:*:default],<[broker:stat/sonoff_4CH_001/POWER3:state:default]"}
Switch 		S4CH_4 									"channel 4 TBC"										(gHI)	["Switchable"]			{mqtt=">[broker:cmnd/sonoff_4CH_001/POWER4:command:*:default],<[broker:stat/sonoff_4CH_001/POWER4:state:default]"}
String  	RF_BRIDGE_1 							"RF Bridge"											(gHI)							{mqtt="<[broker:tele/sonoff_RF_001/RESULT:state:JSONPATH($.RfReceived.Data)"}

// === Echo Audio ===
Switch 		ECHO_LIVING_ROOM_CURRENT_FAVOURITES
String 		ECHO_LIVING_ROOM_TITLE 					"Title" 																		{channel="amazonechocontrol:echo:exxxxxxx:echo1:title"} 
String 		ECHO_LIVING_ROOM_ARTSIT 				"Artist" 																		{channel="amazonechocontrol:echo:exxxxxxx:echo1:subtitle1"}
Player 		ECHO_LIVING_ROOM_PLAYER 				"Player" 																		{channel="amazonechocontrol:echo:exxxxxxx:echo1:player"}
String 		ECHO_WHOLE_HOUSE_AUDIO_TITLE 			"Title" 																		{channel="amazonechocontrol:wha:exxxxxxx:wha1:title"}
String 		ECHO_WHOLE_HOUSE_AUDIO_SUBTITLE1 		"Artist" 																		{channel="amazonechocontrol:wha:exxxxxxx:wha1:subtitle1"}
Player 		ECHO_WHOLE_HOUSE_AUDIO_PLAYER 			"Player" 																		{channel="amazonechocontrol:wha:exxxxxxx:wha1:player"}
Player 		ECHO_LIVING_ROOM_PLAYER 				"Player" 																		{channel="amazonechocontrol:echo:exxxxxxx:echo1:player"}
Dimmer 		ECHO_LIVING_ROOM_VOLUME 				"Volume1 [%.0f %%]" 				<soundvolume> 								{channel="amazonechocontrol:echo:exxxxxxx:echo1:volume"}
Dimmer 		ECHO_KITCHEN_VOLUME 					"Volume2 [%.0f %%]" 				<soundvolume> 								{channel="amazonechocontrol:echo:exxxxxxx:echo2:volume"}
Dimmer 		ECHO_MASTER_BEDROOM_VOLUME 				"Volume3 [%.0f %%]" 				<soundvolume> 								{channel="amazonechocontrol:echo:exxxxxxx:echo3:volume"}
Dimmer 		ECHO_FRONT_BEDROOM_VOLUME 				"Volume4 [%.0f %%]" 				<soundvolume> 								{channel="amazonechocontrol:echo:exxxxxxx:echo4:volume"}
String 		Echo_Living_Room_TTS 					"Text to Speech LR" 															{channel="amazonechocontrol:echo:exxxxxxx:echo1:textToSpeech"}
String 		Echo_Master_Bedroom_TTS 				"Text to Speech MB" 															{channel="amazonechocontrol:echo:exxxxxxx:echo3:textToSpeech"}
String 		Echo_Front_Bedroom_TTS 					"Text to Speech FB" 															{channel="amazonechocontrol:echo:exxxxxxx:echo4:textToSpeech"}
String 		Echo_Living_Room_MusicProvider         	"Music Provider"    															{channel="amazonechocontrol:echo:exxxxxxx:echo1:musicProvider"}
String 		Echo_Living_Room_PlayMusicCommand      	"Play music voice command"				 										{channel="amazonechocontrol:echo:exxxxxxx:echo1:playMusicVoiceCommand"}
String 		Echo_Living_Room_AmazonMusicPlayListId 	"Amazon Music Playlist Id"              										{channel="amazonechocontrol:echo:exxxxxxx:echo1:amazonMusicShuffleListId"}
Switch 		Echo_Living_Room_Shuffle               	"Shuffle"                               										{channel="amazonechocontrol:echo:exxxxxxx:echo1:shuffle"}
String 		Echo_Living_Room_PlayAlarmSound 		"Play Alarm Sound" 																{channel="amazonechocontrol:echo:exxxxxxx:echo1:playAlarmSound"}
String 		Echo_Kitchen_PlayAlarmSound 			"Play Alarm Sound" 																{channel="amazonechocontrol:echo:exxxxxxx:echo2:playAlarmSound"}
String 		Echo_Master_Bedroom_PlayAlarmSound 		"Play Alarm Sound" 																{channel="amazonechocontrol:echo:exxxxxxx:echo3:playAlarmSound"}
String 		Echo_Front_Bedroom_PlayAlarmSound 		"Play Alarm Sound" 																{channel="amazonechocontrol:echo:exxxxxxx:echo4:playAlarmSound"}

// === System ===
Switch 		Automated_Light_Control 				"Automated Light Control"
Switch 		HOUSE_ALARM 							"House Alarm" 												["Switchable"]
Switch 		BEDTIME 								"Bedtime" 													["Switchable"]
Switch 		CurrentFavouritesLivingRoom 			"Current Favourites"										["Switchable"]	
DateTime	LAST_ACTIVITY_TIMESTAMP					"Last Interaction: [%1$tH:%1$tM]" 		



// === Astro Stuff ===
DateTime 	Sunrise_Time       						"Sunrise [%1$tH:%1$tM]"                   										{channel="astro:sun:home:rise#start"}
DateTime 	Sunset_End_Time    						"Sunset End [%1$tH:%1$tM]"                										{channel="astro:sun:home:set#end"}
DateTime 	Sunset_Time        						"Sunset [%1$tH:%1$tM]"                    										{channel="astro:sun:home:set#start"}
Number   	Azimuth            						"Azimuth"                                 										{channel="astro:sun:home:position#azimuth"}
Number   	SunElevation       						"Elevation"                               										{channel="astro:sun:home:position#elevation"}
String   	MoonPhase          						"MoonPhase"                               										{channel="astro:moon:home:phase#name"}
Number   	Total_Radiation    						"Radiation [%.2f W/m\u00B2]"              										{channel="astro:sun:home:radiation#total"}
Number   	Diffuse_Radiation  						"Diffuse Radiation [%.2f W/m\u00B2]"      										{channel="astro:sun:home:radiation#diffuse"}

I am using the OH MQTT binding which is configured like so:


#
# Define your MQTT broker connections here for use in the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with an ID you choose.
#

# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
broker.url=tcp://localhost:1883

# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a random default is generated.
#<broker>.clientId=<clientId>

# Optional. True or false. If set to true, allows the use of clientId values
# up to 65535 characters long. Defaults to false.
# NOTE: clientId values longer than 23 characters may not be supported by all
# MQTT servers. Check the server documentation.
#<broker>.allowLongerClientIds=false

# Optional. User id to authenticate with the broker.
broker.user=openhabian

# Optional. Password to authenticate with the broker.
broker.pwd=myPrivatePassword

# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
# (Deliver exactly once). Defaults to 0.
broker.qos=1

# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
broker.retain=true

# Optional. True or false. Defines if messages are published asynchronously or
# synchronously. Defaults to true.
broker.async=false

# Optional. Defines the last will and testament that is sent when this client goes offline
# Format: topic:message:qos:retained <br/>
#<broker>.lwt=<last will definition>

I am using MQTT for the majority of my items (as you can see from my .items file I do not have any particular issue with lag from my Sonoff Touch’s but appears that something going on with the RF Bridge is causing this. - I can see by looking at the bridge when I trigger any one of the 433mhz sensors that the bridge picks up the transaction quite quickly as the red light acknowledges this for me. however, I will often take a good 5 seconds or so for this information to propagate into my rules or show up in the logs. I have also noted that the same lag is apparent when viewing the console via the Tasmota interface albeit not as pronounced. leading me to think that the issue is a hardware limitation or something within the Tasmona software flashed onto the RF Bridge. Hopefully its the latter so there is more of a chance to make some changes!