Skip to content

How to use pyISY to access node valye #391

@Kajtek13

Description

@Kajtek13

I hope this is appropriate to ask this question.
My goal is simple. I want find a value of the node from a nodeserver already installed.
I know pyisi can do it, but I did not figure out how to do it and I spent a week reading and testing.
The quickstart.rst says to instal pyisy
pip3 install pyisy
After that I check with pip list and pyisy is installed.
The quick guide says that once it is installed run python3 -m pyisy http://your-isy-url:80 username password.
This does not work for me. I got error that there is missing my.py.
I figure out that I need to have installed all the files from this repository.
I installed it in developer mode and then when I run the command python3 -m pyisy http://your-isy-url:80 username password. from within the folder where it is installed it works like a charm. It lists in my terminal all the values from all my nodes. It will continue to do until I exit but when it is running I cannot run from the terminal any commands. When I exit it stops.

I thought that once the pyisy is installed I would be able to access directly any node using address directly.
I copied a code from connection.py (addedd my credentials) to connect to my ISY than added the code example from quickstart.rst - changing address to address of my switch
NODE = '22 5C EB 1'
node = isy.nodes[NODE]
await node.turn_off()
sleep(5)
await node.turn_on()

It does not work
The errors are showing that something is missing. I add the code to import the misisng code from other files in this repository and then another code is missing. There are so many dependencies that it seems endless and that the whole pyISY nodeserved has to run.
Obviously I do not know how to do it.
Any help or suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions