jtburgess / indigo-TP-LInk

Indigo Plugin for TP-Link SmartPlugs, powerStrips, dimmer switches, and dimmable bulbs; (coming someday color bulbs)
The Unlicense
2 stars 4 forks source link

Adding a new HS200 #8

Closed jamesholcomb closed 2 years ago

jamesholcomb commented 2 years ago

I have added a new HS200 switch (Office Fan Light) to my home with polling of 5 on, 5 off. I can turn on/off within Indigo, but the device state is never reported back (unlike my HS220 dimmer which works).

Here is a portion of the polling logs...let me know if any additional logging would help. Thanks!

 TP-Link Devices                 Polling started for Office Fan Light@192.168.0.197.
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:48): Starting data refresh for Office Fan Light :tplinkSmartSwitch:192.168.0.197: with 5
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":255,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 255, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":255,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 255, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

   TP-Link Devices                 (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}})
   TP-Link Devices                 (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}}
   TP-Link Devices Error           (tpl_relayswitch_poll.py:run:216): Unable to update Office Fan Light: after 10 attempts. Polling for this device will now shut down. ('brightness')
   TP-Link Devices                 (plugin.py:deviceStopComm:291): deviceStopComn entered Office Fan Light, 192.168.0.197
   TP-Link Devices                 (plugin.py:deviceStopComm:293): deviceStopComn ending Office Fan Light, 192.168.0.197
   TP-Link Devices                 Polling stopped for Office Fan Light@192.168.0.197.
jtburgess commented 2 years ago

James: FYI. I’m on vacation until 3/12, with only an iPad and no real source code access. So I won’t be able to investigate this until the week after that.

-- John

On Mar 4, 2022, at 7:14 PM, James Holcomb @.***> wrote:

 I have added a new HS200 switch (Office Fan Light) to my home with polling of 5 on, 5 off. I can turn on/off within Indigo, but the device state is never reported back (unlike my HS220 dimmer which works).

Here is a portion of the polling logs...let me know if any additional logging would help. Thanks!

TP-Link Devices Polling started for Office Fan @.*** TP-Link Devices (tpl_relayswitch_poll.py:run:48): Starting data refresh for Office Fan Light :tplinkSmartSwitch:192.168.0.197: with 5 TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":255,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 255, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":255,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 255, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:216): Unable to update Office Fan Light: after 10 attempts. Polling for this device will now shut down. ('brightness') TP-Link Devices (plugin.py:deviceStopComm:291): deviceStopComn entered Office Fan Light, 192.168.0.197 TP-Link Devices (plugin.py:deviceStopComm:293): deviceStopComn ending Office Fan Light, 192.168.0.197 TP-Link Devices Polling stopped for Office Fan @.*** — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

jtburgess commented 2 years ago

You somehow have it defined as a “relay switch” it should simply be a “relay”. Try deleting it and re-adding as the correct type. The behavior is different, as shown by the “not supported” errors below.

-- John

On Mar 4, 2022, at 7:14 PM, James Holcomb @.***> wrote:

 I have added a new HS200 switch (Office Fan Light) to my home with polling of 5 on, 5 off. I can turn on/off within Indigo, but the device state is never reported back (unlike my HS220 dimmer which works).

Here is a portion of the polling logs...let me know if any additional logging would help. Thanks!

TP-Link Devices Polling started for Office Fan @.*** TP-Link Devices (tpl_relayswitch_poll.py:run:48): Starting data refresh for Office Fan Light :tplinkSmartSwitch:192.168.0.197: with 5 TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":255,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 255, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":255,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 255, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-52,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -52, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:221): Error attempting to update Office Fan Light: 'brightness'. Will try again in 5 seconds TP-Link Devices (tpl_relayswitch_poll.py:run:58): Office Fan Light: Starting polling loop with interval 5

