G-Two / subarulink

A python package for interacting with Subaru STARLINK remote vehicle services.
Apache License 2.0
84 stars 14 forks source link

HA Component testing #16

Closed stboch closed 3 years ago

stboch commented 3 years ago

@G-Two looks like your intergration got tagged for release for .114 Congrats!

G-Two commented 3 years ago

Thanks! Do you think it is too late to commit one last change? I have locks, beep, blink, remote start/stop implemented as services based upon your recommendation.

stboch commented 3 years ago

since the pr hasn't merged to dev yet I think it should still be good to go for another update.

G-Two commented 3 years ago

@stboch if you get a chance, I'd appreciate any feedback you have on some pending updates I have to the HA integration that removes the lock platform and replaces with a service (along with services for all other remote actuations). It's in a new branch in my HA fork

stboch commented 3 years ago

while I hated the annoying unknown state I did like the fact it was a lock it allowed me to use Google assistant day unlock "mysubaru"

stboch commented 3 years ago

just had a look over the code will test in the morning. looks good at first glance.

G-Two commented 3 years ago

while I hated the annoying unknown state I did like the fact it was a lock it allowed me to use Google assistant day unlock "mysubaru"

Ok, that's good feedback. I suppose it doesn't hurt to have both the lock entity and the service available. I'll put it back right now so that you can test tomorrow. Thanks.

stboch commented 3 years ago

when you get around to refactoring the binary sensors add vehicle state type as a binary one for if the engine is running. not sure yet how often this is not off... but it is at least on when the remote start is running also updates back to off when remote start times out.

stboch commented 3 years ago

Looks like there is a catch requiring vin to only be in uppercase, not had a chance to check where that bug is presenting but it might be fine on the HA code to force uppercase the VIN. Otherwise services worked great!

G-Two commented 3 years ago

Thanks for catching that. I added vin.upper() in the HA service handler, as well as added vin.upper() to the public functions in the controller. I made a few other tweaks and have it running at home now. If all goes well, I'll merge into the current PR and update the documentation.

Where does it show subaru is going to be in the 0.114 release?

stboch commented 3 years ago

well apparently I was wrong... so sorry. I saw it was added to a new integrations pipeline so I assumed this was used for the release. however I assumed wrong.

G-Two commented 3 years ago

no problem, I saw that too. It's still another step closer. Looks like started the new pipeline to help new integrations get rolled in. Gives me a little more time to polish the integration before it hits the HA release.

stboch commented 3 years ago

btw others who want to use it only need to copy it I to their custom_componets folder and it all works as it should that is what I have been doing since I first found your project.

G-Two commented 3 years ago

@stboch I setup a new repo to continue development while the initial PR continues the review (it moved past another wicket last week). I found the gigantic HA Core repo to be too unwieldy for development and testing. Please give this a try when you get a chance, it maintains everything from the original repo, but in a more custom_component friendly directory structure.

stboch commented 3 years ago

Already did... got it going happy device tracker is in there. Might be a good option to add the hacs repo code bits if you like. Then people can get it from HACS. Your choice. If you don't figure it out tonight(for me in the US) I'll submit a PR with the changes tomorrow.

G-Two commented 3 years ago

The Subaru integration has been approved and merged to the HA dev branch. It will be an official component starting with release 2021.3. It'll only have sensors, so the HACS version is probably still the way to go for existing users now. I plan to eventually submit PRs to carry all features of the HACS version over to the official component.