-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Link add: Support linking Number channel to Switch Item with profile #2690
Link add: Support linking Number channel to Switch Item with profile #2690
Conversation
…profile Closes openhab#1478. Signed-off-by: Florian Hotze <[email protected]>
#2149 Bundle Size — 10.77MiB (~+0.01%).Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
|
Current #2149 |
Baseline #2148 |
|
---|---|---|
Initial JS | 1.88MiB |
1.88MiB |
Initial CSS | 607.91KiB |
607.91KiB |
Cache Invalidation | 18.11% |
18.11% |
Chunks | 223 |
223 |
Assets | 246 |
246 |
Modules | 2888 |
2888 |
Duplicate Modules | 149 |
149 |
Duplicate Code | 1.84% |
1.84% |
Packages | 97 |
97 |
Duplicate Packages | 2 |
2 |
Bundle size by type 1 change
1 regression
Current #2149 |
Baseline #2148 |
|
---|---|---|
JS | 8.96MiB (~+0.01% ) |
8.96MiB |
CSS | 892.47KiB |
892.47KiB |
Fonts | 526.1KiB |
526.1KiB |
Media | 295.6KiB |
295.6KiB |
IMG | 140.74KiB |
140.74KiB |
HTML | 1.24KiB |
1.24KiB |
Other | 871B |
871B |
Bundle analysis report Branch florian-h05:link-number-channel-... Project dashboard
If I'm following the code correctly I think this looks right. The only part I can't tell easily is what is in the list of compatibleProfileTypes. I assume it would be those that work for Switch Items including stuff like hysteresis, script, map, etc. |
This list is requested from the REST API and specific to the channel type. I only need to filter out the default and follow profiles if I want to link a Switch to a Number channel. |
Regression from #2690. Reported here: https://community.openhab.org/t/enocean-impossible-to-link-a-rockerswitch-channel-with-an-item-in-main-ui-there-is-no-profile-available-for-the-selected-item/160987 When creating a Thing channel link to an item, the profile selection are disabled. This presents two problems: - It made linking a trigger channel to an item not possible, because a profile must be selected, but they're disabled. - Linking a non-trigger channel to a new item is possible, but selecting a profile is not possible at link creation. The user has to create the link without a profile first, then go back to edit the link in order to assign a profile. When editing a channel link, profile selection was possible for unsupported profiles, e.g. when editing a link between a Switch Item and a Number channel, one could edit the link to use the default or follow profiles. --------- Signed-off-by: Florian Hotze <[email protected]>
Regression from #2690. Reported here: https://community.openhab.org/t/enocean-impossible-to-link-a-rockerswitch-channel-with-an-item-in-main-ui-there-is-no-profile-available-for-the-selected-item/160987 When creating a Thing channel link to an item, the profile selection are disabled. This presents two problems: - It made linking a trigger channel to an item not possible, because a profile must be selected, but they're disabled. - Linking a non-trigger channel to a new item is possible, but selecting a profile is not possible at link creation. The user has to create the link without a profile first, then go back to edit the link in order to assign a profile. When editing a channel link, profile selection was possible for unsupported profiles, e.g. when editing a link between a Switch Item and a Number channel, one could edit the link to use the default or follow profiles. --------- Signed-off-by: Florian Hotze <[email protected]> (cherry picked from commit bd9c6f0)
Closes #1478.