Jump to content

Kasa Node for HS300 install problem


Breezyken

Recommended Posts

Posted

I have a Kasa HS300 6 outlet plug strip and I want to install the node server on my eisy.  I previously had the trial version of the node, so I deleted that, purchased the current paid version and installed that.  Going to the admin console I selected Kasa, but was unsure how to proceed from there.  My choices are ADD NODE or ADD ALL NODES. Selecting Add Node gives me a list of Kasa devices but no model numbers.  I might guess at any of the first four, but then I get a window asking for Name(whose name?), Node Address, Primary Node Address(what is this?), so I stopped there.  So far the Kasa Controller shows up in the admin console Device list, but no outlets. Searching the wiki's etc. I found one that said all this should be automatic and #1 do NOT open the Node Servers option.  General info about installing node servers does not help. I believe I am up to date with Kasa 3.1.4, PG3x 3.2.17 & IoX 5.7.1.  I've been at this for over three hours now, and it's very frustrating. I just stopped the server and will wait for help.

LOG Follows:

2024-12-22 12:42:29.797 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2024-12-22 12:42:29.798 MainThread udi_interface      INFO     __init__:<module>: UDI interface initializing
2024-12-22 12:42:29.798 MainThread udi_interface      INFO     __init__:<module>: User=0021b9026837_4
2024-12-22 12:42:29.798 MainThread udi_interface      INFO     __init__:<module>: Home=/var/polyglot/pg3/ns/0021b9026837_4
2024-12-22 12:42:29.798 MainThread udi_interface      INFO     __init__:<module>: Node Server Path=/var/polyglot/pg3/ns/0021b9026837_4
2024-12-22 12:42:29.798 MainThread udi_interface      INFO     __init__:<module>: PG3INIT=eyJ1dWlkIjoiMDA6MjE6Yjk6MDI6Njg6MzciLCJwcm9maWxlTnVtIjo0LCJsb2dMZXZlbCI6IldBUk5JTkciLCJ0b2tlbiI6Ik0/VGwqSndEZ2tOJkN4V2EiLCJtcXR0SG9zdCI6ImxvY2FsaG9zdCIsIm1xdHRQb3J0Ijo4ODgzLCJzZWN1cmUiOjEsImlzUEczeCI6dHJ1ZSwicGczVmVyc2lvbiI6IjMuMi4xNyIsImlzeVZlcnNpb24iOiI1LjcuMSIsImVkaXRpb24iOiJTdGFuZGFyZCJ9
2024-12-22 12:42:29.798 MainThread udi_interface      INFO     __init__:<module>: Loading interface module
2024-12-22 12:42:29.834 MainThread udi_interface      INFO     interface:<module>: Loading MQTT module
2024-12-22 12:42:30.334 MainThread udi_interface      INFO     interface:<module>: MQTT module loaded
2024-12-22 12:42:30.558 MainThread udi_interface      INFO     __init__:<module>: Loading udi_interface module
2024-12-22 12:42:30.559 MainThread udi_interface      INFO     __init__:<module>: Loading node module
2024-12-22 12:42:30.559 MainThread udi_interface      INFO     __init__:<module>: Loading custom module
2024-12-22 12:42:30.559 MainThread udi_interface      INFO     __init__:<module>: Loading isy module
2024-12-22 12:42:30.559 MainThread udi_interface      INFO     __init__:<module>: Loading OAuth module
2024-12-22 12:42:30.560 MainThread udi_interface      INFO     __init__:<module>: UDI interface initialized
2024-12-22 12:42:30.560 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.3.14 Starting...
2024-12-22 12:42:30.659 MainThread udi_interface.interface INFO     interface:__init__: Initialization received from Polyglot V3 3.2.17  [ISY: 5.7.1, Slot: 4]
2024-12-22 12:42:30.659 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.1.38', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2024-12-22 12:42:30.660 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:8883
2024-12-22 12:42:30.660 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: tplkasactl not found in database.
2024-12-22 12:42:30.660 Interface  udi_interface.interface INFO     interface:_startMqtt: Using SSL cert: 0021b9026837_4.cert key: 0021b9026837_4.key ca: /usr/local/etc/ssl/certs/ud.ca.cert
2024-12-22 12:42:30.660 MainThread udi_interface.interface INFO     interface:addNode: Adding node Kasa Controller(tplkasactl) [None]
2024-12-22 12:42:30.660 MainThread udi_interface.interface INFO     interface:setController: Using node "tplkasactl", driver "ST" for connection status.
2024-12-22 12:42:30.661 Interface  udi_interface.interface INFO     interface:_startMqtt: MQTT keepalive is 300 seconds.
2024-12-22 12:42:30.710 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with Reason code: Success
2024-12-22 12:42:30.710 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:21:b9:02:68:37_4 -  MID: 2 Result: MQTTErrorCode.MQTT_ERR_SUCCESS
2024-12-22 12:42:30.752 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Successfully for Message ID: 2. Reason codes: ['Granted QoS 0']
2024-12-22 12:42:30.836 Thread-5   udi_interface      WARNING  Controller:handler_data: No custom data
2024-12-22 12:42:30.980 Thread-11  udi_interface      WARNING  Controller:handler_start: Waiting for all to be loaded params=None data=True... cnt=600
2024-12-22 12:42:32.152 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a14343 not found in database.
2024-12-22 12:42:32.239 Thread-20  udi_interface      WARNING  Controller:handler_data: No custom data
2024-12-22 12:42:35.241 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434301 not found in database.
2024-12-22 12:42:35.242 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434302 not found in database.
2024-12-22 12:42:35.242 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434303 not found in database.
2024-12-22 12:42:35.243 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434304 not found in database.
2024-12-22 12:42:35.243 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434305 not found in database.
2024-12-22 12:42:35.243 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434306 not found in database.
2024-12-22 12:42:35.402 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434301 not found in database.
2024-12-22 12:42:35.403 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434302 not found in database.
2024-12-22 12:42:35.403 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434303 not found in database.
2024-12-22 12:42:35.404 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434304 not found in database.
2024-12-22 12:42:35.404 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434305 not found in database.
2024-12-22 12:42:35.405 Thread-12  udi_interface.interface WARNING  interface:db_getNodeDrivers: 5091e3a1434306 not found in database.
2024-12-22 13:09:07.511 MainThread udi_interface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2024-12-22 13:09:07.511 MainThread udi_interface      INFO     __init__:<module>: UDI interface initializing
2024-12-22 13:09:07.512 MainThread udi_interface      INFO     __init__:<module>: User=0021b9026837_4
2024-12-22 13:09:07.512 MainThread udi_interface      INFO     __init__:<module>: Home=/var/polyglot/pg3/ns/0021b9026837_4
2024-12-22 13:09:07.512 MainThread udi_interface      INFO     __init__:<module>: Node Server Path=/var/polyglot/pg3/ns/0021b9026837_4
2024-12-22 13:09:07.512 MainThread udi_interface      INFO     __init__:<module>: PG3INIT=eyJ1dWlkIjoiMDA6MjE6Yjk6MDI6Njg6MzciLCJwcm9maWxlTnVtIjo0LCJsb2dMZXZlbCI6IldBUk5JTkciLCJ0b2tlbiI6Ik0/VGwqSndEZ2tOJkN4V2EiLCJtcXR0SG9zdCI6ImxvY2FsaG9zdCIsIm1xdHRQb3J0Ijo4ODgzLCJzZWN1cmUiOjEsImlzUEczeCI6dHJ1ZSwicGczVmVyc2lvbiI6IjMuMi4xNyIsImlzeVZlcnNpb24iOiI1LjcuMSIsImVkaXRpb24iOiJTdGFuZGFyZCJ9
2024-12-22 13:09:07.512 MainThread udi_interface      INFO     __init__:<module>: Loading interface module
2024-12-22 13:09:07.549 MainThread udi_interface      INFO     interface:<module>: Loading MQTT module
2024-12-22 13:09:08.051 MainThread udi_interface      INFO     interface:<module>: MQTT module loaded
2024-12-22 13:09:08.277 MainThread udi_interface      INFO     __init__:<module>: Loading udi_interface module
2024-12-22 13:09:08.278 MainThread udi_interface      INFO     __init__:<module>: Loading node module
2024-12-22 13:09:08.278 MainThread udi_interface      INFO     __init__:<module>: Loading custom module
2024-12-22 13:09:08.278 MainThread udi_interface      INFO     __init__:<module>: Loading isy module
2024-12-22 13:09:08.279 MainThread udi_interface      INFO     __init__:<module>: Loading OAuth module
2024-12-22 13:09:08.279 MainThread udi_interface      INFO     __init__:<module>: UDI interface initialized
2024-12-22 13:09:08.279 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.3.14 Starting...
2024-12-22 13:09:08.353 MainThread udi_interface.interface INFO     interface:__init__: Initialization received from Polyglot V3 3.2.17  [ISY: 5.7.1, Slot: 4]
2024-12-22 13:09:08.353 MainThread udi_interface.interface INFO     interface:__init__: Connect: Network Interface: {'addr': '192.168.1.38', 'netmask': '255.255.255.0', 'broadcast': '192.168.1.255'}
2024-12-22 13:09:08.354 Interface  udi_interface.interface INFO     interface:_startMqtt: Connecting to MQTT... localhost:8883
2024-12-22 13:09:08.354 MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: tplkasactl not found in database.
2024-12-22 13:09:08.354 Interface  udi_interface.interface INFO     interface:_startMqtt: Using SSL cert: 0021b9026837_4.cert key: 0021b9026837_4.key ca: /usr/local/etc/ssl/certs/ud.ca.cert
2024-12-22 13:09:08.354 MainThread udi_interface.interface INFO     interface:addNode: Adding node Kasa Controller(tplkasactl) [None]
2024-12-22 13:09:08.355 MainThread udi_interface.interface INFO     interface:setController: Using node "tplkasactl", driver "ST" for connection status.
2024-12-22 13:09:08.355 Interface  udi_interface.interface INFO     interface:_startMqtt: MQTT keepalive is 300 seconds.
2024-12-22 13:09:08.406 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Connected with Reason code: Success
2024-12-22 13:09:08.407 MQTT       udi_interface.interface INFO     interface:_connect: MQTT Subscribing to topic: udi/pg3/ns/clients/00:21:b9:02:68:37_4 -  MID: 2 Result: MQTTErrorCode.MQTT_ERR_SUCCESS
2024-12-22 13:09:08.450 MQTT       udi_interface.interface INFO     interface:_subscribe: MQTT Subscribed Successfully for Message ID: 2. Reason codes: ['Granted QoS 0']
2024-12-22 13:18:53.241 Thread-203 udi_interface      ERROR    udi_interface:write: Exception in thread
2024-12-22 13:18:53.241 Thread-203 udi_interface      ERROR    udi_interface:write: Thread-203
2024-12-22 13:18:53.242 Thread-203 udi_interface      ERROR    udi_interface:write: :
2024-12-22 13:18:53.242 Thread-203 udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2024-12-22 13:18:53.242 Thread-203 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
2024-12-22 13:18:53.242 Thread-203 udi_interface      ERROR    udi_interface:write: self.run()
2024-12-22 13:18:53.243 Thread-203 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run
2024-12-22 13:18:53.243 Thread-203 udi_interface      ERROR    udi_interface:write: self._target(*self._args, **self._kwargs)
2024-12-22 13:18:53.243 Thread-203 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026837_4/nodes/Controller.py", line 461, in handler_typed_data
2024-12-22 13:18:53.244 Thread-203 udi_interface      ERROR    udi_interface:write: self.add_manual_devices()
2024-12-22 13:18:53.244 Thread-203 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026837_4/nodes/Controller.py", line 140, in add_manual_devices
2024-12-22 13:18:53.244 Thread-203 udi_interface      ERROR    udi_interface:write: res = future.result()
2024-12-22 13:18:53.244 Thread-203 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 446, in result
2024-12-22 13:18:53.244 Thread-203 udi_interface      ERROR    udi_interface:write: return self.__get_result()
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: raise self._exception
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026837_4/nodes/Controller.py", line 147, in _add_manual_devices
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: LOGGER.info(f"Adding manual device {mdev['address']}")
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: KeyError
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: :
2024-12-22 13:18:53.245 Thread-203 udi_interface      ERROR    udi_interface:write: 'address'
 

