Closed jlaur closed 1 week ago
@markus7017 - please see revised table above.
Besides a few documentation issues, it seems shellywalldisplay
will be determined as gen1, but it's documented as "Generation 2 Plus series".
shelly1mini
is probably mistakenly documented as shellymini1
. Likewise for shellypmmini
vs. shellyminipm
and shelly1pmmini
vs. shellymini1pm
.
FYI @lolodomo, @maniac103, @jimtng as participants in #17009 discussions.
To be further discussed - how will vendor changes in naming scheme affect the mappings in the binding, and how can we reliably anticipate such changes? See https://github.com/openhab/openhab-addons/pull/17009#issuecomment-2212471709
shelly1mini
is probably mistakenly documented asshellymini1
. Likewise forshellypmmini
vs.shellyminipm
andshelly1pmmini
vs.shellymini1pm
.
This is not only documentation, but also I18N strings: https://github.com/openhab/openhab-addons/blob/ab385ed2f35612cc447dbe992896d6c0e0c487fb/bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties#L106-L109
Example here: https://github.com/openhab/openhab-addons/issues/17014#issuecomment-2212504838
shelly1mini
is probably mistakenly documented asshellymini1
. Likewise forshellypmmini
vs.shellyminipm
andshelly1pmmini
vs.shellymini1pm
.
@markus7017, I will create a PR for this since this is not related to API determination.
Now we have 2 PRs. I would suggest to continue with #17015
Now we have 2 PRs. I would suggest to continue with #17015
No, #17015 is only about fixing the thing type descriptions, it is not related to, and will not conflict with, your PR for improving the API determination reliability.
See https://github.com/openhab/openhab-addons/pull/17009#discussion_r1667631650
Suggested approach for replacing:
https://github.com/openhab/openhab-addons/blob/ab385ed2f35612cc447dbe992896d6c0e0c487fb/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/handler/ShellyBaseHandler.java#L156-L162
to remove dependency towards property
deviceGeneration
:This logic determines API revision from thing type id:
https://github.com/openhab/openhab-addons/blob/ab385ed2f35612cc447dbe992896d6c0e0c487fb/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api/ShellyDeviceProfile.java#L406-L413
This will result in the following API determination based on thing type ids (with documented generation):