Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG3 Hubitat Node Server not working #15

Open
gregkinney opened this issue Sep 1, 2023 · 3 comments
Open

PG3 Hubitat Node Server not working #15

gregkinney opened this issue Sep 1, 2023 · 3 comments

Comments

@gregkinney
Copy link

Here are the logs from the PG3 node server

2023-08-31 13:43:32,251 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30
2023-08-31 13:43:34,688 MainThread udi_interface INFO init:: UDI Python Interface for Polyglot version 3 3.1.0 Starting...
2023-08-31 13:43:34,696 MainThread udi_interface ERROR udi_interface:write: Traceback (most recent call last):
2023-08-31 13:43:34,697 MainThread udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/000db9593a10_7/./poly.py", line 5, in
2023-08-31 13:43:34,699 MainThread udi_interface ERROR udi_interface:write: from nodes import HubitatController
2023-08-31 13:43:34,699 MainThread udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/000db9593a10_7/nodes/HubitatController.py", line 1
2023-08-31 13:43:34,700 MainThread udi_interface ERROR udi_interface:write: pe == "co2sensor" ):
2023-08-31 13:43:34,701 MainThread udi_interface ERROR udi_interface:write: ^
2023-08-31 13:43:34,702 MainThread udi_interface ERROR udi_interface:write: SyntaxError
2023-08-31 13:43:34,703 MainThread udi_interface ERROR udi_interface:write: :
2023-08-31 13:43:34,703 MainThread udi_interface ERROR udi_interface:write: unmatched ')'

@kewashi
Copy link
Owner

kewashi commented Sep 2, 2023

It looks like the HubitatController.py file isn't getting written or launched properly. I have no idea why. The errors after the first one are all bogus. It looks like poly.py isn't even importing HubitatController properly. There is no syntax error in the source file. For example, the line

2023-08-31 13:43:34,700 MainThread udi_interface ERROR udi_interface:write: pe == "co2sensor" ):

is a subset of a line that looks like this:
elif ( devtype == "co2sensor" ): address = "cd_" + deviceid
which is perfectly appropriate python syntax. So something is going amuck that is very fundamental. Are you on a Polisy or an EISY? I've only tested on an EISY so it might be a Polisy only issue. Have you updated your PG3 installation to PG3x and the latest version? This node server requires PG3x Version 3.1.x -- I have 3.1.27

@gregkinney
Copy link
Author

I did start a thread on UDI but didn't hear back so someone suggested that I reach out to you on git. I am on a Polisy on PG3 3.1.23. I have not updated to PG3x. So I guess that is the problem?

@kewashi
Copy link
Owner

kewashi commented Sep 4, 2023

Yea I think so. Sorry I missed seeing this on UDI. Been busy at work paying the bills you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants