Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-H32B Parallel Actions
#1
Bug 
I had created a simple flow within my home assistant using toggle switch to control few switches. The switch work normally only if the switches are turn on/off one by one but when simultaneous actions triggered, only few switches are turn on/off. I attach a video for this scenario. 

Could anybody suggest a better way to make a parallel/simultaneous actions work.

Node-red flow diagram
   

Reply
#2
home assistant control relays indepently. suggest add a switch for control "ALL ON" and "ALL OFF" by these command.
ALL ON: RELAY-AON-255,1,1
ALL OFF: RELAY-AOF-255,1,1
more functions you can see protocol link: https://www.kincony.com/smart-controller...tocol.html
Reply
#3
I have go through the protocol documentation and found that multiple relays can be turn on/off with a single request via provided masked addresses of the relays but it seem less flexible than sending a multiple requests especially when multiple flows exist and i think kind of hard to avoid from multiple requests coming in at the same time for instance perhaps 2 or more people in a house pressing different switch at the same time. 

I just need further clarification on when multiple tcp request happened simultaneously. It's critical to know the constraints or capabilities of the controller before rolling out the solution.

Here attached the debug info of my flow, 5 requests have been made, only 1 (randomly) successfully turning on/off the relay. 


   

Thanks
Reply
#4
i have seen your Node-Red debug information. all command almost sent at the same time. if you want to multi command, you need add a delay, not send all commands together, send command-1 , when received feedback , then begin send command-2, when received feedback, then begin send command-3.
Reply
#5
Understood, meaning to say, I will have to manually handle queue of tasks outside of the controller, put some delay before next task can be executed.
Reply
#6
yes, right.
Reply
#7
What is the minimum delay time between sending commands to the controller?
Reply
#8
two command delay >200ms
Reply
#9
(01-18-2021, 10:56 PM)mirko Wrote: What is the minimum delay time between sending commands to the controller?

Based on my testing, 350ms is OK. Tried lowering the delay between commands, sometime few commands are not executed (inconsistent).
Reply
#10
CPU need time to do with command, so add delay time bigger is better.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)