Humidifier Switch


A simple widget to control a humidifier through a switch. The icon and switch toggle change color based on the state: ON blue, OFF gray.

Screenshots

Changelog

Version 0.1

  • initial release

Resources

uid: rlk_humidifier_switch_list
tags:
  - list
  - humidifier
props:
  parameters:
    - description: Name of the humidifier
      label: Name
      name: title
      required: false
      type: TEXT
    - context: item
      description: The humidifier switch Item
      label: Item
      name: item
      required: false
      type: TEXT
  parameterGroups: []
timestamp: Feb 3, 2021, 4:21:38 PM
component: oh-toggle-item
config:
  icon: f7:drop
  iconColor: '=(items[props.item].state == "ON") ? "blue" : "gray"'
  color: '=(items[props.item].state == "ON") ? "blue" : "gray"'
  title: =props.title
  item: =props.item