diff --git a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java index dd93ce9ae8c..2b9188e02cf 100644 --- a/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java +++ b/bundles/org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/components/UIComponentSitemapProvider.java @@ -43,6 +43,7 @@ import org.openhab.core.model.sitemap.sitemap.VisibilityRule; import org.openhab.core.model.sitemap.sitemap.Widget; import org.openhab.core.model.sitemap.sitemap.impl.ButtonDefinitionImpl; +import org.openhab.core.model.sitemap.sitemap.impl.ButtonImpl; import org.openhab.core.model.sitemap.sitemap.impl.ButtongridImpl; import org.openhab.core.model.sitemap.sitemap.impl.ChartImpl; import org.openhab.core.model.sitemap.sitemap.impl.ColorArrayImpl; @@ -270,6 +271,16 @@ protected Sitemap buildSitemap(RootUIComponent rootComponent) { addWidgetButtons(buttongridWidget.getButtons(), component); widget = buttongridWidget; break; + case "Button": + ButtonImpl buttonWidget = (ButtonImpl) SitemapFactory.eINSTANCE.createButton(); + widget = buttonWidget; + setWidgetPropertyFromComponentConfig(widget, component, "row", SitemapPackage.BUTTON__ROW); + setWidgetPropertyFromComponentConfig(widget, component, "column", SitemapPackage.BUTTON__COLUMN); + setWidgetPropertyFromComponentConfig(widget, component, "stateless", SitemapPackage.BUTTON__STATELESS); + setWidgetPropertyFromComponentConfig(widget, component, "cmd", SitemapPackage.BUTTON__CMD); + setWidgetPropertyFromComponentConfig(widget, component, "releaseCmd", + SitemapPackage.BUTTON__RELEASE_CMD); + break; case "Default": DefaultImpl defaultWidget = (DefaultImpl) SitemapFactory.eINSTANCE.createDefault(); widget = defaultWidget;