-
Notifications
You must be signed in to change notification settings - Fork 35
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
V2 #166
V2 #166
Conversation
You are updating github actions in this and introducing a labeler? |
Yes, most of the actions used in the workflows were quite outdated. And from the repos I've worked with so far, I'm used to the labels being predefined |
I think it is a great idea, can you add this in a separat PR? Just so it will be easier for us to review this? 🚀 Also great job! |
I'll take a break for today and maybe have another look tomorrow. I hate this damn async stuff 😆 |
Perhaps a question about a general opinion. Especially @DurgNomis-drol. |
@CM000n I always like to conform to the HA way of doing things. But I also don't think that exposing 72 sensors is good UX. A lot have changed in HA since I implemented this. So I think we need to have discussion about what is the best way to implement it going forward. I don't want to add 72 sensors, so I will not accept this change, hope you understand. We could return the data from a service call instead maybe, if this make sense for peoples use case. I'm open for better solutions. |
I agree with you @DurgNomis-drol. I also think that 72 sensors, some of them redundant, will clutter up the UI. I just wanted to bring it up to discussion. I think for now it's good with the 4 statistic sensors and their extra attributes. The attributes don't change every second, so the risk of an extremely large database should be low. If someone wants to use the information from the extra attributes, this can already be done easily using templates. |
Hi @CM000n day stats still doesn't work for me. It is because my json for both cars looks like this for day (there is no "PERIODE_START" but "date"):
so after fixing it in sensor.py: changing
I successfully got day data and the only error left in log is this:
but not sure why it worked for you so please check. I see also in @DurgNomis-drol 's screenshot that day sensor is hidden so maybe it didn't work also for him ? Regarding vehicle info... these JSON parts came through to UI:
what is missing:
_connected_services: here I don't think anything is needed for now in UI... a lot of private data there like device IDs, keys, customer IDs, IMEI etc... for new car (Yaris Cross 2023) there is not just one device with VIN code (which is checked if connected services are on) but there are also other 2 devices: "provider": "AVMAP_DCM600" each this device has also HTTP links, but none of them works with SSOMS token:
But in MyToyota app these new cars lost lock and light information which was part of "_status": so we will need some new API to get this info again... |
Hi @HuffYk , I forgot to push earlier 😆 |
np, works now 👍 |
I think it's more clean to have stats as we have them now. However some info from _status_legacy would be great to have as sensors. Not sure if HA supports some kind of grouping as I like grouping done in API results (car -> HVAC; car -> Charging... possibly also car -> Lights and car -> Locks)... I suppose HA doesn't support nesting devices (or one device having sub-devices and sensors linked to sub-devices) ? |
@CM000n I have entity translations ready, but will submit them in new PR when this is merge 🚀 I think we are getting close to getting this ready to get merge into master. The rest of the data available in @HuffYk Great find! |
Guys, let me if I can somehow participate in getting PHEV sensors to work in v2. So far I'm missing two crucial ones - battery status and range. Not sure what else is exposed in the new API that could be useful. |
I think that fits. Let's create a basis first. We can then gradually add additional sensors and information and deal with them separately. There may also be changes regarding the new API endpoints in the mytoyota Lib. This will also make it easier if we don't have to take too much into account in one go. |
We are not yet using any new API endpoints. The changes here are still using the old endpoints, but are already using a newer version of the mytoyota lib, which will (hopefully) make future changes easier. |
@CM000n That was my thought too. It will probably be a couple of months before we know what API endpoints they will turn off and we have everything moved over to the new platform (Meaning new Toyota App). I believe with this refactor it will be much easier to handle changes in the future and conform to HA standards. Just ping me when you want me to review this for a final time! For me everything is working, but I don't have many of the sensors that are possible, so I am waiting for you guys to confirm that |
I still get this error message in the logs: 2023-11-20 05:17:54.018 ERROR (MainThread) [mytoyota] Please setup Connected Services if you want live data from the car. (JTM**************). RAV4 2020, Sweden. Only Numberplate working after changing to new Toyota app. Anyone else with the same problem? |
Should bei fixes with V2:
Should be fixed with V2 of the Custom Component which ist not released yet. |
Ok, @CM000n thanks for the info! Good work, looking forward to V2! |
@oskarhood If you use HACS, you can choose master when selecting a version to install, this way you can try it out |
@DurgNomis-drol , master version working perfect! As mentioned above, the sensor for PHEV battery charge percentage is still missing. I hope someone can find it! |
Finally i also managed to test the master version with the "dirty" patch from #164 . Got the trip data, fuel level, odometer, parking_location and the basic "number plate" data (without number plate in AT) Got two errors, the one already mentioned:
and one about the fuel_level sensor:
A lot of info is missing, no EV data of the PRIUS 2023 (except on the trips)... Guess I should test the mytoyotalib to see the data that can be gathered right now? |
Hi @clews, |
No description provided.