Commit Graph

1504 Commits (4.3.6)

Author SHA1 Message Date
openhab-bot a21a9facb2 Preparation for tag creation (Tag name: '4.3.6'). 2025-07-17 17:31:44 +00:00
Timotheos Constambeys 555bbbebe5 oh-colorpicker: Fix sliders not initialized in widget (#3213)
Fixes #3208.

Signed-off-by: Timotheos Constambeys <timo0190@gmail.com>
(cherry picked from commit 204ca25097)
2025-07-14 20:13:00 +02:00
stefan-hoehn d3c404dfc5 [blockly] Fix typed var not working for dictionary (#3210)
Fixes #3038.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
(cherry picked from commit c12c18cdde)
2025-07-14 20:12:36 +02:00
Florian Hotze 08a47e99d7 Use versioned branch for add-on & sidebar docs (#3254)
Closes #2945.

Load the markdown source files used by the add-on details and the
developer sidebar from the versioned git branch instead of always using
the latest docs. This is implemented by loading the docs src from the
website, were Netlify redirects are used to point each version to the
proper branch.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit e99fd1ea51)
2025-07-14 20:10:28 +02:00
Florian Hotze 71be78215b oh-slider: Fix display state with decimal comma parsed to integer (#3257)
Fixes #1949.
This monkey patches parseFloat to also handle decimal comma and updates
oh-input to take advantage of that.

Signed-off-by: Florian Hotze <dev@florianhotze.com>

(cherry picked from commit e4dade77de)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-07-14 20:09:58 +02:00
Florian Hotze 0d05fe1f7c oh-slider-item: Respect `ignoreDisplayState` config & Improve docs (#3256)
Closes https://github.com/openhab/openhab-webui/issues/1503.

https://github.com/openhab/openhab-webui/issues/1503 is caused by the
display state of the Item formatting the raw state different from the
slider.
With this change, it is possible to make the oh-slider-item ignore the
display state for the displayed state value.
oh-slider also ignores the display state if that value is set.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit f04c91096e)
2025-07-14 20:07:05 +02:00
Florian Hotze c1d350d20d Config description: Fix external links not opening correctly (#3266)
Fixes #3262.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 1441a34571)
2025-07-14 20:06:33 +02:00
openhab-bot b92880c2c5 [unleash-maven-plugin] Preparation for next development cycle. 2025-04-26 18:04:32 +00:00
jimtng b1cd44673c Sidebar Search: Fix rules/scenes/scripts search result count (#3159)
Fixes #3157.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit 57a7f1dae4)
2025-04-20 11:15:53 +02:00
Florian Hotze cc088d4886 Link add/edit: Fix link Dimmer/Switch Items to Color channel (#3133)
Fixes #3122.

Regression from #2941 and/or #2690.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 4b7f614b4f)
2025-04-07 12:22:42 +02:00
openhab-bot 1de308a208 [unleash-maven-plugin] Preparation for next development cycle. 2025-03-30 17:42:43 +00:00
Florian Hotze d449fda4ea Persistence edit: Add missing dirty checking on edit (#3118)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 61a9269773)
2025-03-25 22:56:31 +01:00
Mark Herwege 51ea794ab6 Persistence edit: Fix multiple selection (#3105)
Closes https://github.com/openhab/openhab-webui/issues/3104.

As the item picker keys where dependent on the length of the selection,
they got recreated each time something was selected. This made
multi-selection impossible.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
(cherry picked from commit f193ef9f1f)
2025-03-25 22:56:27 +01:00
Florian Hotze 1103a98707 Fix oh-image-card styling affects all cards (#3065)
Regression from #3046.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit a9839ed90b)
2025-03-08 14:40:42 +01:00
openhab-bot f209e99dd7 [unleash-maven-plugin] Preparation for next development cycle. 2025-02-20 16:06:06 +00:00
jimtng 1cc0b830a6 Addons Store: Show tab bar when left panel is hidden (#3053)
When the left panel is hidden, there's no way to see uninstalled
add-ons, so we should show the tab bar.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit a0ccaa33f1)
2025-02-15 13:16:41 +01:00
Jimmy Tanagra 875e5891b3 Addons Store: Also search the addon id
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit 162aaa6390)
2025-02-15 13:16:25 +01:00
Jimmy Tanagra a03302fc79 Addons Store: Show search term before loading addons
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit ec230c9c8d)
2025-02-15 13:16:25 +01:00
jimtng 8b80f8ebe7 oh-image-card: Fix inconsistent image size when action is defined (#3046)
Fixes #3002.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit a7cc8f762c)
2025-02-15 13:09:56 +01:00
David Tschida aec6aaad39 oh-slider: Fix handing of steps with many decimals when rounding state values (#3022)
Fixes #3019.

Signed-off-by: David Tschida <dmtschida1@gmail.com>
(cherry picked from commit 8b4e6699c9)
2025-01-16 19:19:28 +01:00
Florian Hotze 3fbb0cbdfc Fix spotless after release
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-01-16 19:18:53 +01:00
openhab-bot d0afbfedc9 [unleash-maven-plugin] Preparation for next development cycle. 2025-01-12 20:32:48 +00:00
Florian Hotze 6dc07385f0 Chart page: Fix wrong height inside popups, popovers & sheets on iOS (#2991)
Fixes known limitation from #2717.
Reported on the community:
https://community.openhab.org/t/openhab-4-3-release-discussion/160888/155?u=florian-h05

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 7034ad9a0a)
2025-01-08 18:34:38 +01:00
jimtng 6289ac9a5a Thing Copy: Fix channel uid of copied Thing (#2984)
Fixes #2977.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit 331ec6b79e)
2025-01-07 23:24:31 +01:00
jimtng e580e1e4f0 Fix Schedule page shows UTC instead of local timezone (#2969)
Reported in:
https://community.openhab.org/t/shown-time-in-schedule-view-is-wrong/161288
https://community.openhab.org/t/schedule-page-in-mainui-off-by-one-hour-since-4-3/161307

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit 7ac9838c9e)
2025-01-04 22:00:04 +01:00
Florian Hotze 4dfd9927b8 Model tabs: Fix left/right margin to small on mobile (#2964)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 095584a137)
2025-01-01 19:25:37 +01:00
Florian Hotze d40003cdf7 Layout pages: Safe area fixes & related code improvements (#2959)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit f424e2b914)
2024-12-31 16:52:41 +01:00
Florian Hotze 9d07fcbc39 Fix spotless after release
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-31 16:42:35 +01:00
jimtng c01be95135 Allow item names to start with an underscore (#2958)
Reported in
https://community.openhab.org/t/openhab-4-3-item-name-starting-with-underscore/161244

Regression from #2658

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit 2028872bfc)
2024-12-31 15:37:34 +01:00
openhab-bot 9727e55e46 [unleash-maven-plugin] Preparation for next development cycle. 2024-12-30 19:22:06 +00:00
Florian Hotze a695375fac Don't subscribe to Item events to reload model (#2949)
Related to #2584 and
https://github.com/openhab/openhab-core/issues/4466.

This avoids that the global SSE connection is always established, and
therefore reduces problems with the max parallel HTTP connections
limitation. The global SSE connection is now only established if the web
audio sink or the command Item are enabled.

Whilst this change potentially makes the UI not reload the model
automatically on change, practically the now removed mechanism might
haven't been really useful at all because the model is already reloaded
on Main UI start, and if SSE was not connected the moment an Item
changed the mechanism did not trigger.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 5d7f35a824)
2024-12-28 13:34:45 +01:00
Florian Hotze 8ea749961c Link add/edit: Fix profile selection (#2941)
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 <dev@florianhotze.com>
(cherry picked from commit bd9c6f0c36)
2024-12-24 13:01:18 +01:00
Florian Hotze ebbebb7e81 Widget expressions: Fix screen object not properly initialized & updated (#2933)
Fixes #2929.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 0ead7b8100)
2024-12-22 17:41:17 +01:00
jimtng ae1dbf9706 Fix enabled profiles in link editor appear disabled (#2938)
Reported on the community:
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/40

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
(cherry picked from commit 0071de993c)
2024-12-22 16:41:15 +01:00
Florian Hotze 813f11930f `oh-clock-card`: Remove (broken) background property in favour of style config (#2932)
This avoids confusion because `background` is not working anymore.
Use `style: background: ` instead.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 56e0ebe23e)
2024-12-19 16:05:07 +01:00
Florian Hotze c00c9a4572 `oh-card`: Fix action & tap-hold action not working (#2931)
Regression from #2781.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit a907cc3319)
2024-12-19 16:05:04 +01:00
Florian Hotze 289176535e Fix scripting add-on availability check for old JS Scripting MIME type (#2928)
Regression from #2743.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
(cherry picked from commit 511b9493bb)
2024-12-17 16:15:22 +01:00
Florian Hotze 6b1191a718 Bump to next snapshot version
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-17 16:13:23 +01:00
Arne Seime 8b8732ceaf
Update CONTRIBUTING with missing npm lint scripts (#2919)
Signed-off-by: Arne Seime <arne.seime@gmail.com>
2024-12-14 09:27:27 +01:00
Yannick Schaus c2ae0ab5d3
Log viewer: only render lines around visible area (#2905)
This should fix the performance problems in the log viewer when the
number of items reaches the max buffer size.

---------

Signed-off-by: Yannick Schaus <github@schaus.net>
2024-12-13 15:17:02 +01:00
Florian Hotze dfd1e453c2
Unit metadata edit: Add missing padding (#2913)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-11 17:55:25 +01:00
Florian Hotze b6233259b1
Update unit definitions (#2912)
Refs https://github.com/openhab/openhab-core/pull/4467.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-11 17:47:42 +01:00
Florian Hotze a55edca789
Update openhab-js tern defs (#2911)
This updates the tern defs used for autocompletion to the current
library version included in the add-on (5.8.1).

See https://github.com/openhab/openhab-js/compare/v5.3.1...v5.8.1 for
changes.

Last update was in #2642.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-11 17:09:38 +01:00
Florian Hotze b6118058ce
Fix safe-area issues (#2910)
This fixes safe-area issues all over the UI:

- Issues where the safe area was applied to elements where it should
not, e.g. the settings menus' entries.
- Issues where the safe area was missing, e.g. model cards, which were
hidden under the notch.

Due to webpack's CssMinimizerPlugin minimizing `0px` to `0` when
overriding the Framework7 safe area CSS vars, which then broke the
calculation, a new .css file has been introduced.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-10 20:52:07 +01:00
Florian Hotze 1783d8fe73
Log viewer: Fix styling issues on mobile devices (#2908)
- Fix navbar button color and arrangement on iOS devices.
- Remove tooltip for iPhones as it is hidden behing the notch, which
looks weird.
- Fix safe area issues with log table and badge in landscape on iPhone.
- Clean-up code a bit.

---------

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-10 14:26:24 +01:00
openhab-bot 8823e0e9c6
New Crowdin updates (#2909) 2024-12-10 00:11:00 +01:00
openhab-bot 7e8f460802
New Crowdin updates (#2906) 2024-12-09 23:25:59 +01:00
Mark Herwege 320c3f57b2
Persistence edit: Support excluding items or groups (#2896)
Ability to exclude items or groups from persistence configurations.

Refs https://github.com/openhab/openhab-core/pull/4468.

---------

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2024-12-08 16:25:40 +01:00
Chris Jackson 92dd646387
Add Log Viewer to MainUI (#2884)
Closes #2883.
This adds a basic log viewer into the Main UI, and displays the logs
from openHAB log file using a websocket connection.

## Overview 

This adds the log viewer to the Developer Tools -:

The main logger window is reasonably simple, and a little busy. Log
entries are styled with a background color:
red=error, yellow=warn, greed=info, grey text = trace, no change = debug.
The window scrolls horizontally - the time column
remains fixed, but the log level, class and message scroll left/right.
This allows the user to effectively remove these columns if they desire
by simply setting the horizontal scroll point accordingly.

Across the top in the navbar and the bottom toolbar are a bunch of status and configuration
data/buttons. These are:

* Play button: Continues receiving/processing logs if paused / stopped.
* Pause: Continues to receive logs from openHAB, but doesn't add them to
the display, so the display is static. When Play is pressed, the filter
is updated, so any recent entries will be added.
* Stop: Stops receiving data from the server. The websocket connection
is disconnected - this ensures there is no change to the local buffer.
* Filter input box - this filters the display to display only text in
either the logger name or message containing the filter text (case
insensitive).
* Time of the oldest and latest log entries held in the local buffer.
* Number of log entries currently displayed and in the buffer.
The color of the badge is green if all are displayed, orange if some are
filtered out, or red if the max size of the buffer (2000) is reached.
* Download: Downloads a CSV of the filtered log file for further
processing.
* Copy: Copies the log as HTML to the clipboard. This allows pasting of
the filtered log complete with highlighting.
* Delete: Clears the log buffer.
* Exclamation: Shows `ERROR` logs even if they would otherwise be
filtered out.
* Pen: Configures highlighting (more on this below).
* Cog: Configured logging (more on this below).
 
## Highlighting 

The UI allows the user to add any number of text elements that will be
highlighted. The user can specify a colour, and enable and disable if
the highlighting is active or not. The list of highlights is saved
locally.

## Log Settings 

The user can directly manipulate log levels. This allows the user to
simply change the log level for existing packages, or delete the log
entry (restoring it to default) or adding a new logger for a custom
package. If adding a custom package, this gets added as `WARN` level (it
uses the log level provided in the `ROOT` logger), which can then be
changed in the dropdown.

Also-by: Yannick Schaus <github@schaus.net>
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
2024-12-08 14:11:14 +01:00
openhab-bot 1a208e77b6
New Crowdin updates (#2903) 2024-12-08 11:04:55 +01:00