Temperature °F

A simple list widget that changes color with the temperature. It currently is hard coded to use °F. The color changes to: > 75 red, 55 to 75 orange, 32 to 55 blue, < 32 purple.

Screenshots



Changelog

Version 0.1

  • initial release

Resources

uid: rlk_temperature_list
tags:
  - list
  - temperature
props:
  parameters:
    - description: Widget title
      label: Title
      name: title
      required: false
      type: TEXT
    - context: item
      description: Item to display
      label: Item
      name: item
      required: false
      type: TEXT
  parameterGroups: []
component: oh-label-item
config:
  icon: f7:thermometer
  iconColor: '=(Number.parseFloat(items[props.item].state) > 75) ? "red" : (Number.parseFloat(items[props.item].state) > 55) ? "orange" : (Number.parseFloat(items[props.item].state) > 32) ? "blue" : "purple"'
  title: =props.title
  item: =props.item
  action: analyzer
  actionAnalyzerCoordSystem: time
  actionAnalyzerItems: =[props.item]