-
Notifications
You must be signed in to change notification settings - Fork 8
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
Setup as per instructions failing to get data points #10
Comments
Same issue here unfortunately (with exact same errors); using docker-based image of newest HA on my Synology NAS. Did you manage to fix this? I'm trying to reverse engineer it right now and run outside HA, I have some issues with the cookie return (no key 'stok' in there) for MC889 |
@jezzaw007 @rafalpietrzakio Guys, can you please check if latest PR fixes the issue? |
What is the output of:
(or modify path to where your zte_tool.py is and run the command) |
I did it inside of my docker terminal of the home assistant and got this. Maybe I did it wrong? homeassistant-home-assistant1:/config# python python_scripts/zte_tool.py |
I've manually changed the ha_select to 3 (zteInfo) Now the output is actual data from the router.
|
Just to be clear, did you try |
It is strange that "cell_id" would return as None, and it is clearly visible in output... I would suggest you edit https://github.com/Kajkac/ZTE-MC-Home-assistant/blob/master/sensors/sensors.yaml#L63 to:
Mind the indentation. This should set default value to 0 :) |
Still doesn't work unfortunately |
Hi, just wanted to update you that I managed to get the data from sensors to display: 1st issue I had, the zte_tool_py wasn't running because it would stop at the 1st line "import requests" since it wasn't installed. Sorted by: 2nd issue when trying to run Sorted by adding empty "" After that I could run the script and got the sensors to show values New to this so I would like to apologize if the explanation is a bit messy. Before all this I had to add to configuration.yaml: python_script: like explained at https://www.home-assistant.io/integrations/python_script/ |
I am having the same issue but can you clarify that you also edited the configuration.yaml? If so what did you add? |
Hi, here is my configuration.yamlLoads default set of integrations. Do not remove.default_config: Load frontend themes from the themes folderfrontend: python_script: switch: !include_dir_merge_list switch/command_line: !include_dir_merge_list command_line/ logger:
|
was able to run "python -m pip install requests" via add-on "Advanced SSH & Web Terminal", if it helps someone. |
I use HASSIO I chose to add the Python requests module via a Python virtual environment.
Then modify the zte_tool.py file: Move import sys to the top of the file and put this line under it. The top of my zte_tool.py file looks like this: import sys |
I have created the folders and amended the configuration.yaml as per instruction, commented out switch in favor of command_line and rebooted HA.
The sensors and switch are created.
I edited the IP and password in zte_tool.py are correct. Not sure if this is a script issue or if its a configuration issue,
look forward to your guidance:
Logger: homeassistant.components.command_line.utils
Source: components/command_line/utils.py:54
Integration: Command Line (documentation, issues)
Command failed (with return code 1): /usr/local/bin/python /config/python_scripts/zte_tool.py 1
Command failed (with return code 1): /usr/local/bin/python /config/python_scripts/zte_tool.py 3
Command failed (with return code 1): /usr/local/bin/python /config/python_scripts/zte_tool.py 6
I think this because i use HAOS and python is located at /usr/bin/python
symlinks do not save on reboot, I amended the script but not sure what else I need to check to get it to work, thanks
The text was updated successfully, but these errors were encountered: