Newer version of Indigo 2022.x.x

Posted on
Tue Apr 18, 2023 8:23 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Newer version of Indigo 2022.x.x

Be careful when installing FTDI drivers - they may cause incompatibilities because macOS already includes FTDI drivers...

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Apr 18, 2023 3:59 pm
Vig offline
Posts: 111
Joined: Oct 06, 2015

Re: Newer version of Indigo 2022.x.x

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 1927 times

Posted on
Wed Apr 19, 2023 8:39 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Newer version of Indigo 2022.x.x

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 1897 times
Screenshot 2023-04-19 at 10.31.22 PM.png
Screenshot 2023-04-19 at 10.31.22 PM.png (50 KiB) Viewed 1897 times
IMG_6737.jpg
IMG_6737.jpg (126.5 KiB) Viewed 1897 times

Posted on
Wed Apr 19, 2023 9:03 pm
Vig offline
Posts: 111
Joined: Oct 06, 2015

Re: Newer version of Indigo 2022.x.x

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 1889 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 1892 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 1892 times

Posted on
Thu Apr 20, 2023 4:34 am
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Newer version of Indigo 2022.x.x

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

Posted on
Thu Apr 20, 2023 9:12 am
Vig offline
Posts: 111
Joined: Oct 06, 2015

Re: Newer version of Indigo 2022.x.x

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?

Posted on
Thu Apr 20, 2023 9:30 am
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Newer version of Indigo 2022.x.x

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 1837 times

Posted on
Thu Apr 20, 2023 10:09 am
Vig offline
Posts: 111
Joined: Oct 06, 2015

Re: Newer version of Indigo 2022.x.x

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 1833 times

Posted on
Thu Apr 20, 2023 10:46 am
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Newer version of Indigo 2022.x.x

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.

Posted on
Thu Apr 20, 2023 4:49 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Newer version of Indigo 2022.x.x

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?

Posted on
Thu Apr 20, 2023 5:08 pm
Vig offline
Posts: 111
Joined: Oct 06, 2015

Re: Newer version of Indigo 2022.x.x

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

Posted on
Thu Apr 20, 2023 6:20 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Newer version of Indigo 2022.x.x

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

Posted on
Thu Apr 20, 2023 7:53 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: Newer version of Indigo 2022.x.x

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})

Posted on
Fri Apr 21, 2023 7:17 pm
EagleDTW offline
Posts: 69
Joined: Apr 30, 2020

Re: Newer version of Indigo 2022.x.x

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

Posted on
Sun Apr 23, 2023 11:00 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Newer version of Indigo 2022.x.x

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

Who is online

Users browsing this forum: No registered users and 12 guests