-
Notifications
You must be signed in to change notification settings - Fork 293
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
Add seplos-v3-sniffer to latest #4560
base: master
Are you sure you want to change the base?
Conversation
ioBroker repository information about New at LATEST taggingThanks for spending your time and providing a new adapter for ioBroker. Your adapter will get a manual review as soon as possible. Please stand by - this might last one or two weeks. Feel free to continue your work and create new releases. You do NOT need to close or update this PR in case of new releases. In the meantime please check any feedback issues logged by automatic adapter checker and try to fix them. And please check the following information if not yet done:
Important: To verify the object structure of this adapter during REVIEW please export the object structure of a working installation and attach the file to this PR. You find a guide how to export the object struture here: https://github.com/ioBroker/ioBroker.repochecker/blob/master/OBJECTDUMP.md You will find the results of the review and eventually issues / suggestions as a comment to this PR. So please keep this PR watched. If you have any urgent questions feel free to ask. @simatec Please take a look in respect to responsive design. Thanks |
reminder 20.2.2025 |
First of all - THANK YOU for the time and effort you spend to maintain this adapter. I would like to give some feedback based on my personal oppinion. @Apollon77 might have additional suggestions or even a different oppinion to one or the other statement. Please feel free to contact him if you cannot follow my suggestions or want to discuss some special aspects.
Thanks for reading and evaluating this suggestions. Please add a comment when you have reviewed and fixed the suggestionsor at least commented the suggestions and you think the adapter is ready for a re-review! Please add a new object dump after fixing creation of bms and 0/1/.. objects and reviewing roles. reminder 27.2.2025 |
I have considered all suggestions and request a re-examination. |
Automated adapter checkerioBroker.seplos-v3-sniffer👍 No errors found
Add comment "RE-CHECK!" to start check anew |
WORK IN PROGRESS - This is a review checklist only - IGNORE FOR NOW
|
Thanks for your work at this adapter an fixing most issues.
Please add a comment when you have reviewed and fixed the suggestionsor at least commented the suggestions and you think the adapter is ready for a re-review! reminder 7.3.2025 |
If I only call setObjectNotExists once at the start, it is not possible to react dynamically to the received messages. I would have to specify the number of batteries beforehand. I have designed the code so that the objects are created after data is received and are automatically created again after deletion. For example, if 2 batteries are connected, BMS0 and BMS1 are created. If the user then adds a battery, BMS2 is automatically created. Or do you have a better idea? |
Thats completly ok to add data dynamically. But you can and should do something like this: const knownIds = []; This will call setObjectNotExists only once after every Adapterstart. Checking the existence during processing of every packate this way is much mor cheaper than calling getObject. Of course you can use a hash / an object too instead of the array if you need to store some data anyway. I hope this clearifies what I tray to say. Of course this will not handle the case that a user deletes objects wile the adapter is running, But thats the case with 99% of all adapeters and nobody will or need to guarantee that such an action will work anyway. P.S: Looks like this.knownObjects already is such a kind of cache. But it seems to miss some objects and seems to miss its functionality in conjunction with the timeout mechanism. |
I hope I was able to fulfill all suggestions. |
Please add my adapter ioBroker.seplos-v3-sniffer to latest.
This pull request was created by https://www.iobroker.dev 9bea956.