Posted

I have removed the Kasa trial version(expired) and installed the paid version.  Configured according to instructions and it shows connected on admin console.  There are no nodes (plugs) shown. Upon restart I recieve the following error:

2024-12-23 11:29:39.536 Thread-11 udi_interface ERROR Controller:_add_manual_devices: Timed out getting discovery response for 192.168.1.38 trying to connect to 192.168.1.38

Discover is not working for the plug nodes.  How do I get them installed?

I disabled my firewall and I did another restart and discover in PG3 and get the following error:

12/23/2024, 11:35:25 [pg3] warn: Request for customtypedparams. Not found in database

Also, I have set change_node_names to true.  The existing names have been picked up from the app on my phone.  Is this a problem/conflict?  

Looking for answers.  Thanks!

Posted
22 hours ago, Breezyken said:

 Going to the admin console I selected Kasa, but was unsure how to proceed from there.  My choices are ADD NODE or ADD ALL NODES.

All plugin setup should be done in the web portal for Polyglot for the specific plugin then there is usually a customization tab/button should you need to add specific information. 

Check the "more info" button found on the plugin page in the plugin store. Usually that will have more install and setup guidance if it's needed. It might also have examples of settings.

22 hours ago, Breezyken said:

I believe I am up to date with Kasa 3.1.4, PG3x 3.2.17 & IoX 5.7.1.

IoX 5.8.4 has been out since late June. If you're still on 5.7.1 you would need to update. PG3x version looks "current". It was released before 5.8.4 so you might have not updated since PG3x version was released.

 

Posted
I have removed the Kasa trial version(expired) and installed the paid version.  Configured according to instructions and it shows connected on admin console.  There are no nodes (plugs) shown. Upon restart I recieve the following error:
2024-12-23 11:29:39.536 Thread-11 udi_interface ERROR Controller:_add_manual_devices: Timed out getting discovery response for 192.168.1.38 trying to connect to 192.168.1.38
Discover is not working for the plug nodes.  How do I get them installed?
I disabled my firewall and I did another restart and discover in PG3 and get the following error:
12/23/2024, 11:35:25 [pg3] warn: Request for customtypedparams. Not found in database
Also, I have set change_node_names to true.  The existing names have been picked up from the app on my phone.  Is this a problem/conflict?  
Looking for answers.  Thanks!


You should not have to add the HS300 manually, it should be auto-discovered if they are on the same network, if you have multiple subnets at your place then you will can add that sub-net to the list on the configuration page and allow discovery across the subnets.

If your device is 192.168.1.38 the error says your IoX is not able to see that device so discovery and communication will not work. Something on your network is stopping the IoX from seeing that device.

The "warn: Request for customtypedparams" is a PG3 error, so will need info from @bmercier why that is happening.

The change_node_names setting should not be any issue.





Sent from my Pixel 8 Pro using Tapatalk

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...