ZeliardM / homebridge-kasa-python

Plugin that uses Python-Kasa API to communicate with Kasa Devices.
MIT License
5 stars 2 forks source link

Not all device Discovered #8

Open svandive opened 1 day ago

svandive commented 1 day ago

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:

[11/29/2024, 12:10:59 PM] [KasaPython] homebridge-kasa-python v2.6.8, node v22.11.0, homebridge v1.8.5, api v2.7 Initializing...
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Starting python environment check...
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Running command: python3 --version
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command PID: 27628
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command finished.
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Running command: /var/lib/homebridge/kasa-python/.venv/bin/python3 /homebridge/node_modules/homebridge-kasa-python/dist/python/pythonHome.py
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command PID: 27629
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command finished.
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Running command: python3 /homebridge/node_modules/homebridge-kasa-python/dist/python/pythonHome.py
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command PID: 27630
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command finished.
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Running command: /var/lib/homebridge/kasa-python/.venv/bin/pip3 --version
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command PID: 27631
[11/29/2024, 12:10:59 PM] [KasaPython] [Python Check] Command finished.
[11/29/2024, 12:11:00 PM] [KasaPython] [Python Check] Running command: /var/lib/homebridge/kasa-python/.venv/bin/pip3 freeze
[11/29/2024, 12:11:00 PM] [KasaPython] [Python Check] Command PID: 27632
[11/29/2024, 12:11:00 PM] [KasaPython] [Python Check] Command finished.
[11/29/2024, 12:11:00 PM] [KasaPython] [Python Check] Running command: /var/lib/homebridge/kasa-python/.venv/bin/pip3 install -r /homebridge/node_modules/homebridge-kasa-python/requirements.txt
[11/29/2024, 12:11:00 PM] [KasaPython] [Python Check] Command PID: 27633
[11/29/2024, 12:11:01 PM] [KasaPython] [Python Check] Command finished.
[11/29/2024, 12:11:01 PM] [KasaPython] [Python Check] Finished python environment check.
[11/29/2024, 12:11:01 PM] [KasaPython] Logging server started on port 40743
[11/29/2024, 12:11:01 PM] [KasaPython] Running command: /var/lib/homebridge/kasa-python/.venv/bin/python3 /var/lib/homebridge/node_modules/homebridge-kasa-python/dist/python/kasaApi.py 44261
[11/29/2024, 12:11:01 PM] [KasaPython] Command PID: 27637
[11/29/2024, 12:11:01 PM] [KasaPython] Command started.
[11/29/2024, 12:11:02 PM] [KasaPython] 2024-11-29 12:11:02.256 | INFO     | __main__:<module>:267 - Starting server on port 44261
[11/29/2024, 12:11:06 PM] [KasaPython] Discovering devices...
[11/29/2024, 12:11:06 PM] [KasaPython] Sending discovery request with additionalBroadcasts: ["192.168.0.255"], and manualDevices: ["192.168.0.168","192.168.0.107","192.168.0.195","192.168.0.126","192.168.0.141"]
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.449 | DEBUG    | __main__:discover:235 - Starting device discovery with additionalBroadcasts: ['192.168.0.255'] and manualDevices: ['192.168.0.168', '192.168.0.107', '192.168.0.195', '192.168.0.126', '192.168.0.141']
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.453 | DEBUG    | __main__:discover_devices:96 - Starting device discovery
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.456 | DEBUG    | __main__:discover_on_broadcast:112 - Starting discovery on broadcast: 255.255.255.255
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.460 | DEBUG    | __main__:discover_on_broadcast:112 - Starting discovery on broadcast: 192.168.0.255
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.673 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.199
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.678 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.129
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.683 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.104
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.687 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.104
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.691 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.199
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.695 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.164
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.711 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.164
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.748 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.132
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.751 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.132
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.780 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.142
[11/29/2024, 12:11:06 PM] [KasaPython] 2024-11-29 12:11:06.818 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.142
[11/29/2024, 12:11:08 PM] [KasaPython] 2024-11-29 12:11:08.431 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.129
[11/29/2024, 12:11:10 PM] [KasaPython] 2024-11-29 12:11:10.711 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.195
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.162 | DEBUG    | __main__:on_discovered:104 - Discovered device: 192.168.0.195
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.566 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.199 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.569 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.164 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.572 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.104 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.576 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.142 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.579 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.132 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.581 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.195 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.584 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.129 from broadcast 255.255.255.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.587 | DEBUG    | __main__:discover_on_broadcast:117 - Discovered 7 devices on broadcast 255.255.255.255
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.590 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.104 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.593 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.164 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.595 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.199 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.598 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.129 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.601 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.142 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.604 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.132 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.606 | DEBUG    | __main__:discover_on_broadcast:116 - Added device 192.168.0.195 from broadcast 192.168.0.255 to devices list
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.609 | DEBUG    | __main__:discover_on_broadcast:117 - Discovered 7 devices on broadcast 192.168.0.255
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.612 | DEBUG    | __main__:discover_manual_device:126 - Discovering manual device: 192.168.0.168
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.615 | DEBUG    | __main__:discover_manual_device:126 - Discovering manual device: 192.168.0.107
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.618 | DEBUG    | __main__:discover_manual_device:123 - Manual device 192.168.0.195 already exists in devices, skipping.
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.620 | DEBUG    | __main__:discover_manual_device:126 - Discovering manual device: 192.168.0.126
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.623 | DEBUG    | __main__:discover_manual_device:126 - Discovering manual device: 192.168.0.141
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.675 | DEBUG    | __main__:discover_manual_device:130 - Discovered manual device: 192.168.0.141 with device type DeviceType.LightStrip
[11/29/2024, 12:11:11 PM] [KasaPython] 2024-11-29 12:11:11.710 | DEBUG    | __main__:discover_manual_device:130 - Discovered manual device: 192.168.0.168 with device type DeviceType.Plug
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.186 | DEBUG    | __main__:discover_manual_device:130 - Discovered manual device: 192.168.0.107 with device type DeviceType.Strip
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.337 | DEBUG    | __main__:discover_manual_device:130 - Discovered manual device: 192.168.0.126 with device type DeviceType.LightStrip
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.341 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.199 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.343 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.164 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.347 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.104 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.350 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.142 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.354 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.132 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.357 | DEBUG    | __main__:discover_devices:150 - Device 192.168.0.195 with type IOT.SMARTBULB is unsupported and was not added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.359 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.129 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.362 | DEBUG    | __main__:discover_devices:150 - Device 192.168.0.141 with type IOT.SMARTBULB is unsupported and was not added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.365 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.168 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.367 | DEBUG    | __main__:discover_devices:148 - Device 192.168.0.107 with type IOT.SMARTPLUGSWITCH added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.370 | DEBUG    | __main__:discover_devices:150 - Device 192.168.0.126 with type IOT.SMARTBULB is unsupported and was not added to update tasks
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.373 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.199
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.376 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.199
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.378 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.199
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.381 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.199
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.384 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.164
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.387 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.164
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.389 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.164
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.392 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.164
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.395 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.104
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.398 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.104
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.400 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.104
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.403 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.104
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.406 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.142
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.408 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.142
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.411 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.142
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.414 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.142
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.418 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.132
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.421 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.132
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.424 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.132
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.427 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.132
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.430 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.129
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.432 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.129
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.435 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.129
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.439 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.129
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.442 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.168
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.446 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.168
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.450 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.168
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.453 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.168
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.457 | DEBUG    | __main__:update_device_info:167 - Updating device info for 192.168.0.107
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.460 | DEBUG    | __main__:custom_device_serializer:35 - Serializing device: 192.168.0.107
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.463 | DEBUG    | __main__:custom_discovery_serializer:86 - Serializing device for discovery: 192.168.0.107
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.466 | DEBUG    | __main__:update_device_info:179 - Updated device info for 192.168.0.107
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.469 | DEBUG    | __main__:discover_devices:163 - Device discovery completed with 8 devices found
[11/29/2024, 12:11:13 PM] [KasaPython] 2024-11-29 12:11:13.473 | DEBUG    | __main__:discover:237 - Device discovery completed with 8 devices found
[11/29/2024, 12:11:13 PM] [KasaPython] Discovery request sent successfully
[11/29/2024, 12:11:13 PM] [KasaPython] Devices discovered: 8
[11/29/2024, 12:11:13 PM] [KasaPython] Reading config file from path: /var/lib/homebridge/config.json
[11/29/2024, 12:11:13 PM] [KasaPython] Config file read successfully
[11/29/2024, 12:11:13 PM] [KasaPython] KasaPython configuration found in config file
[11/29/2024, 12:11:13 PM] [KasaPython] Filtering manualDevices to remove entries without a host
[11/29/2024, 12:11:13 PM] [KasaPython] Processing discovered devices
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.104
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.107
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.129
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.132
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.142
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.164
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.168
[11/29/2024, 12:11:13 PM] [KasaPython] Processed device with IP: 192.168.0.199
[11/29/2024, 12:11:13 PM] [KasaPython] Writing updated config file
[11/29/2024, 12:11:13 PM] [KasaPython] Config file written successfully
[11/29/2024, 12:11:13 PM] [KasaPython] Platform config updated
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Dining Room Fan] IOT.SMARTPLUGSWITCH [80063E62619074CB576C69D32B37297E204050EA]
[11/29/2024, 12:11:13 PM] [KasaPython] [Dining Room Fan] Existing Accessory found [80063E62619074CB576C69D32B37297E204050EA] [75daa98f-7169-40a4-a5b0-1611349b1e1d] category: OUTLET
[11/29/2024, 12:11:13 PM] [KasaPython] [Dining Room Fan] Initializing HomeKitDevicePlug for device: Dining Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Dining Room Fan] Adding characteristics for outlet service: Dining Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Dining Room Fan] Adding characteristic On for device: Dining Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Dining Room Fan] Adding characteristic OutletInUse for device: Dining Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Dining Room Fan] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Power Strip 93A1] IOT.SMARTPLUGSWITCH [800656B166D8904EC90647D5AFFC05DC1F383B9F]
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Existing Accessory found [800656B166D8904EC90647D5AFFC05DC1F383B9F] [3529f84c-a8e3-480c-935d-0ec34a83d214] category: OUTLET
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Initializing HomeKitDevicePowerStrip for device: Power Strip 93A1
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding outlet service for child device: Scott Office Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristics for outlet service: Scott Office Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic On for child device: Scott Office Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic OutletInUse for child device: Scott Office Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding outlet service for child device: PTL1
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristics for outlet service: PTL1
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic On for child device: PTL1
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic OutletInUse for child device: PTL1
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding outlet service for child device: Office Outlet - 3
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristics for outlet service: Office Outlet - 3
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic On for child device: Office Outlet - 3
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic OutletInUse for child device: Office Outlet - 3
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding outlet service for child device: Office Outlet - 4
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristics for outlet service: Office Outlet - 4
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic On for child device: Office Outlet - 4
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic OutletInUse for child device: Office Outlet - 4
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding outlet service for child device: Office Outlet - 5
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristics for outlet service: Office Outlet - 5
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic On for child device: Office Outlet - 5
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic OutletInUse for child device: Office Outlet - 5
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding outlet service for child device: Office Outlet - 6
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristics for outlet service: Office Outlet - 6
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic On for child device: Office Outlet - 6
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Adding characteristic OutletInUse for child device: Office Outlet - 6
[11/29/2024, 12:11:13 PM] [KasaPython] [Power Strip 93A1] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Window Seat Lights] IOT.SMARTPLUGSWITCH [80067CA6EA2BAEBF12FFE02A2F6B7ED01EC6A948]
[11/29/2024, 12:11:13 PM] [KasaPython] [Window Seat Lights] Existing Accessory found [80067CA6EA2BAEBF12FFE02A2F6B7ED01EC6A948] [64280c3a-376c-462b-813d-cc0712d54236] category: SWITCH
[11/29/2024, 12:11:13 PM] [KasaPython] [Window Seat Lights] Initializing HomeKitDeviceSwitch for device: Window Seat Lights
[11/29/2024, 12:11:13 PM] [KasaPython] [Window Seat Lights] Adding characteristics for switch service: Window Seat Lights
[11/29/2024, 12:11:13 PM] [KasaPython] [Window Seat Lights] Adding characteristic On for device: Window Seat Lights
[11/29/2024, 12:11:13 PM] [KasaPython] [Window Seat Lights] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Living Room Fan] IOT.SMARTPLUGSWITCH [8006B0AF03FF34BF281BAD4EB76DBF291FC79DCB]
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Fan] Existing Accessory found [8006B0AF03FF34BF281BAD4EB76DBF291FC79DCB] [cd8dbc89-5a1f-474a-a52e-79f44431754e] category: OUTLET
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Fan] Initializing HomeKitDevicePlug for device: Living Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Fan] Adding characteristics for outlet service: Living Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Fan] Adding characteristic On for device: Living Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Fan] Adding characteristic OutletInUse for device: Living Room Fan
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Fan] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Office Primary Power] IOT.SMARTPLUGSWITCH [8006591CEC8613C01B55A685B25AC8601FC6F283]
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Primary Power] Existing Accessory found [8006591CEC8613C01B55A685B25AC8601FC6F283] [c948e8ac-af2b-41a0-8eaa-a9146997a7d8] category: OUTLET
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Primary Power] Initializing HomeKitDevicePlug for device: Office Primary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Primary Power] Adding characteristics for outlet service: Office Primary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Primary Power] Adding characteristic On for device: Office Primary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Primary Power] Adding characteristic OutletInUse for device: Office Primary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Primary Power] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Living Room Standing Lamp] IOT.SMARTPLUGSWITCH [80063F8F0C2C9CFB40F6DC397CEBC2121FC6A8C0]
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Standing Lamp] Existing Accessory found [80063F8F0C2C9CFB40F6DC397CEBC2121FC6A8C0] [ddad3eee-0588-4152-8f3d-a1dbd6a99593] category: OUTLET
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Standing Lamp] Initializing HomeKitDevicePlug for device: Living Room Standing Lamp
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Standing Lamp] Adding characteristics for outlet service: Living Room Standing Lamp
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Standing Lamp] Adding characteristic On for device: Living Room Standing Lamp
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Standing Lamp] Adding characteristic OutletInUse for device: Living Room Standing Lamp
[11/29/2024, 12:11:13 PM] [KasaPython] [Living Room Standing Lamp] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Office Secondary Power] IOT.SMARTPLUGSWITCH [80060AED9F82655B27FCD47D7409C87F1FC763DB]
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Secondary Power] Existing Accessory found [80060AED9F82655B27FCD47D7409C87F1FC763DB] [2c561bdc-e521-48fe-a708-4f969e1201d7] category: OUTLET
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Secondary Power] Initializing HomeKitDevicePlug for device: Office Secondary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Secondary Power] Adding characteristics for outlet service: Office Secondary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Secondary Power] Adding characteristic On for device: Office Secondary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Secondary Power] Adding characteristic OutletInUse for device: Office Secondary Power
[11/29/2024, 12:11:13 PM] [KasaPython] [Office Secondary Power] Starting polling for device state updates
[11/29/2024, 12:11:13 PM] [KasaPython] Adding: [Fireplace Sitting Area] IOT.SMARTPLUGSWITCH [800694A78668DF048F61743518BF361F1EC77712]
[11/29/2024, 12:11:13 PM] [KasaPython] [Fireplace Sitting Area] Existing Accessory found [800694A78668DF048F61743518BF361F1EC77712] [9a958248-162b-46d6-8a79-c5a7c633f4c7] category: SWITCH
[11/29/2024, 12:11:13 PM] [KasaPython] [Fireplace Sitting Area] Initializing HomeKitDeviceSwitch for device: Fireplace Sitting Area
[11/29/2024, 12:11:13 PM] [KasaPython] [Fireplace Sitting Area] Adding characteristics for switch service: Fireplace Sitting Area
[11/29/2024, 12:11:13 PM] [KasaPython] [Fireplace Sitting Area] Adding characteristic On for device: Fireplace Sitting Area
[11/29/2024, 12:11:13 PM] [KasaPython] [Fireplace Sitting Area] Starting polling for device state updates

