Open svandive opened 1 day ago
@svandive Ok, yea I went back and read and you said 12 devices but 8 and 3 is only 11 so I was thinking that one was missing.
The three lights will not be added at this time, but I am working on this functionality. So for now, you can remove those three from the manual devices if you wish.
As for the other devices, I am curious as to why the default discovery is only finding 7 devices and not all 11 if they're on the same network. Do you have any IP conflicts? I don't think any of them require credentials. Can you run a kasa discovery from the CLI and tell me if that output gives you all of the devices?
I will add some additional checks to not add devices from broadcasts that have already been discovered in another broadcast, so it will stop with the double messages. You can remove the manual broadcast address though as it is redundant from the main if you don't have multiple networks.
Thank you again!!
I have removed the three lights from the manual discovery and I have removed the broadcast entry.
When running the Kasa-python app the following items are what is discovered:
Living Room Fan - EP25(US) -- This device is discovered by Your Plugin Window Seat Lights - HS220(US) -- This device is discovered by Your Plugin Dining Room Fan - KP125(US) -- This device is discovered by Your Plugin Living Room Standing Lamp - EP25(US) -- This device is discovered by Your Plugin Office Primary Power - EP25(US) -- This device is discovered by Your Plugin Fireplace Sitting Area - HS220(US) -- This device is discovered by Your Plugin Front Door - KL125(US) -- This is a light bulb so this is not added by your Plugin
So this is a total of 7 devices out of the 12 Kasa devices I have on the network. I know I keep saying 12 devices, but one of them is a Camera and I knew right off the bat that your plugin doesn't currently support cameras so I think I was mentally removing this.
The HS300 power strip is manually forced to be discovered by your Plugin, and is not auto-discovered by the Kasa-python library. Also the two (2) KL420L5 are also not auto-discovered by the Kasa-python library and the Camera is also not auto-discovered by the Kasa-python library.
Thank you, for the fantastic support....
Ah, gotcha. So camera is number 12. Can you post the discover for the power strip with the --host and --json flags? Would like to see why it's not being discovered by the default. Also, try the Kasa discover again with the --timeout 15 and --discovery-timeout 15 flags and see if it discovers everything. It might be timing out before they respond. There is also a --debug flag that could give more detail as well.
Same seven (7) devices are discovered when setting the timeout and discovery-timeout both to 30 seconds.
This is the output from running kasa with host discovery of the HS300 power Strip with debug and verbose enabled.
I ran the following with --json, but with the debug and verbose enabled the json formatting is pretty wonky. Sorry about that.
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.107 >> {'system': {'get_sysinfo': {}}}
DEBUG:kasa.discover:Waiting a total of 30 seconds for responses...
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.107 << {'system': {'get_sysinfo': {'alias': '#MASKED_NAME#',
'child_num': 6,
'children': [{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 0,
'state': 0},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 0,
'state': 0},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1}],
'deviceId': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '955F433CBA24823A248A59AA64571A73',
'hw_ver': '2.0',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '6C:5A:B0:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS300(US)',
'oemId': 'REDACTED_A9BF8E84737D1DB1C66E883',
'rssi': -46,
'status': 'new',
'sw_ver': '1.0.12 Build 220121 Rel.175814',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStrip'>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.107>
DEBUG:kasa.iot.iotstrip:The device has emeter, querying its information along sysinfo
DEBUG:kasa.iot.iotdevice:Adding module <Module StripEmeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.107>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: countdown
DEBUG:kasa.iot.iotdevice:Adding query for <Module Countdown (countdown) for 192.168.0.107>: {'countdown': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.107>: {}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.107>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module StripEmeter (emeter) for 192.168.0.107>: {}
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"system":{"get_sysinfo":{}},"anti_theft":{"get_rules":{},"get_next_action":{}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"time":{"get_time":{},"get_timezone":{}},"countdown":{"get_rules":{},"get_next_action":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"system":{"get_sysinfo":{}},"anti_theft":{"get_rules":{},"get_next_action":{}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"time":{"get_time":{},"get_timezone":{}},"countdown":{"get_rules":{},"get_next_action":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'countdown': {'err_code': -1, 'err_msg': 'module not support'},
'schedule': {'get_daystat': {'day_list': [{'day': 1,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 2,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 3,
'month': 11,
'time': 1495,
'year': 2024},
{'day': 4,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 5,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 6,
'month': 11,
'time': 1434,
'year': 2024},
{'day': 7,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 8,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 9,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 10,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 11,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 12,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 13,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 14,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 15,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 16,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 17,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 18,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 19,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 20,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 21,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 22,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 23,
'month': 11,
'time': 1349,
'year': 2024},
{'day': 24,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 25,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 26,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 27,
'month': 11,
'time': 1429,
'year': 2024},
{'day': 28,
'month': 11,
'time': 1416,
'year': 2024},
{'day': 29,
'month': 11,
'time': 971,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 5,
'time': 39245,
'year': 2024},
{'month': 6,
'time': 43063,
'year': 2024},
{'month': 7,
'time': 44498,
'year': 2024},
{'month': 8,
'time': 44498,
'year': 2024},
{'month': 9,
'time': 43064,
'year': 2024},
{'month': 10,
'time': 43032,
'year': 2024},
{'month': 11,
'time': 41111,
'year': 2024},
{'month': 1,
'time': 44478,
'year': 2024},
{'month': 2,
'time': 40456,
'year': 2024},
{'month': 3,
'time': 43024,
'year': 2024},
{'month': 4,
'time': 42983,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}},
'system': {'get_sysinfo': {'alias': '#MASKED_NAME#',
'child_num': 6,
'children': [{'alias': '#MASKED_NAME#',
'id': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F00',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F01',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F02',
'next_action': {'type': -1},
'on_time': 0,
'state': 0},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F03',
'next_action': {'type': -1},
'on_time': 0,
'state': 0},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F04',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F05',
'next_action': {'type': -1},
'on_time': 176144,
'state': 1}],
'deviceId': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '955F433CBA24823A248A59AA64571A73',
'hw_ver': '2.0',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '6C:5A:B0:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS300(US)',
'oemId': 'REDACTED_A9BF8E84737D1DB1C66E883',
'rssi': -46,
'status': 'new',
'sw_ver': '1.0.12 Build 220121 Rel.175814',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 16,
'mday': 29,
'min': 44,
'month': 11,
'sec': 1,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotstrip:Initializing 6 child sockets
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStripPlug'>
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStripPlug'>
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStripPlug'>
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStripPlug'>
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStripPlug'>
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStripPlug'>
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.107>
DEBUG:kasa.iot.iotdevice:Adding module <Module Countdown (countdown) for 192.168.0.107>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F00']}, 'emeter': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F00']}, 'schedule': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F00']}, 'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F00']}, 'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Module <Module Countdown (countdown) for 192.168.0.107> not supported, skipping
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F00"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F00"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'emeter': {'get_daystat': {'day_list': [{'day': 27,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 209,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 209,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 205,
'month': 11,
'year': 2024},
{'day': 12,
'energy_wh': 207,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 210,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 209,
'month': 11,
'year': 2024},
{'day': 15,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 209,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 209,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 208,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 207,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 204,
'month': 11,
'year': 2024},
{'day': 1,
'energy_wh': 202,
'month': 11,
'year': 2024},
{'day': 2,
'energy_wh': 205,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 213,
'month': 11,
'year': 2024},
{'day': 4,
'energy_wh': 205,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 145,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 561,
'month': 11,
'year': 2024}]},
'get_realtime': {'current_ma': 156,
'err_code': 0,
'power_mw': 8665,
'slot_id': 0,
'total_wh': 432,
'voltage_mv': 118219}},
'schedule': {'get_daystat': {'day_list': [{'day': 1,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 2,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 3,
'month': 11,
'time': 1495,
'year': 2024},
{'day': 4,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 5,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 6,
'month': 11,
'time': 1434,
'year': 2024},
{'day': 7,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 8,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 9,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 10,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 11,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 12,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 13,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 14,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 15,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 16,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 17,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 18,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 19,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 20,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 21,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 22,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 23,
'month': 11,
'time': 1349,
'year': 2024},
{'day': 24,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 25,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 26,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 27,
'month': 11,
'time': 1429,
'year': 2024},
{'day': 28,
'month': 11,
'time': 1416,
'year': 2024},
{'day': 29,
'month': 11,
'time': 971,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 5,
'time': 39245,
'year': 2024},
{'month': 6,
'time': 43063,
'year': 2024},
{'month': 7,
'time': 44498,
'year': 2024},
{'month': 8,
'time': 44498,
'year': 2024},
{'month': 9,
'time': 43064,
'year': 2024},
{'month': 10,
'time': 43032,
'year': 2024},
{'month': 11,
'time': 41111,
'year': 2024},
{'month': 1,
'time': 44478,
'year': 2024},
{'month': 2,
'time': 40456,
'year': 2024},
{'month': 3,
'time': 43024,
'year': 2024},
{'month': 4,
'time': 42983,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F01']}, 'emeter': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F01']}, 'schedule': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F01']}, 'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F01']}, 'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Module <Module Countdown (countdown) for 192.168.0.107> not supported, skipping
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F01"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F01"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'emeter': {'get_daystat': {'day_list': [{'day': 10,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 12,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 15,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 97,
'month': 11,
'year': 2024},
{'day': 24,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 27,
'energy_wh': 100,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 98,
'month': 11,
'year': 2024},
{'day': 1,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 2,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 109,
'month': 11,
'year': 2024},
{'day': 4,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 97,
'month': 11,
'year': 2024},
{'day': 7,
'energy_wh': 98,
'month': 11,
'year': 2024},
{'day': 8,
'energy_wh': 104,
'month': 11,
'year': 2024},
{'day': 9,
'energy_wh': 105,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 68,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 3426,
'month': 4,
'year': 2024},
{'energy_wh': 3372,
'month': 5,
'year': 2024},
{'energy_wh': 3271,
'month': 6,
'year': 2024},
{'energy_wh': 3426,
'month': 7,
'year': 2024},
{'energy_wh': 3448,
'month': 8,
'year': 2024},
{'energy_wh': 3398,
'month': 9,
'year': 2024},
{'energy_wh': 3546,
'month': 10,
'year': 2024},
{'energy_wh': 2964,
'month': 11,
'year': 2024},
{'energy_wh': 798,
'month': 1,
'year': 2024},
{'energy_wh': 2284,
'month': 2,
'year': 2024},
{'energy_wh': 3500,
'month': 3,
'year': 2024}]},
'get_realtime': {'current_ma': 66,
'err_code': 0,
'power_mw': 4350,
'slot_id': 1,
'total_wh': 202,
'voltage_mv': 118204}},
'schedule': {'get_daystat': {'day_list': [{'day': 23,
'month': 11,
'time': 1349,
'year': 2024},
{'day': 24,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 25,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 26,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 27,
'month': 11,
'time': 1429,
'year': 2024},
{'day': 28,
'month': 11,
'time': 1416,
'year': 2024},
{'day': 1,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 2,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 3,
'month': 11,
'time': 1495,
'year': 2024},
{'day': 4,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 5,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 6,
'month': 11,
'time': 1434,
'year': 2024},
{'day': 7,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 8,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 9,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 10,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 11,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 12,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 13,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 14,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 15,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 16,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 17,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 18,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 19,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 20,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 21,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 22,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 29,
'month': 11,
'time': 971,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 1,
'time': 44498,
'year': 2024},
{'month': 2,
'time': 34976,
'year': 2024},
{'month': 3,
'time': 40589,
'year': 2024},
{'month': 4,
'time': 42982,
'year': 2024},
{'month': 5,
'time': 44500,
'year': 2024},
{'month': 6,
'time': 43064,
'year': 2024},
{'month': 7,
'time': 44498,
'year': 2024},
{'month': 8,
'time': 44498,
'year': 2024},
{'month': 9,
'time': 43064,
'year': 2024},
{'month': 10,
'time': 44499,
'year': 2024},
{'month': 11,
'time': 41111,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F02']}, 'emeter': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F02']}, 'schedule': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F02']}, 'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F02']}, 'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Module <Module Countdown (countdown) for 192.168.0.107> not supported, skipping
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F02"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F02"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'emeter': {'get_daystat': {'day_list': [{'day': 29,
'energy_wh': 0,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 8562,
'month': 2,
'year': 2024},
{'energy_wh': 0,
'month': 11,
'year': 2024}]},
'get_realtime': {'current_ma': 0,
'err_code': 0,
'power_mw': 0,
'slot_id': 2,
'total_wh': 0,
'voltage_mv': 118339}},
'schedule': {'get_daystat': {'day_list': [{'day': 29,
'month': 11,
'time': 0,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 1,
'time': 44498,
'year': 2024},
{'month': 2,
'time': 41044,
'year': 2024},
{'month': 11,
'time': 0,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F03']}, 'emeter': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F03']}, 'schedule': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F03']}, 'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F03']}, 'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Module <Module Countdown (countdown) for 192.168.0.107> not supported, skipping
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F03"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F03"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'emeter': {'get_daystat': {'day_list': [{'day': 29,
'energy_wh': 0,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 2042,
'month': 1,
'year': 2024},
{'energy_wh': 8311,
'month': 2,
'year': 2024},
{'energy_wh': 135,
'month': 3,
'year': 2024},
{'energy_wh': 0,
'month': 11,
'year': 2024}]},
'get_realtime': {'current_ma': 0,
'err_code': 0,
'power_mw': 0,
'slot_id': 3,
'total_wh': 0,
'voltage_mv': 118357}},
'schedule': {'get_daystat': {'day_list': [{'day': 27,
'month': 11,
'time': 1,
'year': 2024},
{'day': 29,
'month': 11,
'time': 1,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 3,
'time': 412,
'year': 2024},
{'month': 11,
'time': 2,
'year': 2024},
{'month': 1,
'time': 44498,
'year': 2024},
{'month': 2,
'time': 41044,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F04']}, 'emeter': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F04']}, 'schedule': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F04']}, 'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F04']}, 'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Module <Module Countdown (countdown) for 192.168.0.107> not supported, skipping
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F04"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F04"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'emeter': {'get_daystat': {'day_list': [{'day': 2,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 355,
'month': 11,
'year': 2024},
{'day': 4,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 342,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 343,
'month': 11,
'year': 2024},
{'day': 7,
'energy_wh': 343,
'month': 11,
'year': 2024},
{'day': 8,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 9,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 342,
'month': 11,
'year': 2024},
{'day': 12,
'energy_wh': 342,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 340,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 339,
'month': 11,
'year': 2024},
{'day': 15,
'energy_wh': 340,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 340,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 319,
'month': 11,
'year': 2024},
{'day': 24,
'energy_wh': 341,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 340,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 342,
'month': 11,
'year': 2024},
{'day': 27,
'energy_wh': 340,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 340,
'month': 11,
'year': 2024},
{'day': 1,
'energy_wh': 344,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 237,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 10682,
'month': 8,
'year': 2024},
{'energy_wh': 10291,
'month': 9,
'year': 2024},
{'energy_wh': 10591,
'month': 10,
'year': 2024},
{'energy_wh': 9780,
'month': 11,
'year': 2024},
{'energy_wh': 8930,
'month': 2,
'year': 2024},
{'energy_wh': 5587,
'month': 3,
'year': 2024},
{'energy_wh': 9752,
'month': 4,
'year': 2024},
{'energy_wh': 10614,
'month': 5,
'year': 2024},
{'energy_wh': 10306,
'month': 6,
'year': 2024},
{'energy_wh': 10688,
'month': 7,
'year': 2024}]},
'get_realtime': {'current_ma': 223,
'err_code': 0,
'power_mw': 14086,
'slot_id': 4,
'total_wh': 707,
'voltage_mv': 118369}},
'schedule': {'get_daystat': {'day_list': [{'day': 7,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 8,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 9,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 10,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 11,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 12,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 13,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 14,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 15,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 16,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 17,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 18,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 19,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 20,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 21,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 22,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 23,
'month': 11,
'time': 1349,
'year': 2024},
{'day': 24,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 25,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 26,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 27,
'month': 11,
'time': 1429,
'year': 2024},
{'day': 28,
'month': 11,
'time': 1416,
'year': 2024},
{'day': 1,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 2,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 3,
'month': 11,
'time': 1495,
'year': 2024},
{'day': 4,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 5,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 6,
'month': 11,
'time': 1434,
'year': 2024},
{'day': 29,
'month': 11,
'time': 971,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 4,
'time': 42982,
'year': 2024},
{'month': 5,
'time': 44500,
'year': 2024},
{'month': 6,
'time': 43064,
'year': 2024},
{'month': 7,
'time': 44498,
'year': 2024},
{'month': 8,
'time': 44498,
'year': 2024},
{'month': 9,
'time': 43064,
'year': 2024},
{'month': 10,
'time': 44499,
'year': 2024},
{'month': 11,
'time': 41111,
'year': 2024},
{'month': 2,
'time': 24742,
'year': 2024},
{'month': 3,
'time': 23930,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F05']}, 'emeter': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F05']}, 'schedule': {'get_realtime': None, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F05']}, 'anti_theft': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.107>: {'context': {'child_ids': ['800656B166D8904EC90647D5AFFC05DC1F383B9F05']}, 'schedule': {'get_rules': None, 'get_next_action': None}}
DEBUG:kasa.iot.iotdevice:Module <Module Countdown (countdown) for 192.168.0.107> not supported, skipping
DEBUG:kasa.iotprotocol:192.168.0.107 >> {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F05"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 sending query {"context":{"child_ids":["800656B166D8904EC90647D5AFFC05DC1F383B9F05"]},"emeter":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_realtime":null,"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024},"get_rules":null,"get_next_action":null},"anti_theft":{"get_rules":null,"get_next_action":null}}
DEBUG:kasa.xortransport:Device 192.168.0.107 query response received
DEBUG:kasa.iotprotocol:192.168.0.107 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'emeter': {'get_daystat': {'day_list': [{'day': 16,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 300,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 288,
'month': 11,
'year': 2024},
{'day': 24,
'energy_wh': 308,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 309,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 308,
'month': 11,
'year': 2024},
{'day': 27,
'energy_wh': 305,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 300,
'month': 11,
'year': 2024},
{'day': 1,
'energy_wh': 303,
'month': 11,
'year': 2024},
{'day': 2,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 313,
'month': 11,
'year': 2024},
{'day': 4,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 302,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 303,
'month': 11,
'year': 2024},
{'day': 7,
'energy_wh': 304,
'month': 11,
'year': 2024},
{'day': 8,
'energy_wh': 302,
'month': 11,
'year': 2024},
{'day': 9,
'energy_wh': 300,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 302,
'month': 11,
'year': 2024},
{'day': 12,
'energy_wh': 302,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 300,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 301,
'month': 11,
'year': 2024},
{'day': 15,
'energy_wh': 300,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 210,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 10213,
'month': 1,
'year': 2024},
{'energy_wh': 8991,
'month': 2,
'year': 2024},
{'energy_wh': 9377,
'month': 3,
'year': 2024},
{'energy_wh': 9137,
'month': 4,
'year': 2024},
{'energy_wh': 9412,
'month': 5,
'year': 2024},
{'energy_wh': 9153,
'month': 6,
'year': 2024},
{'energy_wh': 9446,
'month': 7,
'year': 2024},
{'energy_wh': 9413,
'month': 8,
'year': 2024},
{'energy_wh': 9076,
'month': 9,
'year': 2024},
{'energy_wh': 9367,
'month': 10,
'year': 2024},
{'energy_wh': 8669,
'month': 11,
'year': 2024}]},
'get_realtime': {'current_ma': 200,
'err_code': 0,
'power_mw': 12724,
'slot_id': 5,
'total_wh': 625,
'voltage_mv': 118365}},
'schedule': {'get_daystat': {'day_list': [{'day': 27,
'month': 11,
'time': 1429,
'year': 2024},
{'day': 28,
'month': 11,
'time': 1416,
'year': 2024},
{'day': 1,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 2,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 3,
'month': 11,
'time': 1495,
'year': 2024},
{'day': 4,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 5,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 6,
'month': 11,
'time': 1434,
'year': 2024},
{'day': 7,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 8,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 9,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 10,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 11,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 12,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 13,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 14,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 15,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 16,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 17,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 18,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 19,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 20,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 21,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 22,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 23,
'month': 11,
'time': 1349,
'year': 2024},
{'day': 24,
'month': 11,
'time': 1435,
'year': 2024},
{'day': 25,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 26,
'month': 11,
'time': 1436,
'year': 2024},
{'day': 29,
'month': 11,
'time': 971,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 11,
'time': 41111,
'year': 2024},
{'month': 1,
'time': 44498,
'year': 2024},
{'month': 2,
'time': 41629,
'year': 2024},
{'month': 3,
'time': 44440,
'year': 2024},
{'month': 4,
'time': 42982,
'year': 2024},
{'month': 5,
'time': 44500,
'year': 2024},
{'month': 6,
'time': 43064,
'year': 2024},
{'month': 7,
'time': 44498,
'year': 2024},
{'month': 8,
'time': 44498,
'year': 2024},
{'month': 9,
'time': 43064,
'year': 2024},
{'month': 10,
'time': 44499,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}}}
{
"system": {
"get_sysinfo": {
"sw_ver": "1.0.12 Build 220121 Rel.175814",
"hw_ver": "2.0",
"model": "HS300(US)",
"deviceId": "800656B166D8904EC90647D5AFFC05DC1F383B9F",
"oemId": "32BD0B21AA9BF8E84737D1DB1C66E883",
"hwId": "955F433CBA24823A248A59AA64571A73",
"rssi": -46,
"latitude_i": 424562,
"longitude_i": -709943,
"alias": "TP-LINK_Power Strip_93A1",
"status": "new",
"mic_type": "IOT.SMARTPLUGSWITCH",
"feature": "TIM:ENE",
"mac": "6C:5A:B0:6D:93:A1",
"updating": 0,
"led_off": 0,
"children": [
{
"id": "800656B166D8904EC90647D5AFFC05DC1F383B9F00",
"state": 1,
"alias": "Scott Office Fan",
"on_time": 176144,
"next_action": {
"type": -1
}
},
{
"id": "800656B166D8904EC90647D5AFFC05DC1F383B9F01",
"state": 1,
"alias": "PTL1",
"on_time": 176144,
"next_action": {
"type": -1
}
},
{
"id": "800656B166D8904EC90647D5AFFC05DC1F383B9F02",
"state": 0,
"alias": "Office Outlet - 3",
"on_time": 0,
"next_action": {
"type": -1
}
},
{
"id": "800656B166D8904EC90647D5AFFC05DC1F383B9F03",
"state": 0,
"alias": "Office Outlet - 4",
"on_time": 0,
"next_action": {
"type": -1
}
},
{
"id": "800656B166D8904EC90647D5AFFC05DC1F383B9F04",
"state": 1,
"alias": "Office Outlet - 5",
"on_time": 176144,
"next_action": {
"type": -1
}
},
{
"id": "800656B166D8904EC90647D5AFFC05DC1F383B9F05",
"state": 1,
"alias": "Office Outlet - 6",
"on_time": 176144,
"next_action": {
"type": -1
}
}
],
"child_num": 6,
"err_code": 0
}
},
"anti_theft": {
"get_rules": {
"rule_list": [],
"version": 2,
"enable": 0,
"err_code": 0
},
"get_next_action": {
"err_code": -2,
"err_msg": "member not support"
}
},
"schedule": {
"get_rules": {
"rule_list": [],
"version": 2,
"enable": 1,
"err_code": 0
},
"get_next_action": {
"type": -1,
"err_code": 0
},
"get_realtime": {
"err_code": -2,
"err_msg": "member not support"
},
"get_daystat": {
"day_list": [
{
"year": 2024,
"month": 11,
"day": 1,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 2,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 3,
"time": 1495
},
{
"year": 2024,
"month": 11,
"day": 4,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 5,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 6,
"time": 1434
},
{
"year": 2024,
"month": 11,
"day": 7,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 8,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 9,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 10,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 11,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 12,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 13,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 14,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 15,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 16,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 17,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 18,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 19,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 20,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 21,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 22,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 23,
"time": 1349
},
{
"year": 2024,
"month": 11,
"day": 24,
"time": 1435
},
{
"year": 2024,
"month": 11,
"day": 25,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 26,
"time": 1436
},
{
"year": 2024,
"month": 11,
"day": 27,
"time": 1429
},
{
"year": 2024,
"month": 11,
"day": 28,
"time": 1416
},
{
"year": 2024,
"month": 11,
"day": 29,
"time": 971
}
],
"err_code": 0
},
"get_monthstat": {
"month_list": [
{
"year": 2024,
"month": 5,
"time": 39245
},
{
"year": 2024,
"month": 6,
"time": 43063
},
{
"year": 2024,
"month": 7,
"time": 44498
},
{
"year": 2024,
"month": 8,
"time": 44498
},
{
"year": 2024,
"month": 9,
"time": 43064
},
{
"year": 2024,
"month": 10,
"time": 43032
},
{
"year": 2024,
"month": 11,
"time": 41111
},
{
"year": 2024,
"month": 1,
"time": 44478
},
{
"year": 2024,
"month": 2,
"time": 40456
},
{
"year": 2024,
"month": 3,
"time": 43024
},
{
"year": 2024,
"month": 4,
"time": 42983
}
],
"err_code": 0
}
},
"time": {
"get_time": {
"year": 2024,
"month": 11,
"mday": 29,
"hour": 16,
"min": 44,
"sec": 1,
"err_code": 0
},
"get_timezone": {
"index": 18,
"err_code": 0
}
},
"countdown": {
"err_code": -1,
"err_msg": "module not support"
},
"cnCloud": {
"get_info": {
"username": "scott@vandiver.org",
"server": "n-devs.tplinkcloud.com",
"binded": 1,
"cld_connection": 1,
"illegalType": 0,
"stopConnect": 0,
"tcspStatus": 1,
"fwDlPage": "",
"tcspInfo": "",
"fwNotifyType": -1,
"err_code": 0
}
}
}
It's weird that it's not responding to the regular discover.
Can you run just kasa --debug discover and see if it tries to get something from the 107 strip?
Morning...
Here is the complete output.
svandive@homebridge:/var/lib/homebridge/kasa-python/.venv/bin$ ./kasa --debug discover
Discovering devices on 255.255.255.255 for 10 seconds
DEBUG:kasa.discover:[DISCOVERY] 255.255.255.255 >> {'system': {'get_sysinfo': {}}}
DEBUG:kasa.discover:Waiting 10 seconds for responses...
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.199 << {'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'brightness': 30,
'dev_name': 'Wi-Fi Smart Dimmer',
'deviceId': 'REDACTED_668DF048F61743518BF361F1EC77712',
'err_code': 0,
'feature': 'TIM',
'hwId': '50B3F5C5DF12106A8C85E8903749DF1B',
'hw_ver': '3.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '60:A4:B7:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS220(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'tplink',
'oemId': 'REDACTED_E1782A8BA53CDBBA136FAE6',
'on_time': 0,
'preferred_state': [{'brightness': 100, 'index': 0},
{'brightness': 75, 'index': 1},
{'brightness': 50, 'index': 2},
{'brightness': 25, 'index': 3}],
'relay_state': 0,
'rssi': -37,
'status': 'new',
'sw_ver': '1.0.11 Build 240122 Rel.180546',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.199 of type <class 'kasa.iot.iotdimmer.IotDimmer'>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Motion (smartlife.iot.PIR) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module AmbientLight (smartlife.iot.LAS) for 192.168.0.199>
DEBUG:kasa.iot.iotdevice:Adding module <Module Light (light) for 192.168.0.199>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.199>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.199>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.199>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.199>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.199>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.199>: {}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: smartlife.iot.PIR
DEBUG:kasa.iot.iotdevice:Adding query for <Module Motion (smartlife.iot.PIR) for 192.168.0.199>: {'smartlife.iot.PIR': {'get_config': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: smartlife.iot.LAS
DEBUG:kasa.iot.iotdevice:Adding query for <Module AmbientLight (smartlife.iot.LAS) for 192.168.0.199>: {'smartlife.iot.LAS': {'get_config': {}, 'get_current_brt': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: light
DEBUG:kasa.iot.iotdevice:Adding query for <Module Light (light) for 192.168.0.199>: {}
DEBUG:kasa.iotprotocol:192.168.0.199 >> {"system":{"get_sysinfo":{}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}},"smartlife.iot.PIR":{"get_config":{}},"smartlife.iot.LAS":{"get_config":{},"get_current_brt":{}}}
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.104 << {'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_19074CB576C69D32B37297E204050EA',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '1C:61:B4:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'KP125(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_2ECC2AA8A7A082C4E33B815',
'on_time': 9178,
'relay_state': 1,
'rssi': -32,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.104 of type <class 'kasa.iot.iotplug.IotPlug'>
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.164 << {'system': {'get_sysinfo': {'active_mode': 'schedule',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_C2C9CFB40F6DC397CEBC2121FC6A8C0',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '54:AF:97:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'EP25(US)',
'next_action': {'action': 1,
'id': 'REDACTED_C7D6206A97FA13DA87ABC7E',
'schd_sec': 55620,
'type': 1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_DF8592F23F11BE91727E628',
'on_time': 0,
'relay_state': 0,
'rssi': -29,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.164 of type <class 'kasa.iot.iotplug.IotPlug'>
DEBUG:kasa.xortransport:Device 192.168.0.199 sending query {"system":{"get_sysinfo":{}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}},"smartlife.iot.PIR":{"get_config":{}},"smartlife.iot.LAS":{"get_config":{},"get_current_brt":{}}}
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.132 << {'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_3FF34BF281BAD4EB76DBF291FC79DCB',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '54:AF:97:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'EP25(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_DF8592F23F11BE91727E628',
'on_time': 9578,
'relay_state': 1,
'rssi': -22,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.132 of type <class 'kasa.iot.iotplug.IotPlug'>
DEBUG:kasa.xortransport:Device 192.168.0.199 query response received
DEBUG:kasa.iotprotocol:192.168.0.199 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'schedule': {'get_daystat': {'day_list': [{'day': 7,
'month': 11,
'time': 39,
'year': 2024},
{'day': 25,
'month': 11,
'time': 14,
'year': 2024},
{'day': 28,
'month': 11,
'time': 490,
'year': 2024},
{'day': 30,
'month': 11,
'time': 0,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 11,
'time': 543,
'year': 2024},
{'month': 1,
'time': 84,
'year': 2024},
{'month': 2,
'time': 26,
'year': 2024},
{'month': 3,
'time': 152,
'year': 2024},
{'month': 4,
'time': 192,
'year': 2024},
{'month': 5,
'time': 154,
'year': 2024},
{'month': 6,
'time': 13,
'year': 2024},
{'month': 7,
'time': 323,
'year': 2024},
{'month': 8,
'time': 103,
'year': 2024},
{'month': 9,
'time': 379,
'year': 2024},
{'month': 10,
'time': 70,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [{'eact': -1,
'enable': 0,
'id': 'REDACTED_003C95E3192D8A71F637395',
'name': 'name',
'repeat': 1,
's_dimmer': {'transition_period': 1000},
'sact': 1,
'smin': 1170,
'stime_opt': 0,
'wday': [0, 1, 1, 1, 1, 0, 0]},
{'eact': -1,
'enable': 0,
'id': 'REDACTED_2DC9FB644876A2D19918E42',
'name': 'name',
'repeat': 1,
's_dimmer': {'transition_period': 1000},
'sact': 0,
'smin': 1410,
'stime_opt': 0,
'wday': [1, 1, 1, 1, 1, 1, 1]}],
'version': 2}},
'smartlife.iot.LAS': {'err_code': -1, 'err_msg': 'module not support'},
'smartlife.iot.PIR': {'err_code': -1, 'err_msg': 'module not support'},
'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'brightness': 30,
'dev_name': 'Wi-Fi Smart Dimmer',
'deviceId': 'REDACTED_668DF048F61743518BF361F1EC77712',
'err_code': 0,
'feature': 'TIM',
'hwId': '50B3F5C5DF12106A8C85E8903749DF1B',
'hw_ver': '3.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '60:A4:B7:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS220(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'tplink',
'oemId': 'REDACTED_E1782A8BA53CDBBA136FAE6',
'on_time': 0,
'preferred_state': [{'brightness': 100, 'index': 0},
{'brightness': 75, 'index': 1},
{'brightness': 50, 'index': 2},
{'brightness': 25, 'index': 3}],
'relay_state': 0,
'rssi': -37,
'status': 'new',
'sw_ver': '1.0.11 Build 240122 Rel.180546',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 12,
'mday': 30,
'min': 9,
'month': 11,
'sec': 22,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: light
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.129 << {'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'brightness': 16,
'dev_name': 'Wi-Fi Smart Dimmer',
'deviceId': 'REDACTED_A2BAEBF12FFE02A2F6B7ED01EC6A948',
'err_code': 0,
'feature': 'TIM',
'hwId': '50B3F5C5DF12106A8C85E8903749DF1B',
'hw_ver': '3.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '60:A4:B7:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS220(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'tplink',
'oemId': 'REDACTED_E1782A8BA53CDBBA136FAE6',
'on_time': 0,
'preferred_state': [{'brightness': 100, 'index': 0},
{'brightness': 75, 'index': 1},
{'brightness': 50, 'index': 2},
{'brightness': 25, 'index': 3}],
'relay_state': 0,
'rssi': -36,
'status': 'new',
'sw_ver': '1.0.11 Build 240122 Rel.180546',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.129 of type <class 'kasa.iot.iotdimmer.IotDimmer'>
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.142 << {'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_C8613C01B55A685B25AC8601FC6F283',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '54:AF:97:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'EP25(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_DF8592F23F11BE91727E628',
'on_time': 249402,
'relay_state': 1,
'rssi': -44,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.142 of type <class 'kasa.iot.iotplug.IotPlug'>
== Fireplace Sitting Area - HS220(US) ==
Host: 192.168.0.199
Port: 9999
Device state: False
Time: 2024-11-30 12:09:22-05:00 (tz: EST)
Hardware: 3.0
Software: 1.0.11 Build 240122 Rel.180546
MAC (rssi): 60:A4:B7:07:86:43 (-37)
== Primary features ==
State (state): False
Brightness (brightness): 30 (range: 0-100)
== Information ==
On since (on_since): None
Cloud connection (cloud_connection): True
== Configuration ==
LED (led): True
== Debug ==
RSSI (rssi): -37 dBm
Reboot (reboot): <Action>
DEBUG:kasa.iot.iotdevice:The device has emeter, querying its information along sysinfo
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.104>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.104>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.104>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.104>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.104>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.104>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.104>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.104>: {'emeter': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.104>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.104>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.104>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.104>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.104>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.104>: {}
DEBUG:kasa.iotprotocol:192.168.0.104 >> {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.104 sending query {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.101 << {'system': {'get_sysinfo': {'err_code': 0,
'system': {'a_type': 2,
'alias': '#MASKED_NAME#',
'bind_status': True,
'c_opt': [0, 1],
'camera_switch': 'on',
'dev_name': 'Kasa Cam, 24/7 Recording',
'deviceId': 'REDACTED_61A4A6B7AA423AEB9F5C0152060E282',
'f_list': [1, 2],
'hwId': 'CBCB75216800E0BB4F32E954140A998F',
'hw_ver': '1.0',
'is_cal': 1,
'last_activity_timestamp': 1673556661,
'latitude': 0,
'led_status': 'on',
'longitude': 0,
'mac': '1C:61:B4:00:00:00',
'mic_mac': '1C61B4E6-00-00-00',
'model': 'KC410S(US)',
'new_feature': [2, 3, 4, 5, 9, 10],
'oemId': 'REDACTED_6D8669270C129EA4051930C',
'resolution': '2560x1440',
'rssi': -36,
'status': 'configured',
'stream_version': 2,
'sw_ver': '2.3.26 Build 20240510 '
'rel.32911',
'system_time': 1732986561,
'type': 'IOT.IPCAMERA',
'updating': False}}}}
DEBUG:kasa.discover:[DISCOVERY] Unable to find device type for 192.168.0.101: Unable to find the device type field!
DEBUG:kasa.xortransport:Device 192.168.0.104 query response received
DEBUG:kasa.iotprotocol:192.168.0.104 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'emeter': {'get_daystat': {'day_list': [{'day': 1,
'energy_wh': 31,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 11,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 26,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 223,
'month': 11,
'year': 2024},
{'day': 9,
'energy_wh': 25,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 12,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 17,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 124,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 51,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 31,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 85,
'month': 11,
'year': 2024},
{'day': 30,
'energy_wh': 40,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 457,
'month': 10,
'year': 2024},
{'energy_wh': 676,
'month': 11,
'year': 2024},
{'energy_wh': 206,
'month': 1,
'year': 2024},
{'energy_wh': 553,
'month': 2,
'year': 2024},
{'energy_wh': 468,
'month': 3,
'year': 2024},
{'energy_wh': 77,
'month': 4,
'year': 2024},
{'energy_wh': 209,
'month': 5,
'year': 2024},
{'energy_wh': 53,
'month': 6,
'year': 2024},
{'energy_wh': 501,
'month': 7,
'year': 2024},
{'energy_wh': 472,
'month': 8,
'year': 2024},
{'energy_wh': 1237,
'month': 9,
'year': 2024}]},
'get_realtime': {'current_ma': 240,
'err_code': 0,
'power_mw': 15886,
'total_wh': 125,
'voltage_mv': 122077}},
'schedule': {'get_daystat': {'day_list': [{'day': 23,
'month': 11,
'time': 165,
'year': 2024},
{'day': 25,
'month': 11,
'time': 99,
'year': 2024},
{'day': 28,
'month': 11,
'time': 242,
'year': 2024},
{'day': 1,
'month': 11,
'time': 107,
'year': 2024},
{'day': 3,
'month': 11,
'time': 38,
'year': 2024},
{'day': 5,
'month': 11,
'time': 90,
'year': 2024},
{'day': 6,
'month': 11,
'time': 339,
'year': 2024},
{'day': 9,
'month': 11,
'time': 132,
'year': 2024},
{'day': 10,
'month': 11,
'time': 58,
'year': 2024},
{'day': 11,
'month': 11,
'time': 69,
'year': 2024},
{'day': 16,
'month': 11,
'time': 394,
'year': 2024},
{'day': 30,
'month': 11,
'time': 153,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 10,
'time': 1583,
'year': 2024},
{'month': 11,
'time': 1886,
'year': 2024},
{'month': 1,
'time': 1306,
'year': 2024},
{'month': 2,
'time': 5337,
'year': 2024},
{'month': 3,
'time': 1611,
'year': 2024},
{'month': 4,
'time': 159,
'year': 2024},
{'month': 5,
'time': 393,
'year': 2024},
{'month': 6,
'time': 109,
'year': 2024},
{'month': 7,
'time': 1004,
'year': 2024},
{'month': 8,
'time': 1178,
'year': 2024},
{'month': 9,
'time': 3637,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_19074CB576C69D32B37297E204050EA',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '1C:61:B4:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'KP125(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_2ECC2AA8A7A082C4E33B815',
'on_time': 9178,
'relay_state': 1,
'rssi': -32,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 12,
'mday': 30,
'min': 9,
'month': 11,
'sec': 22,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
== Dining Room Fan - KP125(US) ==
Host: 192.168.0.104
Port: 9999
Device state: True
Time: 2024-11-30 12:09:22-05:00 (tz: EST)
Hardware: 1.0
Software: 1.0.14 Build 240424 Rel.094105
MAC (rssi): 1C:61:B4:A0:D1:91 (-32)
== Primary features ==
State (state): True
Current consumption (current_consumption): 15.9 W
Voltage (voltage): 122.1 V
Current (current): 0.24 A
== Information ==
On since (on_since): 2024-11-30 09:36:24-05:00
Today's consumption (consumption_today): 0.04 kWh
This month's consumption (consumption_this_month): 0.676 kWh
Total consumption since reboot (consumption_total): 0.125 kWh
Cloud connection (cloud_connection): True
== Configuration ==
LED (led): True
== Debug ==
RSSI (rssi): -32 dBm
Reboot (reboot): <Action>
DEBUG:kasa.iot.iotdevice:The device has emeter, querying its information along sysinfo
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.164>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.164>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.164>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.164>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.164>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.164>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.164>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.164>: {'emeter': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.164>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.164>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.164>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.164>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.164>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.164>: {}
DEBUG:kasa.iotprotocol:192.168.0.164 >> {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.164 sending query {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.164 query response received
DEBUG:kasa.iotprotocol:192.168.0.164 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'emeter': {'get_daystat': {'day_list': [{'day': 27,
'energy_wh': 65,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 69,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 65,
'month': 11,
'year': 2024},
{'day': 1,
'energy_wh': 51,
'month': 11,
'year': 2024},
{'day': 2,
'energy_wh': 53,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 54,
'month': 11,
'year': 2024},
{'day': 4,
'energy_wh': 69,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 56,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 62,
'month': 11,
'year': 2024},
{'day': 7,
'energy_wh': 63,
'month': 11,
'year': 2024},
{'day': 8,
'energy_wh': 64,
'month': 11,
'year': 2024},
{'day': 9,
'energy_wh': 61,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 67,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 61,
'month': 11,
'year': 2024},
{'day': 12,
'energy_wh': 64,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 62,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 63,
'month': 11,
'year': 2024},
{'day': 15,
'energy_wh': 64,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 61,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 64,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 64,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 60,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 62,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 62,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 63,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 60,
'month': 11,
'year': 2024},
{'day': 24,
'energy_wh': 86,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 61,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 63,
'month': 11,
'year': 2024},
{'day': 30,
'energy_wh': 0,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 1569,
'month': 10,
'year': 2024},
{'energy_wh': 1819,
'month': 11,
'year': 2024},
{'energy_wh': 1918,
'month': 1,
'year': 2024},
{'energy_wh': 1583,
'month': 2,
'year': 2024},
{'energy_wh': 1312,
'month': 3,
'year': 2024},
{'energy_wh': 1037,
'month': 4,
'year': 2024},
{'energy_wh': 1540,
'month': 5,
'year': 2024},
{'energy_wh': 1071,
'month': 6,
'year': 2024},
{'energy_wh': 1399,
'month': 7,
'year': 2024},
{'energy_wh': 1420,
'month': 8,
'year': 2024},
{'energy_wh': 1326,
'month': 9,
'year': 2024}]},
'get_realtime': {'current_ma': 0,
'err_code': 0,
'power_mw': 0,
'total_wh': 199,
'voltage_mv': 121118}},
'schedule': {'get_daystat': {'day_list': [{'day': 15,
'month': 11,
'time': 443,
'year': 2024},
{'day': 16,
'month': 11,
'time': 423,
'year': 2024},
{'day': 17,
'month': 11,
'time': 446,
'year': 2024},
{'day': 18,
'month': 11,
'time': 446,
'year': 2024},
{'day': 19,
'month': 11,
'time': 418,
'year': 2024},
{'day': 20,
'month': 11,
'time': 434,
'year': 2024},
{'day': 21,
'month': 11,
'time': 434,
'year': 2024},
{'day': 22,
'month': 11,
'time': 432,
'year': 2024},
{'day': 23,
'month': 11,
'time': 420,
'year': 2024},
{'day': 24,
'month': 11,
'time': 597,
'year': 2024},
{'day': 25,
'month': 11,
'time': 424,
'year': 2024},
{'day': 26,
'month': 11,
'time': 437,
'year': 2024},
{'day': 27,
'month': 11,
'time': 453,
'year': 2024},
{'day': 28,
'month': 11,
'time': 481,
'year': 2024},
{'day': 29,
'month': 11,
'time': 453,
'year': 2024},
{'day': 1,
'month': 11,
'time': 352,
'year': 2024},
{'day': 2,
'month': 11,
'time': 371,
'year': 2024},
{'day': 3,
'month': 11,
'time': 376,
'year': 2024},
{'day': 4,
'month': 11,
'time': 477,
'year': 2024},
{'day': 5,
'month': 11,
'time': 388,
'year': 2024},
{'day': 6,
'month': 11,
'time': 435,
'year': 2024},
{'day': 7,
'month': 11,
'time': 435,
'year': 2024},
{'day': 8,
'month': 11,
'time': 446,
'year': 2024},
{'day': 9,
'month': 11,
'time': 425,
'year': 2024},
{'day': 10,
'month': 11,
'time': 466,
'year': 2024},
{'day': 11,
'month': 11,
'time': 423,
'year': 2024},
{'day': 12,
'month': 11,
'time': 443,
'year': 2024},
{'day': 13,
'month': 11,
'time': 430,
'year': 2024},
{'day': 14,
'month': 11,
'time': 443,
'year': 2024},
{'day': 30,
'month': 11,
'time': 0,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 10,
'time': 10932,
'year': 2024},
{'month': 11,
'time': 12651,
'year': 2024},
{'month': 1,
'time': 13373,
'year': 2024},
{'month': 2,
'time': 11039,
'year': 2024},
{'month': 3,
'time': 9165,
'year': 2024},
{'month': 4,
'time': 7256,
'year': 2024},
{'month': 5,
'time': 10791,
'year': 2024},
{'month': 6,
'time': 8717,
'year': 2024},
{'month': 7,
'time': 9880,
'year': 2024},
{'month': 8,
'time': 9968,
'year': 2024},
{'month': 9,
'time': 9251,
'year': 2024}]},
'get_next_action': {'action': 1,
'err_code': 0,
'id': 'REDACTED_C7D6206A97FA13DA87ABC7E',
'schd_time': 55620,
'type': 1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [{'eact': -1,
'enable': 1,
'id': 'REDACTED_C7D6206A97FA13DA87ABC7E',
'name': 'name',
'repeat': 1,
'sact': 1,
'smin': 927,
'soffset': -45,
'stime_opt': 2,
'wday': [1, 1, 1, 1, 1, 1, 1]},
{'eact': -1,
'enable': 1,
'id': 'REDACTED_D6C61A6A8E2D11AAFE70FAA',
'name': 'name',
'repeat': 1,
'sact': 0,
'smin': 1380,
'stime_opt': 0,
'wday': [1, 1, 1, 1, 1, 1, 1]}],
'version': 2}},
'system': {'get_sysinfo': {'active_mode': 'schedule',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_C2C9CFB40F6DC397CEBC2121FC6A8C0',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '54:AF:97:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'EP25(US)',
'next_action': {'action': 1,
'id': 'REDACTED_C7D6206A97FA13DA87ABC7E',
'schd_sec': 55620,
'type': 1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_DF8592F23F11BE91727E628',
'on_time': 0,
'relay_state': 0,
'rssi': -29,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 12,
'mday': 30,
'min': 9,
'month': 11,
'sec': 22,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
== Living Room Standing Lamp - EP25(US) ==
Host: 192.168.0.164
Port: 9999
Device state: False
Time: 2024-11-30 12:09:22-05:00 (tz: EST)
Hardware: 1.0
Software: 1.0.14 Build 240424 Rel.094105
MAC (rssi): 54:AF:97:A0:87:2D (-29)
== Primary features ==
State (state): False
Current consumption (current_consumption): 0.0 W
Voltage (voltage): 121.1 V
Current (current): 0.0 A
== Information ==
On since (on_since): None
Today's consumption (consumption_today): 0.0 kWh
This month's consumption (consumption_this_month): 1.819 kWh
Total consumption since reboot (consumption_total): 0.199 kWh
Cloud connection (cloud_connection): True
== Configuration ==
LED (led): True
== Debug ==
RSSI (rssi): -29 dBm
Reboot (reboot): <Action>
DEBUG:kasa.iot.iotdevice:The device has emeter, querying its information along sysinfo
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.132>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.132>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.132>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.132>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.132>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.132>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.132>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.132>: {'emeter': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.132>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.132>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.132>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.132>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.132>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.132>: {}
DEBUG:kasa.iotprotocol:192.168.0.132 >> {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.132 sending query {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.132 query response received
DEBUG:kasa.iotprotocol:192.168.0.132 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'emeter': {'get_daystat': {'day_list': [{'day': 12,
'energy_wh': 63,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 31,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 25,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 102,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 61,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 51,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 68,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 24,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 52,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 59,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 13,
'month': 11,
'year': 2024},
{'day': 24,
'energy_wh': 81,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 52,
'month': 11,
'year': 2024},
{'day': 27,
'energy_wh': 77,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 207,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 225,
'month': 11,
'year': 2024},
{'day': 2,
'energy_wh': 58,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 25,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 20,
'month': 11,
'year': 2024},
{'day': 7,
'energy_wh': 8,
'month': 11,
'year': 2024},
{'day': 8,
'energy_wh': 90,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 23,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 42,
'month': 11,
'year': 2024},
{'day': 30,
'energy_wh': 29,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 1193,
'month': 10,
'year': 2024},
{'energy_wh': 1486,
'month': 11,
'year': 2024},
{'energy_wh': 1269,
'month': 1,
'year': 2024},
{'energy_wh': 2027,
'month': 2,
'year': 2024},
{'energy_wh': 1535,
'month': 3,
'year': 2024},
{'energy_wh': 290,
'month': 4,
'year': 2024},
{'energy_wh': 1817,
'month': 5,
'year': 2024},
{'energy_wh': 4352,
'month': 6,
'year': 2024},
{'energy_wh': 6853,
'month': 7,
'year': 2024},
{'energy_wh': 5319,
'month': 8,
'year': 2024},
{'energy_wh': 4510,
'month': 9,
'year': 2024}]},
'get_realtime': {'current_ma': 161,
'err_code': 0,
'power_mw': 10837,
'total_wh': 538,
'voltage_mv': 121551}},
'schedule': {'get_daystat': {'day_list': [{'day': 7,
'month': 11,
'time': 18,
'year': 2024},
{'day': 8,
'month': 11,
'time': 282,
'year': 2024},
{'day': 10,
'month': 11,
'time': 96,
'year': 2024},
{'day': 11,
'month': 11,
'time': 238,
'year': 2024},
{'day': 12,
'month': 11,
'time': 275,
'year': 2024},
{'day': 13,
'month': 11,
'time': 128,
'year': 2024},
{'day': 14,
'month': 11,
'time': 108,
'year': 2024},
{'day': 16,
'month': 11,
'time': 442,
'year': 2024},
{'day': 17,
'month': 11,
'time': 266,
'year': 2024},
{'day': 18,
'month': 11,
'time': 259,
'year': 2024},
{'day': 19,
'month': 11,
'time': 341,
'year': 2024},
{'day': 20,
'month': 11,
'time': 113,
'year': 2024},
{'day': 21,
'month': 11,
'time': 271,
'year': 2024},
{'day': 22,
'month': 11,
'time': 282,
'year': 2024},
{'day': 23,
'month': 11,
'time': 61,
'year': 2024},
{'day': 24,
'month': 11,
'time': 394,
'year': 2024},
{'day': 26,
'month': 11,
'time': 236,
'year': 2024},
{'day': 27,
'month': 11,
'time': 387,
'year': 2024},
{'day': 28,
'month': 11,
'time': 879,
'year': 2024},
{'day': 29,
'month': 11,
'time': 1226,
'year': 2024},
{'day': 2,
'month': 11,
'time': 243,
'year': 2024},
{'day': 5,
'month': 11,
'time': 126,
'year': 2024},
{'day': 6,
'month': 11,
'time': 48,
'year': 2024},
{'day': 30,
'month': 11,
'time': 159,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 10,
'time': 7412,
'year': 2024},
{'month': 11,
'time': 6878,
'year': 2024},
{'month': 1,
'time': 7205,
'year': 2024},
{'month': 2,
'time': 12221,
'year': 2024},
{'month': 3,
'time': 12659,
'year': 2024},
{'month': 4,
'time': 2069,
'year': 2024},
{'month': 5,
'time': 12367,
'year': 2024},
{'month': 6,
'time': 23684,
'year': 2024},
{'month': 7,
'time': 20089,
'year': 2024},
{'month': 8,
'time': 16138,
'year': 2024},
{'month': 9,
'time': 24217,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_3FF34BF281BAD4EB76DBF291FC79DCB',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '54:AF:97:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'EP25(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_DF8592F23F11BE91727E628',
'on_time': 9579,
'relay_state': 1,
'rssi': -22,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 12,
'mday': 30,
'min': 9,
'month': 11,
'sec': 22,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
== Living Room Fan - EP25(US) ==
Host: 192.168.0.132
Port: 9999
Device state: True
Time: 2024-11-30 12:09:22-05:00 (tz: EST)
Hardware: 1.0
Software: 1.0.14 Build 240424 Rel.094105
MAC (rssi): 54:AF:97:A0:7E:69 (-22)
== Primary features ==
State (state): True
Current consumption (current_consumption): 10.8 W
Voltage (voltage): 121.6 V
Current (current): 0.16 A
== Information ==
On since (on_since): 2024-11-30 09:29:43-05:00
Today's consumption (consumption_today): 0.029 kWh
This month's consumption (consumption_this_month): 1.486 kWh
Total consumption since reboot (consumption_total): 0.538 kWh
Cloud connection (cloud_connection): True
== Configuration ==
LED (led): True
== Debug ==
RSSI (rssi): -22 dBm
Reboot (reboot): <Action>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Motion (smartlife.iot.PIR) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module AmbientLight (smartlife.iot.LAS) for 192.168.0.129>
DEBUG:kasa.iot.iotdevice:Adding module <Module Light (light) for 192.168.0.129>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.129>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.129>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.129>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.129>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.129>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.129>: {}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: smartlife.iot.PIR
DEBUG:kasa.iot.iotdevice:Adding query for <Module Motion (smartlife.iot.PIR) for 192.168.0.129>: {'smartlife.iot.PIR': {'get_config': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: smartlife.iot.LAS
DEBUG:kasa.iot.iotdevice:Adding query for <Module AmbientLight (smartlife.iot.LAS) for 192.168.0.129>: {'smartlife.iot.LAS': {'get_config': {}, 'get_current_brt': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: light
DEBUG:kasa.iot.iotdevice:Adding query for <Module Light (light) for 192.168.0.129>: {}
DEBUG:kasa.iotprotocol:192.168.0.129 >> {"system":{"get_sysinfo":{}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}},"smartlife.iot.PIR":{"get_config":{}},"smartlife.iot.LAS":{"get_config":{},"get_current_brt":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.129 sending query {"system":{"get_sysinfo":{}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}},"smartlife.iot.PIR":{"get_config":{}},"smartlife.iot.LAS":{"get_config":{},"get_current_brt":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.129 query response received
DEBUG:kasa.iotprotocol:192.168.0.129 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'schedule': {'get_daystat': {'day_list': [{'day': 28,
'month': 11,
'time': 16,
'year': 2024},
{'day': 5,
'month': 11,
'time': 148,
'year': 2024},
{'day': 9,
'month': 11,
'time': 14,
'year': 2024},
{'day': 11,
'month': 11,
'time': 17,
'year': 2024},
{'day': 12,
'month': 11,
'time': 70,
'year': 2024},
{'day': 25,
'month': 11,
'time': 14,
'year': 2024},
{'day': 30,
'month': 11,
'time': 0,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 11,
'time': 279,
'year': 2024},
{'month': 1,
'time': 1865,
'year': 2024},
{'month': 2,
'time': 820,
'year': 2024},
{'month': 3,
'time': 9,
'year': 2024},
{'month': 4,
'time': 110,
'year': 2024},
{'month': 5,
'time': 2,
'year': 2024},
{'month': 6,
'time': 13,
'year': 2024},
{'month': 7,
'time': 1,
'year': 2024},
{'month': 8,
'time': 267,
'year': 2024},
{'month': 9,
'time': 432,
'year': 2024},
{'month': 10,
'time': 749,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 1,
'err_code': 0,
'rule_list': [],
'version': 2}},
'smartlife.iot.LAS': {'err_code': -1, 'err_msg': 'module not support'},
'smartlife.iot.PIR': {'err_code': -1, 'err_msg': 'module not support'},
'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'brightness': 16,
'dev_name': 'Wi-Fi Smart Dimmer',
'deviceId': 'REDACTED_A2BAEBF12FFE02A2F6B7ED01EC6A948',
'err_code': 0,
'feature': 'TIM',
'hwId': '50B3F5C5DF12106A8C85E8903749DF1B',
'hw_ver': '3.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '60:A4:B7:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS220(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'tplink',
'oemId': 'REDACTED_E1782A8BA53CDBBA136FAE6',
'on_time': 0,
'preferred_state': [{'brightness': 100, 'index': 0},
{'brightness': 75, 'index': 1},
{'brightness': 50, 'index': 2},
{'brightness': 25, 'index': 3}],
'relay_state': 0,
'rssi': -36,
'status': 'new',
'sw_ver': '1.0.11 Build 240122 Rel.180546',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 12,
'mday': 30,
'min': 9,
'month': 11,
'sec': 22,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: light
== Window Seat Lights - HS220(US) ==
Host: 192.168.0.129
Port: 9999
Device state: False
Time: 2024-11-30 12:09:22-05:00 (tz: EST)
Hardware: 3.0
Software: 1.0.11 Build 240122 Rel.180546
MAC (rssi): 60:A4:B7:07:6A:46 (-36)
== Primary features ==
State (state): False
Brightness (brightness): 16 (range: 0-100)
== Information ==
On since (on_since): None
Cloud connection (cloud_connection): True
== Configuration ==
LED (led): True
== Debug ==
RSSI (rssi): -36 dBm
Reboot (reboot): <Action>
DEBUG:kasa.iot.iotdevice:The device has emeter, querying its information along sysinfo
DEBUG:kasa.iot.iotdevice:Adding module <Module Emeter (emeter) for 192.168.0.142>
DEBUG:kasa.iot.iotdevice:Adding module <Module Schedule (schedule) for 192.168.0.142>
DEBUG:kasa.iot.iotdevice:Adding module <Module Usage (schedule) for 192.168.0.142>
DEBUG:kasa.iot.iotdevice:Adding module <Module Antitheft (anti_theft) for 192.168.0.142>
DEBUG:kasa.iot.iotdevice:Adding module <Module Time (time) for 192.168.0.142>
DEBUG:kasa.iot.iotdevice:Adding module <Module Cloud (cnCloud) for 192.168.0.142>
DEBUG:kasa.iot.iotdevice:Adding module <Module Led (system) for 192.168.0.142>
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: emeter
DEBUG:kasa.iot.iotdevice:Adding query for <Module Emeter (emeter) for 192.168.0.142>: {'emeter': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Schedule (schedule) for 192.168.0.142>: {'schedule': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: schedule
DEBUG:kasa.iot.iotdevice:Adding query for <Module Usage (schedule) for 192.168.0.142>: {'schedule': {'get_realtime': {}, 'get_daystat': {'year': 2024, 'month': 11}, 'get_monthstat': {'year': 2024}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: anti_theft
DEBUG:kasa.iot.iotdevice:Adding query for <Module Antitheft (anti_theft) for 192.168.0.142>: {'anti_theft': {'get_rules': {}, 'get_next_action': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: time
DEBUG:kasa.iot.iotdevice:Adding query for <Module Time (time) for 192.168.0.142>: {'time': {'get_time': {}, 'get_timezone': {}}}
DEBUG:kasa.iot.iotmodule:Initial update, so consider supported: cnCloud
DEBUG:kasa.iot.iotdevice:Adding query for <Module Cloud (cnCloud) for 192.168.0.142>: {'cnCloud': {'get_info': {}}}
DEBUG:kasa.iot.iotdevice:Adding query for <Module Led (system) for 192.168.0.142>: {}
DEBUG:kasa.iotprotocol:192.168.0.142 >> {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.142 sending query {"system":{"get_sysinfo":{}},"emeter":{"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"schedule":{"get_rules":{},"get_next_action":{},"get_realtime":{},"get_daystat":{"year":2024,"month":11},"get_monthstat":{"year":2024}},"anti_theft":{"get_rules":{},"get_next_action":{}},"time":{"get_time":{},"get_timezone":{}},"cnCloud":{"get_info":{}}}
DEBUG:kasa.xortransport:Device 192.168.0.142 query response received
DEBUG:kasa.iotprotocol:192.168.0.142 << {'anti_theft': {'get_next_action': {'err_code': -2,
'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'cnCloud': {'get_info': {'binded': 1,
'cld_connection': 1,
'err_code': 0,
'fwDlPage': '',
'fwNotifyType': -1,
'illegalType': 0,
'server': 'n-devs.tplinkcloud.com',
'stopConnect': 0,
'tcspInfo': '',
'tcspStatus': 1,
'username': 'user@example.com'}},
'emeter': {'get_daystat': {'day_list': [{'day': 1,
'energy_wh': 2221,
'month': 11,
'year': 2024},
{'day': 2,
'energy_wh': 1587,
'month': 11,
'year': 2024},
{'day': 3,
'energy_wh': 2273,
'month': 11,
'year': 2024},
{'day': 4,
'energy_wh': 2458,
'month': 11,
'year': 2024},
{'day': 5,
'energy_wh': 2007,
'month': 11,
'year': 2024},
{'day': 6,
'energy_wh': 1505,
'month': 11,
'year': 2024},
{'day': 7,
'energy_wh': 1482,
'month': 11,
'year': 2024},
{'day': 8,
'energy_wh': 2634,
'month': 11,
'year': 2024},
{'day': 9,
'energy_wh': 1412,
'month': 11,
'year': 2024},
{'day': 10,
'energy_wh': 2594,
'month': 11,
'year': 2024},
{'day': 11,
'energy_wh': 2478,
'month': 11,
'year': 2024},
{'day': 12,
'energy_wh': 2694,
'month': 11,
'year': 2024},
{'day': 13,
'energy_wh': 2364,
'month': 11,
'year': 2024},
{'day': 14,
'energy_wh': 2916,
'month': 11,
'year': 2024},
{'day': 15,
'energy_wh': 2269,
'month': 11,
'year': 2024},
{'day': 16,
'energy_wh': 1512,
'month': 11,
'year': 2024},
{'day': 17,
'energy_wh': 2366,
'month': 11,
'year': 2024},
{'day': 18,
'energy_wh': 3144,
'month': 11,
'year': 2024},
{'day': 19,
'energy_wh': 2961,
'month': 11,
'year': 2024},
{'day': 20,
'energy_wh': 2468,
'month': 11,
'year': 2024},
{'day': 21,
'energy_wh': 3156,
'month': 11,
'year': 2024},
{'day': 22,
'energy_wh': 2981,
'month': 11,
'year': 2024},
{'day': 23,
'energy_wh': 1558,
'month': 11,
'year': 2024},
{'day': 24,
'energy_wh': 2327,
'month': 11,
'year': 2024},
{'day': 25,
'energy_wh': 2526,
'month': 11,
'year': 2024},
{'day': 26,
'energy_wh': 3258,
'month': 11,
'year': 2024},
{'day': 27,
'energy_wh': 2618,
'month': 11,
'year': 2024},
{'day': 28,
'energy_wh': 2518,
'month': 11,
'year': 2024},
{'day': 29,
'energy_wh': 2845,
'month': 11,
'year': 2024},
{'day': 30,
'energy_wh': 952,
'month': 11,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'energy_wh': 44505,
'month': 6,
'year': 2024},
{'energy_wh': 55314,
'month': 7,
'year': 2024},
{'energy_wh': 62472,
'month': 8,
'year': 2024},
{'energy_wh': 55083,
'month': 9,
'year': 2024},
{'energy_wh': 58900,
'month': 10,
'year': 2024},
{'energy_wh': 70084,
'month': 11,
'year': 2024},
{'energy_wh': 82251,
'month': 1,
'year': 2024},
{'energy_wh': 73910,
'month': 2,
'year': 2024},
{'energy_wh': 71781,
'month': 3,
'year': 2024},
{'energy_wh': 43210,
'month': 4,
'year': 2024},
{'energy_wh': 56487,
'month': 5,
'year': 2024}]},
'get_realtime': {'current_ma': 2045,
'err_code': 0,
'power_mw': 215230,
'total_wh': 7145,
'voltage_mv': 120441}},
'schedule': {'get_daystat': {'day_list': [{'day': 29,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 1,
'month': 11,
'time': 1441,
'year': 2024},
{'day': 2,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 3,
'month': 11,
'time': 1500,
'year': 2024},
{'day': 4,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 5,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 6,
'month': 11,
'time': 1439,
'year': 2024},
{'day': 7,
'month': 11,
'time': 1439,
'year': 2024},
{'day': 8,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 9,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 10,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 11,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 12,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 13,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 14,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 15,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 16,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 17,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 18,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 19,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 20,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 21,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 22,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 23,
'month': 11,
'time': 1354,
'year': 2024},
{'day': 24,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 25,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 26,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 27,
'month': 11,
'time': 1438,
'year': 2024},
{'day': 28,
'month': 11,
'time': 1440,
'year': 2024},
{'day': 30,
'month': 11,
'time': 729,
'year': 2024}],
'err_code': 0},
'get_monthstat': {'err_code': 0,
'month_list': [{'month': 6,
'time': 43198,
'year': 2024},
{'month': 7,
'time': 44638,
'year': 2024},
{'month': 8,
'time': 44638,
'year': 2024},
{'month': 9,
'time': 43198,
'year': 2024},
{'month': 10,
'time': 44638,
'year': 2024},
{'month': 11,
'time': 42460,
'year': 2024},
{'month': 1,
'time': 44637,
'year': 2024},
{'month': 2,
'time': 41760,
'year': 2024},
{'month': 3,
'time': 44578,
'year': 2024},
{'month': 4,
'time': 43117,
'year': 2024},
{'month': 5,
'time': 44640,
'year': 2024}]},
'get_next_action': {'err_code': 0, 'type': -1},
'get_realtime': {'err_code': -2, 'err_msg': 'member not support'},
'get_rules': {'enable': 0,
'err_code': 0,
'rule_list': [],
'version': 2}},
'system': {'get_sysinfo': {'active_mode': 'none',
'alias': '#MASKED_NAME#',
'dev_name': 'Smart Wi-Fi Plug Mini',
'deviceId': 'REDACTED_C8613C01B55A685B25AC8601FC6F283',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '51F7FD94AB9EFF012B93C4B41A44DB32',
'hw_ver': '1.0',
'icon_hash': '',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '54:AF:97:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'EP25(US)',
'next_action': {'type': -1},
'ntc_state': 0,
'obd_src': 'apple',
'oemId': 'REDACTED_DF8592F23F11BE91727E628',
'on_time': 249403,
'relay_state': 1,
'rssi': -44,
'status': 'configured',
'sw_ver': '1.0.14 Build 240424 Rel.094105',
'updating': 0}},
'time': {'get_time': {'err_code': 0,
'hour': 12,
'mday': 30,
'min': 9,
'month': 11,
'sec': 22,
'year': 2024},
'get_timezone': {'err_code': 0, 'index': 18}}}
== Office Primary Power - EP25(US) ==
Host: 192.168.0.142
Port: 9999
Device state: True
Time: 2024-11-30 12:09:22-05:00 (tz: EST)
Hardware: 1.0
Software: 1.0.14 Build 240424 Rel.094105
MAC (rssi): 54:AF:97:A0:87:DD (-44)
== Primary features ==
State (state): True
Current consumption (current_consumption): 215.2 W
Voltage (voltage): 120.4 V
Current (current): 2.04 A
== Information ==
On since (on_since): 2024-11-27 14:52:39-05:00
Today's consumption (consumption_today): 0.952 kWh
This month's consumption (consumption_this_month): 70.084 kWh
Total consumption since reboot (consumption_total): 7.145 kWh
Cloud connection (cloud_connection): True
== Configuration ==
LED (led): True
== Debug ==
RSSI (rssi): -44 dBm
Reboot (reboot): <Action>
DEBUG:kasa.discover:Discovered 6 devices
Found 6 devices
This is adding the --host 192.168.0.107 to the command to force discovery of the HS300
svandive@homebridge:/var/lib/homebridge/kasa-python/.venv/bin$ ./kasa --host 192.168.0.107 --debug discover
Discovering device 192.168.0.107 for 10 seconds
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.107 >> {'system': {'get_sysinfo': {}}}
DEBUG:kasa.discover:Waiting a total of 10 seconds for responses...
DEBUG:kasa.discover:[DISCOVERY] 192.168.0.107 << {'system': {'get_sysinfo': {'alias': '#MASKED_NAME#',
'child_num': 6,
'children': [{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 242020,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 242020,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 0,
'state': 0},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 0,
'state': 0},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 242020,
'state': 1},
{'alias': '#MASKED_NAME#',
'id': 'REDACTED_',
'next_action': {'type': -1},
'on_time': 242020,
'state': 1}],
'deviceId': 'REDACTED_6D8904EC90647D5AFFC05DC1F383B9F',
'err_code': 0,
'feature': 'TIM:ENE',
'hwId': '955F433CBA24823A248A59AA64571A73',
'hw_ver': '2.0',
'latitude_i': 0,
'led_off': 0,
'longitude_i': 0,
'mac': '6C:5A:B0:00:00:00',
'mic_type': 'IOT.SMARTPLUGSWITCH',
'model': 'HS300(US)',
'oemId': 'REDACTED_A9BF8E84737D1DB1C66E883',
'rssi': -45,
'status': 'new',
'sw_ver': '1.0.12 Build 220121 Rel.175814',
'updating': 0}}}
DEBUG:kasa.device:Initializing 192.168.0.107 of type <class 'kasa.iot.iotstrip.IotStrip'>
Good Day,
**Well I think it's pretty clear now that the reason this isn't working is because the Plugin is not setup for Light Strips and Bulbs, yet. However I thought it might be helpful if I provided the output you requested in the other thread.
I am noticing a similar issue to ZeliardM but I believe on a much smaller scale. I have 12 devices but three are not showing up during discovery (see list below).
I can use the 'kasa python' app located at /homebridge/kasa-python/.venv/bin/kasa to run a discovery and I get a slightly different result in terms of what is auto-discovered. However, I can use the --host flag and discover/talk to all 12 of the devices on my network.
My issue might simply just be related to the Homebridge Plugin implementation not supporting Strip Lights (two of the missing items are KL420L5 strip lights). The other missing device is a KL125 Lightbulb.
HomeBridge Kasa Python Plugin Discovered Devices: 4 x EP25 2 x HS200 1 x HS300 1 x KP125
Devices not Discovered by HomeBridge Kasa Python Plugin: 2 x KL420L5 1 x KL125
I have added the three missing devices manually via IP address to the Plugin Config. However they remain undiscovered. I have also updated my broadcast to be broadcast domain specific (e.g. 192.168.0.255)
Thank You So Much for building and supporting such a fantastically helpful Plugin...
Logs:
Plugin Config:
Environment:
Kasa Python Plugin Version: 2.6.8 HomeBridge Version: 1.8.5 Node.js Version: 22.11.0 NPM Version: 10.9.0 Linux oznu-homebridge-1 4.4.302+ #72806 SMP Thu Sep 5 13:45:50 CST 2024 x86_64 x86_64 x86_64 GNU/Linux -- Running in a Docker on the Synology DS1621+ with DSM 7.2.2-72806 Update 2 Python3 Version: 3.12.7
Output from the kasa python application
KL125 - Smart Bulb
KL420L5 - Strip Light