Posts: 53
	Threads: 9
	Joined: Oct 2023
	
Reputation: 
0  
	
		
		
		05.06.2024, 12:41 
(This post was last modified: 05.06.2024, 12:43 by abby .) 
  
		
	 
	
		I have done  it sir it worked but the data is coming when i trigger from the group address it is directly not coming from the device
	
	
Attached Files Thumbnail(s)  
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		Post your whole script code listing. It must be a resident script with 0 sleep time.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 53
	Threads: 9
	Joined: Oct 2023
	
Reputation: 
0  
	
	
		Code:
if not broker then
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		Your topic names are incorrect. On top of that the data is published in JSON so you cannot write it directly to objects. Here's a working example for the multisensor topic:
Code:
if not broker then
More topic payload conversion functions can be added to the 
mqtt_to_local  table as needed.
	
		
	
 
 
	
	
	
		
	Posts: 53
	Threads: 9
	Joined: Oct 2023
	
Reputation: 
0  
	
	
		thank you Sir for your support it is working i have one question but for another sensor data i can edit the mqtt_to_local or i have to have to make another resident script
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481  
	
	
		You can add new entries to this table.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 53
	Threads: 9
	Joined: Oct 2023
	
Reputation: 
0  
	
	
		Thanks sir for your help . it means a lot to me