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

Where to place getconfig.py file? #16

Open
dfawlt opened this issue Dec 9, 2023 · 3 comments
Open

Where to place getconfig.py file? #16

dfawlt opened this issue Dec 9, 2023 · 3 comments

Comments

@dfawlt
Copy link

dfawlt commented Dec 9, 2023

Adding the repo using HACS doesn't create the getconfig.py file anywhere. So I've tried manually creating it and filling it with the code listed here.

Running it from the config/homeassistant directory gave me best "results" with it still not finding the 'request' or 'utils" modules.

@kalandor122
Copy link

just use pip install request and pip install utils

@iperezandres
Copy link

I used "python3 -m pip install requests" to install the missing "requests".
And then I changed getconfig.py, line 3, to "from custom_components.cozylife.tcp_client import tcp_client" and line 10 to "from custom_components.cozylife.utils import get_pid_list, get_sn"
I have getconfig.py inside the config dir.

@lmarcelocc
Copy link

You can simple clone this repo on your computer and then scan your network. Be sure to have python3 installed and all other dependencies like request and utils.

Resuming:

  1. git clone https://github.com/yangqian/hass-cozylife.git
  2. python getconfig.py 192.168.1.2 192.168.1.254

Second command will scan all your network and will output the lines you need to past on your configuration.yaml

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

4 participants