-
Notifications
You must be signed in to change notification settings - Fork 285
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 bluesound to latest #4089
base: master
Are you sure you want to change the base?
Add bluesound to latest #4089
Conversation
Automated adapter checkerioBroker.bluesound👍 No errors found
Add comment "RE-CHECK!" to start check anew |
Thanks 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. You will find the results of the review and eventually issues / suggestings as a comment to this PR. So please keep this PR watched. If you have any urgent questions feel free to ask. reminder 6.10.2024 |
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.
Some state Ids seem to be constructed by preset names retrieved from external device. Those names must be filtered to remove illegal characters. Buest prxis is to limit to A-Za-z0-9, but using FORBIDDEN_HARS is OK too. Spaces and dots MUST be removed in addion as severla vis cannot handle spaces within stateIds and dot have special meaning (folder seperation)
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! reminder 11.10.2024 |
Thanks for your feedback. I started fixing the issues as requested. One problem though: Regarding your request on setState() I always have to add the instance prefix (in fact it is always automatically entered when I type setState) . Without the instance prefix I get the error error: bluesound.0 (300351) unhandled promise rejection: setState is not defined Can you tell me how I can solve the issue raised. Thanks. |
im referring tonthe state id. rhis.setState is ok an required. |
Thanks got it now: ObjectId to omit the instance. |
Code to create preset objects is included within onReady using the result from the /Presets call. It returns the 'id' used for the ObjectId always as a number like 1, 2 ... To be really sure I will include the replacement of FORBIDDEN_CHARS as requested. The objects are then created dynamically using setObjectNotExistsAsync using the helper function (via utils.js). The names are hardcoded there and thus should not create any problems with special characters. |
@mcm1957 |
No description provided.