Giter Club home page Giter Club logo

Comments (21)

crohot avatar crohot commented on August 16, 2024

Found something else:
Platform error sensor.renaultze - No module named 'pyze'

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

The pyze module should get downloaded and installed automatically the first time you start Home Assistant with the hassRenaultZE.
Maybe you are simply impatient?

Also, did you enable debug logging in the configuration?

logger:
  default: warn
  logs:
    custom_components.renaultze.sensor: debug

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

Hi, i did wait overnight and i restarted again but no luck.
Where can i find the logs of the debug mode?

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

The message about You are using a custom integration for renaultze is normal, and only appears once, but I am not sure where Connection lost. Reconnecting… comes from.

Did you correctly copy the four files (__init__.py, manifest.json, sensor.py, services.yaml) ?

You'll need to give more information about your Home Assistant setup (version, OS, etc.).
Are you able to see the install logs? If you are using a manual install with a virtual environment, maybe you can install the pyze module manually using pip?

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

There was no services.yaml in the zip i downloaded from github! I now put that one in the custom components.

This is my System:

arch | armv7l
chassis | embedded
dev | false
docker | true
hassio | true
host_os | HassOS 3.13
installation_type | Home Assistant
os_name | Linux
os_version | 4.19.114-v7
python_version | 3.7.7
supervisor | 227
timezone | Europe/Berlin
version | 0.110.1
virtualenv | false

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

OK, now there is a reaction:
Some Sensors are showing up as entities, but are delivering no value.

And checking the config results in:

Invalid config for [sensor.renaultze]: string value is None for dictionary value @ data['k_account_id']. Got None. (See ?, line ?).

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

Please add a k_account_id setting to your configuration (empty string should be ok)
And if you get the No module named 'pyze' error again, please check HassOS documentation to manually install the module.

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

Added a random ID, not working. I don´t know how to install pyze manually, so I´m out. Thank you anyway.

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

You mustn't use a random ID. It should be empty.

For the pyze module, you can try to first add this module: https://github.com/home-assistant/hassio-addons-development. Though I've never used it, it should give you an option to manually install pyze.

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

The k_account_id was empty until i tried it with something random.
I was able to add the module you mentioned but it only offers me to install:

Custom deps deployment
Manage custom python modules in Home Assistant deps

Remote API proxy
Remote API proxy for Home Assistant

Remote ptvsd debugger
Remote Debug proxy for Supervisor/ptvsd

I really appreciate your patience, as i am very impacient with things that don´t automagically work ootb ;-)

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

If you select "Manage custom python modules in Home Assistant deps", are you then able to install pyze?

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

Well, i was able to install "Custom deps deployment" but other than allowing it to boot on startup or auto-update there is no further option. Will this install python? Unfortunately the Details-Website is not available anymore (404).

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

New error messages:

Battery update failed: Traceback (most recent call last): File "/config/custom_components/renaultze/sensor.py", line 195, in update jsonresult = self._vehicle.battery_status() File "/usr/local/lib/python3.7/site-packages/pyze/api/kamereon.py", line 229, in battery_status return self._get('battery-status', 2) File "/usr/local/lib/python3.7/site-packages/pyze/api/kamereon.py", line 202, in _get response.raise_for_status() File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/5x5jc6ttjrp49jtf/kamereon/kca/car-adapter/v2/cars/VF1***************/battery-status?country=GB

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

So pyze is good now.
Did you set the k_account_id to empty? or is this where 5x5jc6ttjrp49jtf comes from?

Kamereon account id is specific to every one, and ultimately looks like this: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. If you leave it empty, it should load it from PYZE automatically.

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

Oh, nice.
The random id was a try, i deleted it now but if i check the config i get this error again:
Invalid config for [sensor.renaultze]: string value is None for dictionary value @ data['k_account_id']. Got None. (See ?, line ?).

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

Can you please copy paste your config?

I assume you have written it with nothing at the end (which gets converted to None)

    k_account_id: 

If you know your k_account_id, it should look like this:

    k_account_id: YYYYYYYY

If you don't know it, then remove the k_account_id line completely, or force it as an empty string (with quotes)

    k_account_id: ""

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

Oh, wow, with the "" i get a valid config! But currently, the Entities Card does not show any value.
What config do you want to see? My configuration.yaml or the developer-tools/info?

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

I don't know what you mean about entities card - I always use "development tools" > "states" to check my sensors.

The default integration generates just a single sensor (the battery %) with lots of additional attributes.
To convert the attributes to individual sensors you need to create template sensors.

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

I meant the card to display something on the dashboard. It still says "None" for every value.
But checking "development tools" > "states" as you suggest, i get the following:
battery_available_energy: false charging: false charge_status: Not charging or plugged in last_update: '2020-06-12T14:21:33+02:00' plugged: false plug_status: Unplugged remaining_range: 289 charging_power: 0 charging_remaining_time: null mileage: 11987 hvac_status: 'off' outside_temperature: 32 unit_of_measurement: '%' friendly_name: FZO320E

And this is looking much better!

from hassrenaultze.

epenet avatar epenet commented on August 16, 2024

I think we can close this thread now. If you have questions about the Home Assistant UI, then it would be better handled on the Home Assistant forums.

from hassrenaultze.

crohot avatar crohot commented on August 16, 2024

Its indeed working now! Thank you very much for your support!

from hassrenaultze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.