Commit Graph

795 Commits (5bf98457f4b293b3c513b4292084f873df4886bd)

Author SHA1 Message Date
Yannick Schaus 5bf98457f4
Add a Scene settings menu entry and editor (#1662)
Closes #1528.

The scene editor allows defining Item — command pairs that are applied when the scene is activated. While designing a scene, it is possible to sync the target state to the current Item state and test the target state command.

Technologically scenes are just rules without triggers, so they can be activated using the „Run Rule, Script, Scene …“ action.

Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Yannick Schaus <github@schaus.net>
2023-02-16 22:25:26 +01:00
lolodomo b2bd16b43f
[basicui] Remove Roboto font as unused by the app (#1712)
Fix #1273

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-02-16 22:17:12 +01:00
stefan-hoehn f1e4e91c1b
Blockly metadata blocks (#1664)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Also-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 22:02:24 +01:00
Florian Hotze e760877d5e
Provide access to widget configuration from widget expressions (#1698)
Fixes #1025.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 22:00:28 +01:00
Florian Hotze 78841a5bb8
Remove Blockly GraalJS dependency on prepended code (#1709)
The prepended code that made runtime, itemRegistry and events available
in Blockly on GraalJS is not required anymore. The only dependency was
the PercentType volume in Audio/Voice actions, but
https://github.com/openhab/openhab-core/pull/3352 fixed this.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 21:58:01 +01:00
Florian Hotze b3d2e3094b
Update openhab-js tern definitions (#1710)
This updates the tern definitions for the current library version
included in the addon (4.0.0).

Reference https://github.com/openhab/openhab-js/compare/v3.1.2...v4.0.0.
Last update of tern defs was in #1576.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-16 21:57:26 +01:00
Florian Hotze 8481e473b0
Fix wrong label from #1703 (#1705) 2023-02-12 20:55:05 +01:00
stefan-hoehn dbc3cdb5ee
Add new capabilities to oh-knob component using vue-round-slider (#1703)
Closes #1640.

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-12 20:21:15 +01:00
Florian Hotze 343eda78ed
[MainUI] Fix redirection for reverse proxy with authentication not working (#1670)
When the /rest/ call fails with 302 and the client is redirected to the login page, the login page should redirect the client back to the openHAB UI and not the REST API.
Therefore the URL param of the redirect URL needs to be modified to remove the rest/ from it.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 14:34:13 +01:00
Alexander Münch 25640b1798
Fix typo in comment (#1694) 2023-02-12 13:39:16 +01:00
Florian Hotze 48a3cb8995
Improve SIP Client component docs (#1695)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:38:16 +01:00
Florian Hotze deb8e195fc
Display `undefined` correctly in widget expressions (#1696)
The widget expressions (can be tested using the expression tester) did display undefined as an empty string, which was quite confusing and a bug.
Now undefined is displayed as undefined string.

Fixes #1026.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:31:32 +01:00
Florian Hotze d1a947da7b
Improve Item name validation & Add unchangeable note on Item creation (#1699)
This updates the item-form to show a more detailed error message on Item name validation (to match the other parts of the UI like script creation etc.). Furthermore, a note is displayed to inform that the Item name cannot be changed after creation.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:23:42 +01:00
Florian Hotze 35f81ce93a
Validate Widget UID & page ID on creation (#1700)
Fixes #1689.

Also mark label as required because the pagedesigner-mixin.js alerts if label is not set.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:22:28 +01:00
Florian Hotze 9f85d213de
Add delete button for custom metadata namespaces (#1701)
Due to the missing "Config" tab for custom metadata namespaces, there was no way to delete them from the UI.
 This adds a button to the bottom of the code editor of custom metadata namespaces to delete them.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-12 13:20:52 +01:00
stefan-hoehn 92bca23b59
Add doc link to state/commandDescription edit form (#1681)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-02-09 09:20:44 +01:00
Florian Hotze 9299886855
Analyzer: Use Item label instead of name if available (#1682)
Fixes #1679.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-09 09:16:19 +01:00
J-N-K 189cb5fbf4
Fix add-on configuration (#1684)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-02-09 09:14:37 +01:00
Florian Hotze 193b01a27e
Fixes & Enhancements for channel add & edit pages (#1683)
* [MainUI] Allow dashes in channel ID

Channel ID in fact allows dashes (it works and the hint in the input field says dashes are allowed), but the check was wrong.

Fixes #1630.

* [MainUI] Refactor channel settings to component

This
- allows setting and modifying channel description
- allows modifying channel label after creation
- unifies design of channel add and channel edit pages
- brings channel settings design closer to script settings design

Fixes #1346.
Fixes #1234.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-02-09 09:13:29 +01:00
Mark Hilbush 2cccc67374
[habpanel] Use commandDescription instead of stateDescription for selection list (#1688)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2023-02-09 09:11:27 +01:00
Florian Hotze 952392225a
Blockly: Fix UoM on Nashorn message & Adjust to library change (#1657)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-01-25 09:09:36 +01:00
Yannick Schaus 86b63331e2
Finish fixing addons-related features (#1654)
Fix setup wizard, installed Karaf addon description, featured addons.

See https://github.com/openhab/openhab-webui/pull/1651#pullrequestreview-1264724613 for details.

Signed-off-by: Yannick Schaus <github@schaus.net>
2023-01-22 12:52:10 +01:00
stefan-hoehn 4dfb9124b6
Blockly: Upgrade to v9, add JSScripting (GraalVM) implementations, UoM block types (#1617)
Closes #1597.
Closes #1617.

Signed-off-by: Stefan Höhn <stefan.hoehn@nfon.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-01-22 10:13:02 +01:00
J-N-K d5da973435
Allow changing log-levels for add-ons (#1452)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-22 08:21:43 +01:00
J-N-K 6077b1ae30
Fixes for add-on handling (#1651)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-22 08:18:48 +01:00
Boris Krivonog 231368eedc
Generalize evaluating expressions for charts & fix diff_last aggregates (#1649)
fixes #1418
fixes #1295
fixes #1102
fixes #1072
fixes #912.

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2023-01-21 10:03:12 +01:00
stefan-hoehn 020636436f
Fix ui glitch in item list when item status is empty (#1653)
fixes #1604

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-01-21 09:54:55 +01:00
stefan-hoehn 4283ae8ac8
Show custom namespaces for items in metadata menu (#1623)
Fixes #1633.

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
Also-by: Yannick Schaus <github@schaus.net>
2023-01-21 09:53:25 +01:00
Boris Krivonog a82f2b475b
Allow customisation of temperature, humidity and luminance badges (#1647)
Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2023-01-20 01:07:05 +01:00
stefan-hoehn 3138dffe94
Add style to overview page (#1642)
* add style to overview page

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>

* add style to overview page: lint fix

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-01-17 17:32:48 +01:00
stefan-hoehn 588be2b93a
Add Command-Click for macOS to select list entries (#1645)
Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2023-01-16 22:34:00 +01:00
Michael Krug 9b26853427
Update Google Assistant Metadata Definitions (#1648)
Signed-off-by: Michael Krug <michi.krug@gmail.com>
2023-01-16 22:32:26 +01:00
J-N-K e012d946c6
Adapt to core changes (addon.xml) (#1468)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:33:22 +01:00
Noémien Kocher 61ba80d079
Fixes some typos in the doc (#1620)
* Fixes typos
2023-01-15 13:15:05 +01:00
Wouter Born c8c3b8c113
Update license headers to 2023 (#1624)
Signed-off-by: Wouter Born <github@maindrain.net>
2023-01-06 09:51:00 +01:00
Jeremy d915c8aec9
Limit alexa parameter state description options (#1621)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2023-01-05 01:31:39 +01:00
Jeremy 2d95ef0e84
Add alexa playback step attribute (#1622)
Signed-off-by: jsetton <jeremy.setton@gmail.com>
2023-01-05 01:27:29 +01:00
Florian Hotze c2a52b5264
[MainUI] Update autocompletion for new MIME types (#1619)
Reference https://github.com/openhab/openhab-addons/pull/14013.
Reference https://github.com/openhab/openhab-addons/pull/14096.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-01-03 21:21:39 +01:00
Florian Hotze 89e82f4cbc
Add tags & script language to script settings (#1601)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-01-03 15:24:47 +01:00
lolodomo d6390d0c39
basicui] Fix setpoint/slider widgets when %unit% is used in state (#1612)
This is the same fix as #1611 but for OH 4.0 main branch.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-12-31 17:57:23 +01:00
Wouter Born 60c7609ec0
Update Jackson version to 2.14.1 (#1616)
This is the version used in the feature provided by openhab-core.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-30 22:47:43 +01:00
Tobias Bräutigam 87e1d78705
remove deprecated cometvisu-php binding (#1594)
* remove deprecated cometvisu-php binding

closes #1592

Signed-off-by: Tobias Bräutigam <tbraeutigam@gmail.com>
2022-12-30 19:50:10 +01:00
Florian Hotze 2f5bb5c8ee
Script Editor: Block runRule and save while rule is running (or uninitialized) (#1613)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2022-12-30 10:28:33 +01:00
Wouter Born bf47aeb87f
Fix add-on information issues (#1607)
Fixes the following issues:

* Markdown documentation for JDBC features does not show
* Documentation link for JDBC features results in 404 not found
* Issue links always point to openhab-addons repository (also for UI add-ons and Zigbee, Zwave)
  This causes users not to find exising issues and causes them to create issues in the wrong repository

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-26 18:21:45 +01:00
Wouter Born 466566e6ea
Update Eclipse .classpath files (#1603)
Related to #1588

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-23 16:55:26 +01:00
Wouter Born fd24db8526
Use HTTPS in pom.xml where possible (#1602)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 21:53:36 +01:00
J-N-K 38f44af1e1
Raise minimum JDK version to 17 (#1588)
* Raise minimum JDK version to 17

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 23:20:09 +01:00
Wouter Born f97323690f
Apply spotless to fix build (#1593)
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-19 17:33:45 +01:00
openhab-bot e39ce7f6bf [unleash-maven-plugin] Preparation for next development cycle. 2022-12-19 03:05:38 +00:00
Wouter Born 5e18cb3047
Use HTTPS links in Markdown (#1589)
* Use HTTPS links in Markdown
* Fix broken link

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-18 20:05:32 +01:00