Skip to content

Component Reference ​

System Widget Library ​

ComponentNameDescription
oh-buttonButtonButton performing an action
oh-chartChartVisualize series of data
oh-clockDigital ClockDisplay a digital clock
oh-colorpickerColorpickerControl to pick a color
oh-contextContextNon-rendered component with functions, constants, and scoped variables for widgets
oh-gaugeGaugeCircular or semi-circular read-only gauge
oh-iconIconDisplay an openHAB icon
oh-imageImageDisplays an image from a URL or an item
oh-inputInputDisplays an input field, used to set a variable
oh-knobKnob & Rounded SliderAllows to change a number value on a circular track or a rounded slider
oh-linkLinkLink performing an action
oh-listListList control, hosts list items
oh-playerMedia playerMedia player controls, with previous track/pause/play/next buttons
oh-repeaterRepeaterIterate over an array and repeat the children components in the default slot
oh-rollershutterRollershutterRollershutter control, with up/down/stop buttons
oh-sipclientSIP ClientSIP Client to start and answer SIP calls
oh-sliderSliderSlider control, allows to pick a number value on a scale
oh-stepperStepperStepper control, allows to input a number or decrement/increment it using buttons
oh-swiperSwiperSwiper control, allows to display multiple swipeable slides
oh-toggleToggleToggle control, allows to switch on or off
oh-trendTrend lineTrend line to display the overall recent evolution of an item
oh-videoVideoDisplays a video player from a URL or an item
oh-webframeWeb frameDisplays a web page in a frame

Standard Widget Library (Standalone Cards) ​

ComponentNameDescription
oh-cardCardThe basic structure of all card widgets, providing title and footer and requiring a content slot
oh-clock-cardDigital Clock CardDisplay a digital clock in a card
oh-colorpicker-cardColor Picker CardDisplay a color picker in a card
oh-gauge-cardGauge CardDisplay a read-only gauge in a card to visualize a quantifiable item
oh-image-cardImage CardDisplay an image (URL or Image item ) in a card
oh-input-cardInput CardDisplay an input in a card
oh-knob-cardKnob & Rounded Slider CardDisplay a knob or a rounded slider in a card to visualize and control a quantifiable item
oh-label-cardLabel CardDisplay the state of an item in a card
oh-list-cardList CardDisplay a list in a card
oh-player-cardPlayer CardDisplay player controls in a card
oh-rollershutter-cardRollershutter CardDisplay rollershutter controls in a card
oh-sipclient-cardSIP Client CardSIP Client to start and answer SIP calls
oh-slider-cardSlider CardDisplay a slider in a card to control an item
oh-stepper-cardStepper CardDisplay a stepper in a card to control an item
oh-swiper-cardSwiper CardDisplay a swiper allowing to browse slides, in a card
oh-toggle-cardToggle CardDisplay a toggle swtich in a card to send ON/OFF commands
oh-video-cardVideo CardDisplay a video (URL or URL from String item) in a card
oh-webframe-cardWeb Frame CardDisplay a web page in a card

All cards are based on the oh-card component and share the same config options for modifying the card's appearance. Refer to the oh-card Style documentation to learn about card styling options.

Standard Widget Library (List Items) ​

ComponentNameDescription
oh-colorpicker-itemColor Picker List ItemDisplay a color picker in a list
oh-input-itemInput List ItemDisplay an input field in a list
oh-label-itemLabel List ItemDisplay the state of an item in a list
oh-list-itemList ItemA list item
oh-player-itemPlayer List ItemDisplay player controls in a list
oh-rollershutter-itemRollershutter List ItemDisplay rollershutter controls in a list
oh-slider-itemSlider List ItemDisplay a slider control in a list
oh-stepper-itemStepper List ItemDisplay a stepper control in a list
oh-toggle-itemToggle List ItemDisplay a toggle switch in a list

Standard Widget Library (Cells) ​

ComponentNameDescription
oh-cellCellA regular or expandable cell
oh-colorpicker-cellColorpicker CellA cell expanding to a color picker
oh-knob-cellKnob & Rounded Slider CellA cell expanding to a knob or rounded slider control
oh-label-cellLabel CellA cell with a big label to show a short item state value
oh-rollershutter-cellRollershutter CellA cell expanding to rollershutter controls
oh-slider-cellSlider CellA cell expanding to a big vertical slider

Layout Components ​

ComponentNameDescription
oh-blockLayout Grid BlockA block in a grid layout
oh-canvas-itemCanvas ItemSpecific attributes to display widgets on a canvas.
oh-canvas-layerCanvas LayerLayer for grouping widgets in canvas
oh-canvas-layoutCanvas LayoutPosition widgets on a canvas layout with arbitrary position and size down to pixel resolution
oh-grid-colLayout Grid ColumnA column in a grid layout
oh-grid-layoutFixed Grid LayoutArranges widgets on a grid of squares with user-defined sizes
oh-grid-rowLayout Grid RowA row in a grid layout
oh-masonryMasonry LayoutArranges widgets automatically depending on the screen size

Map Page & Markers ​

ComponentNameDescription
oh-map-circle-markerCircle MarkerA circle on a map, to represent a radius
oh-map-markerMap MarkerAn icon on a map
oh-map-pageMap pageDisplays markers on a map

Floorplan Page & Markers ​

ComponentNameDescription
oh-plan-markerFloor Plan MarkerA marker on a floor plan
oh-plan-pageFloor planDisplays markers on an image overlay

Chart Page & Components ​

ComponentNameDescription
oh-chart-pageChart PageVisualize historical series
oh-chart-gridCartesian Grid
oh-category-axisCategory Axis
oh-value-axisValue Axis
oh-time-axisTime Axis
oh-calendar-axisCalendar
oh-data-seriesData Series
oh-time-seriesTime Series
oh-state-seriesState Series
oh-aggregate-seriesAggregate Series
oh-calendar-seriesCalendar Series
oh-chart-tooltipTooltip
oh-chart-visualmapVisual Map
oh-chart-datazoomData Zoom
oh-chart-legendLegend
oh-chart-titleTitle
oh-chart-toolboxToolbox

Home Page Cards ​

ComponentNameDescription
oh-location-cardLocation CardA card showing model items in a certain location
oh-equipment-cardEquipment CardA card showing model items belonging to a certain equipment class
oh-property-cardProperty CardA card showing model items related to a certain property