Simple Settemp Listwidget

Simple but useful listitem widget for temperature setting via stepper and displaying the current value.
The Standard Stepper listitem is out of the box not capable to handle another value. With the widget it is also easy to use global min/max values for the stepper.

Default Values can be set if no properties are given. So it’s quite usable without any customizing.

icon: “=props.seticon ? props.seticon : ‘f7:house_alt_fill’”

Influde it e.g. via items file:

 Number        Temp_Flur      "Temp Flur [%.1f °C]"    <temperature> (KNXDevice) ["Temperature",   "Measurement"]   { channel="knx:device:bridge:generic:KNXTemp_Flur" }
 Number        Set_Temp_Flur      "Temp Flur [%.1f °C]"    <temperature> (Flur) ["Temperature",   "Setpoint"]   { channel="knx:device:bridge:generic:KNXTemp_Flur_Soll", listWidget="widget:Temp_list_widget" [title="Set my temp Flur", isttemp="Temp_Flur", icon="oh:temperature]}

Screenshots

none

Changelog

Version 0.1

  • initial release

Resources

uid: Temp_list_widget
tags:
  - list
  - temperature
props:
  parameters:
    - description: The label for the widget
      label: Title
      name: title
      required: false
      type: TEXT
    - context: item
      description: The temperature item
      label: Item
      name: item
      required: false
      type: TEXT
    - context: item
      description: Current Temp
      label: Current temperature
      name: isttemp
      required: false
      type: TEXT
    - description: Icon
      label: List Icon
      name: seticon
      required: false
      type: TEXT
    - description: Min Value
      label: Min
      name: minset
      required: false
      type: TEXT
    - description: Min Value
      label: Max
      name: maxset
      required: false
      type: TEXT
    - description: Min Value
      label: step
      name: stepset
      required: false
      type: TEXT
  parameterGroups: []
timestamp: Jan 25, 2022, 1:34:25 PM
component: oh-stepper-item
config:
  icon: "=props.seticon ? props.seticon : 'f7:house_alt_fill'"
  title: "=props.title ? props.title : props.item"
  item: =props.item
  subtitle: =items[props.isttemp].displayState
  round: =1
  min: "=props.minset ? props.minset : 7"
  max: "=props.maxset ? props.maxset : 25"
  step: "=props.stepset ? props.stepset : 0.5"
1 Like