openhab-webui/bundles
stefan-hoehn ac2d89abdd
Add blockly "rule enable" block (#3209)
fixes #3096

Adds a new block to allow enabling/disabling rules.
Variables of type Boolean and String are supported. A String with "true"
or "enabled" will be converted to true, all other values will result
into false.

<img width="471" alt="image"
src="https://github.com/user-attachments/assets/30210a96-5adb-4b65-ad45-0e6a082fe486"
/>

I also added Boolean to typed variables as this was missing:

<img width="417" alt="image"
src="https://github.com/user-attachments/assets/30cf9ec1-46bd-45d8-95bc-6fb11ea99a16"
/>

I used "as" because I think this is the most intuitive way of describing
what the block does, in particular when you use "enabled". If anyone has
a better idea to make the block design better, then please provide
feedback. Using a dropdown with Note that "Enable/Disable" ruleUID would
be nicer but would not allow to use variables.

---------

Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>
2025-06-15 20:05:12 +02:00
..
org.openhab.ui Add blockly "rule enable" block (#3209) 2025-06-15 20:05:12 +02:00
org.openhab.ui.basic [BasicUI] Reload the chart with higher dimensions when zooming (#3183) 2025-06-14 13:55:46 +02:00
org.openhab.ui.cometvisu New Crowdin updates (#3115) 2025-04-05 15:27:53 +02:00
org.openhab.ui.habot New Crowdin updates (#3115) 2025-04-05 15:27:53 +02:00
org.openhab.ui.habpanel Use Spotless sortpom plug-in (#3073) 2025-02-23 19:05:22 +01:00
org.openhab.ui.iconset.classic Use Spotless sortpom plug-in (#3073) 2025-02-23 19:05:22 +01:00
pom.xml Use Spotless sortpom plug-in (#3073) 2025-02-23 19:05:22 +01:00