Closed jamesholcomb closed 2 years ago
You found a bug! Everything is working with your device, and then suddenly the device stops responding to polls — It sends 3 requests, and each one times out after 3 seconds. Then it tries to parse the JSON “data” and doesn’t find ‘smartlife.iot.dimmer’ so it gets an exception. That’s a bug, it shouldn’t shut don just because there’s a connection issue.
I separated the timeout errors from the JSON parsing errors. So in the future it will retry 15 times before giving up if you have timeout errors, and it increases the polling interval after 5 errors and again after 10 errors.
I won't be able to test and update GitHub for several days. Stay tuned...
This should be fixed in the latest commit - v 0.9.7. Please try it out and let me know if there are issues BEFORE I publish to indigo. Thanks.
Jul 22, 2021 at 6:17:40 PM
Stopping plugin TP-Link Devices (pid 71509)
Stopped plugin TP-Link Devices
Upgrading plugin TP-Link Devices to newer version 0.9.7 (previous version moved to trash)
Loading plugin "TP-Link Devices 0.9.7"
Starting plugin "TP-Link Devices 0.9.7" (pid 94852)
TP-Link Devices Log level set to info
Started plugin "TP-Link Devices 0.9.7"
Jul 22, 2021 at 6:18:12 PM
TP-Link Devices Polling started for Dining Chandelier@192.168.0.196.
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds
TP-Link Devices Error (tpl_relayswitch_poll.py:run:208): Unable to update Dining Chandelier: after 10 attempts. Polling for this device will now shut down. (state value type must be bool, int, real, or string)
TP-Link Devices Polling stopped for Dining Chandelier@192.168.0.196.
On it …
-- John
On Jul 22, 2021, at 7:20 PM, James Holcomb @.***> wrote:
Jul 22, 2021 at 6:17:40 PM Stopping plugin TP-Link Devices (pid 71509) Stopped plugin TP-Link Devices Upgrading plugin TP-Link Devices to newer version 0.9.7 (previous version moved to trash) Loading plugin "TP-Link Devices 0.9.7" Starting plugin "TP-Link Devices 0.9.7" (pid 94852) TP-Link Devices Log level set to info Started plugin "TP-Link Devices 0.9.7"
Jul 22, 2021 at 6:18:12 PM TP-Link Devices Polling started for Dining @. TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:208): Unable to update Dining Chandelier: after 10 attempts. Polling for this device will now shut down. (state value type must be bool, int, real, or string) TP-Link Devices Polling stopped for Dining @. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Ok. I think I found the problem. I just pushed v0.9.7.1. Please give it a try and let me know.
-- John
On Jul 22, 2021, at 7:20 PM, James Holcomb @.***> wrote:
Jul 22, 2021 at 6:17:40 PM Stopping plugin TP-Link Devices (pid 71509) Stopped plugin TP-Link Devices Upgrading plugin TP-Link Devices to newer version 0.9.7 (previous version moved to trash) Loading plugin "TP-Link Devices 0.9.7" Starting plugin "TP-Link Devices 0.9.7" (pid 94852) TP-Link Devices Log level set to info Started plugin "TP-Link Devices 0.9.7"
Jul 22, 2021 at 6:18:12 PM TP-Link Devices Polling started for Dining @. TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:213): Error attempting to update Dining Chandelier: state value type must be bool, int, real, or string. Will try again in 5 seconds TP-Link Devices Error (tpl_relayswitch_poll.py:run:208): Unable to update Dining Chandelier: after 10 attempts. Polling for this device will now shut down. (state value type must be bool, int, real, or string) TP-Link Devices Polling stopped for Dining @. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
So far so good...will let it run for a few days then close this issue once confirmed.
👍🏻😊
-- John
On Jul 27, 2021, at 3:41 PM, James Holcomb @.***> wrote:
So far so good...will let it run for a few days then close this issue once confirmed.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jtburgess/indigo-TP-LInk/issues/7#issuecomment-887783768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAHALJTYO7423HPZSNVOD3TZ4DWXANCNFSM5AQFZ7AQ.
Is everything still OK? Can I close the issue?
👍
Every couple of days, the device loses communication to Indigo. To resolve, I have to open Indigo, edit Device and re-check the Enable Indigo Communication checkbox.
Here is a log snapshot that occurs right before losing communication.