![]() ![]() 10.10.4.81 Error: read ETIMEDOUTĪt TCP.onStreamRead (internal/stream_base_commons. This is the code to check the status i useĬonst TuyAPI = global. I am correct to assume the net.connect method will not report any errors if the host is down? just will report on connections errors (sudden disconnect, refused, etc), the docs are not very specific on which errors ![]() I though to take out the ping out of the flow and just rely in tuyapi but seems like when host is unreachable there is no error report. To report the current state of the plugs i use a 10 sec interval query this time using the tuyapi module in a function node. Recently, whenever I open cydia I get that error (Error: Refresh Host Unreachable) when I try to reload or refresh the sources. To mark the devices as available or unavailable i use a 3 min interval ping to each device. To use this tuya sockets i have them set up as mqtt switch in homeassistant, and all commanding and state report is done via nodered using mqtt in-out. This is not like a bug but more like a question on the underlying net connect method. But didn't work for me, so at the moment i am using the library by importing tuyapi into the global context which works good for me now. I though it would just be to pass the version in the constructor and change the package version. There is a nodered plugin that uses this library but looks like the creator is not interested in updating to the latest tuyapi. Hi there, just wanted to thank you for this library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |