First, thanks 
@JGrana for this tool. I've been using this for some automation for about 2 months, which I recently noticed was broken. Being transparent, I haven't done much troubleshooting other than rebooting my router. I wanted to share what I'm experiencing first before changing anything.
My Setup
* RT-AX86U Pro, Merlin 3006.102.4
* Installed latest version of your script (about 2 months ago)
* Entware, Skynet, vnStat, scMerlin, 
Dual WAN Failover
Second data point is that I had initially installed this on one of my Mesh nodes for testing, and it is also now producing the same error:
	
	
	
		Code:
	
	
		od: cannot skip past end of combined input
	 
 
I'm trying to remember my order of operations here, but I believe the culprit may be due to implementing Dual WAN (in the router, along with the Dual WAN Failover from amtm). I swear I tested this end to end after that but may be wrong.. I haven't updated to the latest Merlin (for reasons), haven't updated Entware, and have even had the Kasa switches blocked from internet access so nothing can be updated/changed there. The Dual WAN Failover is the only potential change.
I get that error every time I run the script, no matter which command I try to run. I'm no longer able to query the state of the device (returns "OFF" even though it's on). Trying to run "ukasa refresh" finds the devices, but isn't able to pull the names or other info:
	
	
	
		Code:
	
	
		root@RT-AX86U_Pro-FE60:/jffs/scripts# ukasa refresh
myip  subnet port: 192.168.5.1 192.168.5.0-255 9999
Scanning local network for Kasa plugs and switches
This can take a minute or two...(ignore any RTTVAR messages)
Checking devices and names...
od: cannot skip past end of combined input
od: cannot skip past end of combined input
Found 2 Kasa devices on the network
ukasa: Here are the Kasa devices found:
Device IP      Hostname  Model    Type  Features  Alias
--------------------------------------------------------
192.168.5.201  b00027    Unknown
192.168.5.202  b00364    Unknown
	 
 
The fact that it worked perfectly on 2 Asus devices and is now broken on both of them (with no other known changes) makes me think the Dual WAN setting and/or the Dual WAN Failover script is messing with the LAN broadcast or something to that effect. I might have some "approved downtime" this weekend to disable Dual WAN and uninstall the Dual WAN Failover script and see if that restores the ukasa functionality, although I really need Dual WAN to work.. Any ideas? Am I barking up the right tree? Does anyone else have this working along with Dual WAN?