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: []
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

Given how different and more involved this widget is, why not post it as its own Marketplace. No one is ever going to find this here. It doesn’t do what I need from a widget so I’m not going to replace the OP version.

Furthermore, it’s a card widget and OP is a List Item widget so they can’t even be used in the same places.