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>
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>
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>
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>
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>
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>
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>
* [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>
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>