TP-Link Devices (tpl_relayswitch_poll.py:run:61): Office Fan Light connection 1 received ({"system":{"get_sysinfo":{"sw_ver":"1.1.5 Build 210422 Rel.082129","hw_ver":"3.0","model":"HS200(US)","deviceId":"8006C72C8CA8004DC1E81C858078257C1DD5DAEA","oemId":"59F15C39F35FEBCF7E5A84FF7620AFA1","hwId":"F30CA3404523AE331168A102F897B7F0","rssi":-51,"longitude_i":-REDACTED,"latitude_i":REDACTED,"alias":"Office Light","status":"new","mic_type":"IOT.SMARTPLUGSWITCH","feature":"TIM","mac":"40:3F:8C:A9:0B:55","updating":0,"led_off":0,"relay_state":1,"on_time":256,"active_mode":"none","icon_hash":"","dev_name":"Smart Wi-Fi Light Switch","next_action":{"type":-1},"err_code":0}}}) TP-Link Devices (tpl_relayswitch_poll.py:run:68): Office Fan Light connection 2 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:71): Office Fan Light connection 3 received ({"smartlife.iot.dimmer":{"err_code":-1,"err_msg":"module not support"}}) TP-Link Devices (tpl_relayswitch_poll.py:run:80): Office Fan Light: finished state data collection with {u'system': {u'get_sysinfo': {u'oemId': u'59F15C39F35FEBCF7E5A84FF7620AFA1', u'mic_type': u'IOT.SMARTPLUGSWITCH', u'dev_name': u'Smart Wi-Fi Light Switch', u'next_action': {u'type': -1}, u'longitude_i': -REDACTED, u'on_time': 256, u'feature': u'TIM', u'icon_hash': u'', u'relay_state': 1, u'hw_ver': u'3.0', u'led_off': 0, u'status': u'new', u'hwId': u'F30CA3404523AE331168A102F897B7F0', u'latitude_i': REDACTED, u'mac': u'40:3F:8C:A9:0B:55', u'active_mode': u'none', u'sw_ver': u'1.1.5 Build 210422 Rel.082129', u'updating': 0, u'alias': u'Office Light', u'rssi': -51, u'model': u'HS200(US)', u'err_code': 0, u'deviceId': u'8006C72C8CA8004DC1E81C858078257C1DD5DAEA'}}} TP-Link Devices Error (tpl_relayswitch_poll.py:run:216): Unable to update Office Fan Light: after 10 attempts. Polling for this device will now shut down. ('brightness') TP-Link Devices (plugin.py:deviceStopComm:291): deviceStopComn entered Office Fan Light, 192.168.0.197 TP-Link Devices (plugin.py:deviceStopComm:293): deviceStopComn ending Office Fan Light, 192.168.0.197 TP-Link Devices Polling stopped for Office Fan @.*** — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

jamesholcomb commented 2 years ago

These are the only choices presented when adding a device:

image

...though this switch (HS200) is not a dimmer.

These are the devices I can select from if choosing Smart Dimmer Switch:

image

0.197 is the device I am trying to add...it shows as a tpLinkSmartPlug, but it's the HS200 switch 0.195 is a different HS200 I have tried adding 0.193 is an actual smart plug that was added earlier that works ok The other device are correct and seem to work ok

If my router is not reserving IPs across TP-Link devices, would that have an undesirable effect?

jamesholcomb commented 2 years ago

I did try to remove and re-add as you suggested (with a plugin reload in between), but the device list still shows 0.197 as a smartPlug.

jtburgess commented 2 years ago

SmartPlug is right. The names are a little confusing. I’ll have to straighten them out sometime

-- John

On Mar 12, 2022, at 3:14 PM, James Holcomb @.***> wrote:

 I did try to remove and re-add as you suggested (with a plugin reload in between), but the device list still shows 0.197 as a smartPlug.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

jamesholcomb commented 2 years ago

Adding the HS200 as SmartPlug fixed it 👍