mlfunston / node-red-contrib-broadlink-control

Set of node-red nodes to manage the Broadlink home automation device suite
MIT License
44 stars 24 forks source link

ENHANCEMENT: SP2 and SP3 GetStatus with NO_RESPONSE state #55

Open S474N opened 3 years ago

S474N commented 3 years ago

Is possible to add "NO_RESPONSE" state to "GetStatus"? If the outlet is offline, there is no information about it.

mlfunston commented 3 years ago

Could be done, but as it's an asynchronous call to the SP2/3 then we need to have some timeout functions to catch it.

The call to the unit is terminated automatically after 3 seconds anyway so the TCP port is cleaned up. So if you don't have an answer within 3 seconds then it's offline.