Plugin Config:

{
    "name": "KasaPython",
    "enableCredentials": true,
    "username": "scott@vandiver.org",
    "password": "$Emv032302",
    "additionalBroadcasts": [
        "192.168.0.255"
    ],
    "manualDevices": [
        {
            "host": "192.168.0.168",
            "alias": "Office Secondary Power"
        },
        {
            "host": "192.168.0.107",
            "alias": "Power Strip 93A1"
        },
        {
            "host": "192.168.0.195",
            "alias": "Will Be Filled By Plug-In Automatically"
        },
        {
            "host": "192.168.0.126",
            "alias": "Will Be Filled By Plug-In Automatically"
        },
        {
            "host": "192.168.0.141",
            "alias": "Will Be Filled By Plug-In Automatically"
        }
    ],
    "_bridge": {
        "username": "0E:2B:3B:D5:D9:DF",
        "port": 44468
    },
    "platform": "KasaPython"
}

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

{
    "system": {
        "get_sysinfo": {
            "sw_ver": "1.0.9 Build 230210 Rel.135933",
            "hw_ver": "2.0",
            "model": "KL125(US)",
            "deviceId": "80120E119C6B4330995B2168B9C5B2351EF0A0B3",
            "oemId": "8D0E6FB5030F771CEB8EFD81303FA7EF",
            "hwId": "2E1063761D64B0988243FB36E857430B",
            "rssi": -60,
            "latitude_i": 424562,
            "longitude_i": -709943,
            "alias": "Front Door",
            "status": "new",
            "obd_src": "tplink",
            "description": "Smart Wi-Fi LED Bulb with Color Changing",
            "mic_type": "IOT.SMARTBULB",
            "mic_mac": "B0A7B95DC577",
            "dev_state": "normal",
            "is_factory": false,
            "disco_ver": "1.0",
            "ctrl_protocols": {
                "name": "Linkie",
                "version": "1.0"
            },
            "active_mode": "schedule",
            "is_dimmable": 1,
            "is_color": 1,
            "is_variable_color_temp": 1,
            "light_state": {
                "on_off": 0,
                "dft_on_state": {
                    "mode": "normal",
                    "hue": 0,
                    "saturation": 0,
                    "color_temp": 2500,
                    "brightness": 25
                }
            },
            "preferred_state": [
                {
                    "index": 0,
                    "hue": 0,
                    "saturation": 0,
                    "color_temp": 2500,
                    "brightness": 25
                },
                {
                    "index": 1,
                    "hue": 0,
                    "saturation": 100,
                    "color_temp": 0,
                    "brightness": 100
                },
                {
                    "index": 2,
                    "hue": 120,
                    "saturation": 100,
                    "color_temp": 0,
                    "brightness": 100
                },
                {
                    "index": 3,
                    "hue": 240,
                    "saturation": 100,
                    "color_temp": 6500,
                    "brightness": 100
                }
            ],
            "err_code": 0
        }
    },
    "smartlife.iot.common.emeter": {
        "get_realtime": {
            "power_mw": 0,
            "total_wh": 667,
            "err_code": 0
        },
        "get_daystat": {
            "day_list": [
                {
                    "year": 2024,
                    "month": 11,
                    "day": 19,
                    "energy_wh": 109
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 20,
                    "energy_wh": 110
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 21,
                    "energy_wh": 110
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 22,
                    "energy_wh": 109
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 23,
                    "energy_wh": 106
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 24,
                    "energy_wh": 110
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 25,
                    "energy_wh": 111
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 26,
                    "energy_wh": 110
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 27,
                    "energy_wh": 111
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 28,
                    "energy_wh": 111
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 1,
                    "energy_wh": 76
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 4,
                    "energy_wh": 23
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 5,
                    "energy_wh": 106
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 6,
                    "energy_wh": 106
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 7,
                    "energy_wh": 136
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 8,
                    "energy_wh": 106
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 9,
                    "energy_wh": 107
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 10,
                    "energy_wh": 107
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 11,
                    "energy_wh": 108
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 12,
                    "energy_wh": 108
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 13,
                    "energy_wh": 108
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 14,
                    "energy_wh": 108
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 15,
                    "energy_wh": 108
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 16,
                    "energy_wh": 109
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 17,
                    "energy_wh": 109
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 18,
                    "energy_wh": 109
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 29,
                    "energy_wh": 25
                }
            ],
            "err_code": 0
        },
        "get_monthstat": {
            "month_list": [
                {
                    "year": 2024,
                    "month": 1,
                    "energy_wh": 795
                },
                {
                    "year": 2024,
                    "month": 2,
                    "energy_wh": 1670
                },
                {
                    "year": 2024,
                    "month": 3,
                    "energy_wh": 1416
                },
                {
                    "year": 2024,
                    "month": 4,
                    "energy_wh": 784
                },
                {
                    "year": 2024,
                    "month": 5,
                    "energy_wh": 1445
                },
                {
                    "year": 2024,
                    "month": 6,
                    "energy_wh": 900
                },
                {
                    "year": 2024,
                    "month": 7,
                    "energy_wh": 1026
                },
                {
                    "year": 2024,
                    "month": 8,
                    "energy_wh": 1411
                },
                {
                    "year": 2024,
                    "month": 9,
                    "energy_wh": 1192
                },
                {
                    "year": 2024,
                    "month": 10,
                    "energy_wh": 2232
                },
                {
                    "year": 2024,
                    "month": 11,
                    "energy_wh": 2756
                }
            ],
            "err_code": 0
        }
    },
    "smartlife.iot.common.schedule": {
        "get_realtime": {
            "err_code": -2000,
            "err_msg": "member not support"
        },
        "get_daystat": {
            "day_list": [
                {
                    "year": 2024,
                    "month": 11,
                    "day": 10,
                    "time": 918
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 11,
                    "time": 918
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 12,
                    "time": 922
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 13,
                    "time": 928
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 14,
                    "time": 927
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 15,
                    "time": 927
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 16,
                    "time": 934
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 17,
                    "time": 934
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 18,
                    "time": 934
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 19,
                    "time": 935
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 20,
                    "time": 941
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 21,
                    "time": 942
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 22,
                    "time": 942
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 23,
                    "time": 856
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 24,
                    "time": 948
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 25,
                    "time": 948
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 26,
                    "time": 947
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 27,
                    "time": 955
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 28,
                    "time": 953
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 29,
                    "time": 457
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 1,
                    "time": 896
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 2,
                    "time": 901
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 3,
                    "time": 961
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 4,
                    "time": 846
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 5,
                    "time": 909
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 6,
                    "time": 909
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 7,
                    "time": 1440
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 8,
                    "time": 909
                },
                {
                    "year": 2024,
                    "month": 11,
                    "day": 9,
                    "time": 918
                }
            ],
            "err_code": 0
        },
        "get_monthstat": {
            "month_list": [
                {
                    "year": 2024,
                    "month": 1,
                    "time": 29369
                },
                {
                    "year": 2024,
                    "month": 2,
                    "time": 25409
                },
                {
                    "year": 2024,
                    "month": 3,
                    "time": 23924
                },
                {
                    "year": 2024,
                    "month": 4,
                    "time": 5047
                },
                {
                    "year": 2024,
                    "month": 5,
                    "time": 13516
                },
                {
                    "year": 2024,
                    "month": 6,
                    "time": 18030
                },
                {
                    "year": 2024,
                    "month": 7,
                    "time": 19717
                },
                {
                    "year": 2024,
                    "month": 8,
                    "time": 22005
                },
                {
                    "year": 2024,
                    "month": 9,
                    "time": 22106
                },
                {
                    "year": 2024,
                    "month": 10,
                    "time": 26210
                },
                {
                    "year": 2024,
                    "month": 11,
                    "time": 26855
                }
            ],
            "err_code": 0
        }
    },
    "smartlife.iot.common.anti_theft": {
        "get_rules": {
            "rule_list": [],
            "version": 2,
            "enable": 0,
            "err_code": 0
        },
        "get_next_action": {
            "err_code": -2000,
            "err_msg": "member not support"
        }
    },
    "smartlife.iot.common.timesetting": {
        "get_time": {
            "year": 2024,
            "month": 11,
            "mday": 29,
            "hour": 12,
            "min": 38,
            "sec": 2,
            "err_code": 0
        },
        "get_timezone": {
            "index": 18,
            "err_code": 0
        }
    },
    "countdown": {
        "err_code": -2001,
        "err_msg": "module not support"
    },
    "smartlife.iot.common.cloud": {
        "get_info": {
            "username": "EMAIL ADDRESS",
            "server": "n-devs.tplinkcloud.com",
            "binded": 1,
            "cld_connection": 1,
            "illegalType": 0,
            "stopConnect": 0,
            "tcspStatus": 1,
            "fwDlPage": "",
            "tcspInfo": "",
            "fwNotifyType": -1,
            "err_code": 0
        }
    }
}

