I just wanted to wrap things up for future readers who may encounter the same error message that I did: the script still works even though there is the error message about the port already being open.
And now for a new question:
What is the ideal device type to setup the keypad thermometer in homeseer?
And now for a new question:
What is the ideal device type to setup the keypad thermometer in homeseer?