Newer version of Indigo 2022.x.x

Discuss any issues you may run across installing, moving, upgrading, or uninstalling Indigo.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Newer version of Indigo 2022.x.x

Post by jay (support) »

Be careful when installing FTDI drivers - they may cause incompatibilities because macOS already includes FTDI drivers...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Vig
Posts: 110
Joined: Tue Oct 06, 2015 8:09 am

Re: Newer version of Indigo 2022.x.x

Post by Vig »

Ok, sorry, so it doesn't look like I actually installed the driver from the adapter maker. The system seems to show it's using the built in one.
Attachments
Screenshot 2023-04-18 at 6.04.45 PM.png
Screenshot 2023-04-18 at 6.04.45 PM.png (153.34 KiB) Viewed 3218 times
hamw
Posts: 1342
Joined: Mon Mar 31, 2008 7:45 pm

Re: Newer version of Indigo 2022.x.x

Post by hamw »

Well, I bought the GearMo adapter, and it shows up in the bottom picture. You can see the pull down menu for the Z-wave converter, so it is recognized by the Mac. The port settings did have. bunch of keyspan devices, which I deleted. I went to /Library/Extensions and deleted the Keyspan .kext. I have unplugged all the USB cables and restarted the Mac. Still no luck as you can see from this persistent error.

Why would this old Keyspan unit be locked in to the plugin? I looked through the plugin with BB edit and I'm not sure why it is not seeing the usb-serial converter, especially since the Z-Wave menu sees it with no problem. Any thoughts how to release it?

Code: Select all

   Starting plugin "Simple Serial 1.0.1" (pid 5813)
   Started plugin "Simple Serial 1.0.1"
   Simple Serial Debug             <<-- entering deviceStartComm, Device: Vaux Simple Serial Python; ID=775789076, Type=simpleSerialCommunicator
   Simple Serial Debug             Serial Port Name is /dev/cu.USA19H14114P1.1
   Simple Serial Debug             Serial Port Baud Rate is 38400
   Simple Serial Debug             Serial Port Parity is N
   Simple Serial Debug             Serial Port Data Bits are 8
   Simple Serial Debug             Serial Port Stops Bits are 1
   Simple Serial Error             "Vaux Simple Serial Python" serial port open error: [Errno 2] could not open port /dev/cu.USA19H14114P1.1: [Errno 2] No such file or directory: '/dev/cu.USA19H14114P1.1'
   Simple Serial Error             make sure the USB virtual serial port driver (ex: FTDI driver) is installed and correct port is selected
   Simple Serial                   Error initializing communciations with serial device Vaux Simple Serial Python
   Simple Serial Debug             exiting deviceStartComm -->>
Attachments
Screenshot 2023-04-19 at 10.33.11 PM.png
Screenshot 2023-04-19 at 10.33.11 PM.png (142.7 KiB) Viewed 3188 times
Screenshot 2023-04-19 at 10.31.22 PM.png
Screenshot 2023-04-19 at 10.31.22 PM.png (50 KiB) Viewed 3188 times
IMG_6737.jpg
IMG_6737.jpg (126.5 KiB) Viewed 3188 times
Vig
Posts: 110
Joined: Tue Oct 06, 2015 8:09 am

Re: Newer version of Indigo 2022.x.x

Post by Vig »

Your "Simple Serial" plugin is still pointing to USA19H, you need to reconfigure it to use usbserial-FTxxxxx, should be one of those /dev/cu. usbserialFT7ERMNx, you can try one by one to figure out which one is being used.
To configure to different serial port you need to go to your existing device (mine is Samsung TV in the picture) and click on Edit Device Settings... you will see Serial port drop down menu..

Also, your Network shows bunch of the FT232R services configured, mine doesn't have any, you might want to delete them to free them up if you are not using them for other purposes.
Attachments
Screenshot 2023-04-19 at 11.09.52 PM.png
Screenshot 2023-04-19 at 11.09.52 PM.png (184.45 KiB) Viewed 3180 times
Screenshot 2023-04-19 at 10.58.31 PM.png
Screenshot 2023-04-19 at 10.58.31 PM.png (61.53 KiB) Viewed 3183 times
Screenshot 2023-04-19 at 10.59.57 PM.png
Screenshot 2023-04-19 at 10.59.57 PM.png (51.22 KiB) Viewed 3183 times
hamw
Posts: 1342
Joined: Mon Mar 31, 2008 7:45 pm

Re: Newer version of Indigo 2022.x.x

Post by hamw »

Code: Select all