KL420L5 - Strip Light

{
    "system": {
        "get_sysinfo": {
            "sw_ver": "1.0.6 Build 231008 Rel.200653",
            "hw_ver": "1.0",
            "model": "KL420L5(US)",
            "deviceId": "80121FFF2D5C0799796BC95FA9651CBD210503E1",
            "oemId": "72C0F1C55D73AE3439A514978A7CF2D0",
            "hwId": "F2E98D4A31B4DF58C50E906904A1377E",
            "rssi": -43,
            "latitude_i": 424562,
            "longitude_i": -709943,
            "alias": "Office Front Light Strip",
            "status": "new",
            "obd_src": "tplink",
            "description": "Kasa Smart Light Strip, Multicolor",
            "mic_type": "IOT.SMARTBULB",
            "mic_mac": "48:22:54:AB:77:C3",
            "dev_state": "normal",
            "is_factory": false,
            "disco_ver": "1.0",
            "ctrl_protocols": {
                "name": "Linkie",
                "version": "1.0"
            },
            "active_mode": "none",
            "is_dimmable": 1,
            "is_color": 1,
            "is_variable_color_temp": 0,
            "LEF": 1,
            "length": 50,
            "light_state": {
                "on_off": 1,
                "mode": "normal",
                "hue": 216,
                "saturation": 10,
                "color_temp": 0,
                "brightness": 100
            },
            "lighting_effect_state": {
                "enable": 0,
                "name": "Raindrop",
                "custom": 0,
                "id": "TapoStrip_1t2nWlTBkV8KXBZ0TWvBjs",
                "brightness": 100
            },
            "preferred_state": [
                {
                    "mode": 1,
                    "index": 0,
                    "hue": 0,
                    "saturation": 0,
                    "color_temp": 6500,
                    "brightness": 100
                }
            ],
            "err_code": 0
        }
    },
    "smartlife.iot.common.emeter": {
        "get_realtime": {
            "power_mw": 20500,
            "total_wh": 57,
            "err_code": 0
        },
        "get_daystat": {
            "day_list": [
                {
                    "year": 2024,
                    "month": 11,
                    "day": 29,
                    "energy_wh": 57
                }
            ],
            "err_code": 0
        },
        "get_monthstat": {
            "month_list": [
                {
                    "year": 2024,
                    "month": 1,
                    "energy_wh": 324
                },
                {
                    "year": 2024,
                    "month": 11,
                    "energy_wh": 57
                }
            ],
            "err_code": 0
        }
    },
    "smartlife.iot.common.schedule": {
        "get_realtime": {
            "err_code": -2000,
            "err_msg": "member not support"
        },
        "get_daystat": {
            "day_list": [
                {
                    "year": 2024,
                    "month": 11,
                    "day": 29,
                    "time": 167
                }
            ],
            "err_code": 0
        },
        "get_monthstat": {
            "month_list": [
                {
                    "year": 2024,
                    "month": 1,
                    "time": 950
                },
                {
                    "year": 2024,
                    "month": 11,
                    "time": 167
                }
            ],
            "err_code": 0
        }
    },
    "smartlife.iot.common.anti_theft": {
        "get_rules": {
            "rule_list": [],
            "version": 2,
            "enable": 0,
            "err_code": 0
        },
        "get_next_action": {
            "err_code": -2000,
            "err_msg": "member not support"
        }
    },
    "smartlife.iot.common.timesetting": {
        "get_time": {
            "year": 2024,
            "month": 11,
            "mday": 29,
            "hour": 12,
            "min": 42,
            "sec": 2,
            "err_code": 0
        },
        "get_timezone": {
            "index": 18,
            "err_code": 0
        }
    },
    "countdown": {
        "err_code": -2001,
        "err_msg": "module not support"
    },
    "smartlife.iot.common.cloud": {
        "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
        }
    }
}
ZeliardM commented 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?

ZeliardM commented 1 day ago

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.

svandive commented 1 day ago

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....

ZeliardM commented 1 day ago

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.

svandive commented 1 day ago

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
        }
    }
}
ZeliardM commented 9 hours ago

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?

svandive commented 8 hours ago

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'>