-
Notifications
You must be signed in to change notification settings - Fork 600
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
Send state based on reported status, apply car prefix to car sensors, add some logging around new car sensors #3668
Conversation
Are the |
unit of measurement which we arbitrarily apply to all sensors that have it :) |
Maybe your car/phone doesn't export these data ? |
I don't have an ev car not sure the app will work? I wonder if there is a different status reported which I think the debug logs will show |
Some data shows up yes, as expected though EV charging status and range remaining is not loading. |
Ok using the DHU here are the debug results after enabling the sensors and changing values, so looks like I am getting some data from here. Wonder what I see in the car. Before enabling the sensors in the DHU config I was seeing a status of unknown, then once enabled in the config file they got unimplemented status. Then once I provided a value the results are as below.
|
latest update now updates the state based on the reported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, too bad we can't determine status in advance.
Suggestion to make the code more concise: make carValueStatus
return String?
with CarValue.STATUS_SUCCESS -> null
, so you can write the sensor state like this:
status ?: data.thing.value!!
Thats a lot cleaner, will add that update now |
To be safe you should probably still return |
yup my car does not support much of any sensors 😢
|
Summary
Car
prefix to sensor names for consistency and easy identification.Add some debug logging around car data as I am only seeing Car Name being pulled in, even after going for a drive increasing odometer and decreasing fuel.
Screenshots
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes
CC: @drosoCode in case you have any ideas on why some data is not retrieved.