xxxxx-Mac-mini-5:Receipts xxxxxx $ ls -l /dev/cu.usbserial-FT*
crw-rw-rw-  1 root  wheel  0x900000b Apr 20 06:23 /dev/cu.usbserial-FT7ER4MN0
crw-rw-rw-  1 root  wheel  0x9000003 Apr 20 06:23 /dev/cu.usbserial-FT7ER4MN1
There is not a menu to select the device? What line would I change in the plugin to manually key in one of the above ports
Vig
Posts: 110
Joined: Tue Oct 06, 2015 8:09 am

Re: Newer version of Indigo 2022.x.x

Post by Vig »

Not sure where that would be in the code, The plugin serial settings were intended be configured via GUI. That's what I did and the indigo device screenshot in my previous post. That's the the way how I did it and that's how you would change the serial device.
What happens when you try to set it using Indigo?
hamw
Posts: 1342
Joined: Mon Mar 31, 2008 7:45 pm

Re: Newer version of Indigo 2022.x.x

Post by hamw »

When I set it, I do not see the GUI. This is what comes up.
Attachments
IMG_6738.jpeg
IMG_6738.jpeg (114.32 KiB) Viewed 3128 times
Vig
Posts: 110
Joined: Tue Oct 06, 2015 8:09 am

Re: Newer version of Indigo 2022.x.x

Post by Vig »

You can't set it in the plugin but rather the indigo device that you create and assign "Simple Serial" to it as the type/model.
In your Indigo create a new device
for the Device Type drop down choose "Simple Serial"
for Model choose "Simple Serial Communication"
Click "Edit Device Settings..." and you will see serial port selection (like on the screenshot)
Attachments
Screenshot 2023-04-20 at 12.06.50 PM.png
Screenshot 2023-04-20 at 12.06.50 PM.png (123.89 KiB) Viewed 3124 times
hamw
Posts: 1342
Joined: Mon Mar 31, 2008 7:45 pm

Re: Newer version of Indigo 2022.x.x

Post by hamw »

You know what, that’s probably my issue. I completely forgot that I had to set the device.

Thanks for your patience… Really appreciate it. I’ll let you know.
hamw
Posts: 1342
Joined: Mon Mar 31, 2008 7:45 pm

Re: Newer version of Indigo 2022.x.x

Post by hamw »

of course that worked! :oops:

now the next issue... This script controls the matrix switch. or did...

Code: Select all

simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
   message = "%s\n" % (indigo.variables["direct_Vaux_Send"].value) 
   simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
Now its throwing an error....

Code: Select all

Script Error                    embedded script error:
   Script Error                    unable to convert python exception
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 4, at top level
RuntimeError: unable to convert python exception
Is this a Python 3 issue?
Vig
Posts: 110
Joined: Tue Oct 06, 2015 8:09 am

Re: Newer version of Indigo 2022.x.x

Post by Vig »

> Is this a Python 3 issue?

That I am not really sure, but seems like it. For testing you can just bypass the script and put the payload directly into the Indigo Action and see if it works.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Newer version of Indigo 2022.x.x

Post by FlyingDiver »

I suspect you're getting bit by the change in Python3 where strings are unicode rather than bytes. Try this:

Code: Select all

simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
   message =("%s\n" % (indigo.variables["direct_Vaux_Send"].value) ).encode()
   simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
The encode() call converts the unicode string to a bytestring, which is what I expect the plugin needs to send out the serial port.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
hamw
Posts: 1342
Joined: Mon Mar 31, 2008 7:45 pm

Re: Newer version of Indigo 2022.x.x

Post by hamw »

Joe and Vig,

Thank you both very much for the assistance. However, it is still throwing the error:

Code: Select all

   Script Error                    trigger "direct Vaux Send" embedded script error:
   Script Error                    unable to convert python exception
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 4, at top level
RuntimeError: unable to convert python exception
this is the script:

Code: Select all

simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
   message =("%s\n" % (indigo.variables["direct_Vaux_Send"].value)).encode()
   simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
The line that is failing is here:

Code: Select all

   simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
EagleDTW
Posts: 106
Joined: Thu Apr 30, 2020 5:56 pm

Re: Newer version of Indigo 2022.x.x

Post by EagleDTW »

Hi Jay and Matt,

Moving from an older 2021.1 Mac mini 2012 OS 10.13 to 2022.2.2 M2 Mac mini 2023 OS13.3.1 - Is there a similar guide to de-activating and transferring all the required folder locations, such as the Version 7 upgrade documentation?

I'm not completely naive, but not fully in-depth on all things MacOS.

Your help is appreciated!!

Thank you,
Daniel
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Newer version of Indigo 2022.x.x

Post by jay (support) »

We recommend a two step process (if possible) to reduce complications:

1) Upgrade your existing install to 2022.2.2 first and make sure it's working.
2) Move your 2022.2.2 install to the new Mac

Doing it in two steps will help with troubleshooting if there is an issue by isolating the issue to either the upgrade or the move.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Installing/Moving/Upgrading/Uninstalling Questions”