-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FEATURE]: Two stromers under the same id #81
Comments
Seems to make sense, I would assume just 'multiple bike id's present but never looked for them. I'll get back to you on it. |
Fantastic, thanks so much. It must clearly broadcast both of them since I previously used a script running on AppDeamon with the same login credentials, and I was pulling the data from the other bike. |
Trying a very preliminary in #82 just to test the waters (i.e. not breaking existing setups) as it's a bit more of a hassle than just iterating multiple times + not sure if the |
I see I just use |
Amazing! I am not really using the integration at the moment so if you like I can test and give you some feedback (you might have to instruct me how to do this though as I have never done it before) |
Sure, highly appreciated - I'll keep you posted. If you already have (it installed through) HACS it's only a matter of enabling beta downloads - but don't install any of the ps I do have a separate instance for testing which makes it easier to make FUs which I'd rather not have on other peoples systems/data :) |
You are more than welcome. It is a good idea to start my own test instance to play around. I shall do that tomorrow and will report back in due course. |
Sorry for the belated reply I was caught up with doing something else. I have now spun up a test instance and enrolled to the beta testing on your github repo. When I looked at your code (I am very much a Matlab coder and not at all proficient with python) I was thinking whether this would potentially be a solution to reduce the complexity. I guess that extra work might only apply to those weirdoes few (like myeslef and my partner) who share an account anyway. Let me know when you want me to give it a try. |
No worries, it's all life that gets in the way, I had some time to spare so tinkered something, it might be that v0.4.0a2 is do-able in the approach I outlined above. Just waiting for code checks to kick in and report back and re-install this on my dev machine (I was actually just tinkering there to get it done and shuffling it back into git now). |
Fantastic. I shall watch out for any version change and will give it a go. |
If you HACS -> Integrations -> Stromer and right top click the dots to 'Re-download' (or something likewise) you can toggle 'beta' on, that should show you said version. What it will do is ask for mail/password/clientv4-id and when clicking next should show you bike or bikes, ticking a bike should add that bike. Note that adding the bike takes some time before it asks you 'which room' to put it in - the API is not the fastest in the world as you probably already experienced with the dashboard. |
Will look into that (not today though) - thanks for the feedback and confirming it primarily functions :-) I think I have to tinker something for existing as well though, the unique name used to be |
I see; I was wondering what that was referring to. Reading other people's code is a very good learning exercise. Let me know about the progress, and I will, of course, give you as much feedback as possible - and in the meantime, I shall enjoy the beta version. |
Just reporting no intermediate progress; not sure why it would do the naming differently (if you look through the PR code changes, I thought it was the |
Hi very much a beginner here with Home Assistant, but I got my ID tonight and I'd just like to add my voice to the folks asking you to enable solutions for two stromers. This is a fantastic thing with great potential. Thanks so much, really appreciate your work. If I can help with testing, happy to do so! |
Hi @GoodbyeHarmony - it's not fully ready as per @aq18507's comment above, I've not (yet) found out why it suddenly doesn't connect to itself as a Device, probably destroyed something with looping over it, but if you aren't (too) scared to run beta you could already install it and give it a whirl |
For some reason the PR doesn't set "name_by_user" correctly - which would make sense to display the bikes nickname and ask how one would like to call it. Should still look into this, but I can confirm the device registry for that key is at |
It works really well. Been playing a few days now and just watching my fully charged ST5 (switched on) lose charge naturally whilst my ST3 is on charge. One thing that would be useful but I doubt Stromer provide is an indication that the bike is charging, or on charge. But this is top class work and deeply impressive I must say. Thank you so much! |
Glad it works for both of you, still that annoying device thing to get rid of ... I'll have a look if I can find charging, but I do believe it shuts down communication or anything when charging, the way I do it; I have a smart plug that I can hit locally in the shed to start charging and actually when not using the bike I sort of (by measuring/timing) shut it off at a certain Wattage to not 100% charge ... the same happens when I do want to charge 100% but than differently, if Wattage falls below a value, shutdown the charger. |
Me Three? - Thank you for your work on this. I thought I was losing my mind when I added a second Stromer last month (so did my wife but that’s a different story). Is it possible for me to join the beta testing as well? |
Yeah sure. Still need todo some work to clean it up with us poor single bike owners 😀 But feel free to join, it's not closed. If you go to HACS inside your HA and tick Stromer. Next use the three dots and select download it will present a modal (pop up) with a select for beta. Once you toggle that you can select v0.4.0a2, download and restart and you should be good to go |
Hey thanks, the beta (v 0.4.0a2) did the trick and now allows my two bikes to be integrated through the API. I now see both bikes in HA. The only caveat is that while the device name displays properly during the device selection process and all the entities are properly name with the first selected device’s name. After that, when adding the second bike or additional bikes (devices) , despite selecting the correct device name, the entities come through named as “none” for the entity name. With only two bikes and knowing which bike is none_battery and which is none_battery_2 I was able to easily edit the entities on my dashboard cards to reflect the correct entity (none or none_2) and use the name field on the card to properly display correct name of the device/entity. One additional test I did was to delete all the devices and re add them, which is how I discovered additional entities for each newly added device gets the numeric extension at the end of the entity name. My last observation is that one entity appears to behave differently and actually retains the device name correctly each time the device is added Thanks again for your great work. I love being able to keep an eye on my bikes in HA. I’m also using a Scheduler Card in conjunction with a smart plug on my chargers to evaluate my bikes’ charge each night and keep them automatically charged between 30-70%. I hope my long winded note makes sense, feel free to reach out if you need any additional clarifications. |
Hi @jaydubdub54 Your feedback is much appreciated, I'd rather read long winding ones over obfuscated summaries :) The numeric extension is HA's way to resolve 'same named entities' - it's a bit puzzling as though why this happends, I'll gladly look into that. Just to recap, when adding two bikes; I'm trying to make #79 work now (which is also included partially in this PR) which would free up some time to dive further into multibike. Thanks for your continued patience! |
@aq18507 @jaydubdub54 @GoodbyeHarmony heads-up: even though |
@CoMPaTech - Thanks again for your work on the Stromer (and multi bike) integration. Actually, I believe the v4 integration is behaving as you initially stated in your response. When adding a bike for the first time after installing the v4 integration it correctly retrieves and displays the properly bike name on each of the entities for that bike. Thereafter when adding any additional bikes, all the entities associated to the additional bike being added are given a device name of “none”, “none2” etc. with the exception of the location entity as mentioned previously. Does that help clarify? |
Yeah it does - in terms of problem description - now I need to dedicate some time to figuring out where it happens, hopefully you all have some patience (and I would try to be cautious and not cause beta updates to loose history by renaming the |
Describe the bug.
Thanks for developing this fantastic integration. We have both of our stromers on the same ID. I am wondering first of all, whether it is possible to add them both using the integration. If not, this might be an additional useful feature to add to this already great app.
Thanks very much already.
What version of Home Assistant Core has the issue?
2024.1.6
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
How did you install the stromer integration
HACS
Logging
No response
Diagnostics information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: