Comments (21)
Found something else:
Platform error sensor.renaultze - No module named 'pyze'
from hassrenaultze.
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.
Hi, i did wait overnight and i restarted again but no luck.
Where can i find the logs of the debug mode?
from hassrenaultze.
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.
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.
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.
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.
Added a random ID, not working. I don´t know how to install pyze manually, so I´m out. Thank you anyway.
from hassrenaultze.
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.
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.
If you select "Manage custom python modules in Home Assistant deps", are you then able to install pyze?
from hassrenaultze.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Its indeed working now! Thank you very much for your support!
from hassrenaultze.
Related Issues (20)
- Unknown error in the past 24 hours HOT 1
- Could not be setup HOT 6
- It's impossible to log in to the Renault account, in order to install the Integration HOT 2
- Incompatible with Onvif integration? HOT 12
- HACS report "Repository is deleted" HOT 12
- Only 4 sensors show up for Catur II Hybrid Plugin HOT 9
- charge_set_schedules documentation HOT 3
- All Unavailable today HOT 5
- Schedule StartTime
- Sensors unavailable after some time and "failed to forward" errors HOT 7
- Integration is gone after restart HOT 5
- italian translations HOT 2
- Install failed with "module 'marshmallow_dataclass' has no attribute 'class_schema'" HOT 5
- Error on Charging Power Unit
- Issue with Statistics HOT 4
- New HVAC parameter? HOT 1
- Error fetching charge_mode data HOT 3
- Error 403 after 2022.3.5 version intalled HOT 3
- Please use the new version of the library that handles the recent change of the API key HOT 1
- Integration is using deprecated `DEVICE_CLASS_*` constants HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hassrenaultze.