Presence

A simple presence list widget that shows the presence (green) or away (red) state of a person using color and a badge. It works with Switch Items

Changelog

Version 0.1

  • initial release

Resources

uid: rlk_presence_list
tags:
  - list
  - presence
props:
  parameters:
    - description: The label for the widget
      label: Person
      name: title
      required: false
      type: TEXT
    - context: item
      description: The presence switch Item
      label: Item
      name: item
      required: false
      type: TEXT
  parameterGroups: []
timestamp: Feb 2, 2021, 4:00:22 PM
component: oh-label-item
config:
  icon: f7:person_circle
  iconColor: '=(items[props.item].state == "ON") ? "green" : "red"'
  color: '=(items[props.item].state == "ON") ? "yellow" : "gray"'
  title: =props.title
  item: =props.item
  badgeColor: '=(items[props.item].state === "ON") ? "green" : "red"'
  badge: '=(items[props.item].state === "ON") ? "PRESENT" : "AWAY"'
1 Like

@rlkoshak Hi Rich,

thanks! awesome widget. Does it also work with β€œ0” and β€œ1”?
I have implemented my presence switch with digital numbers not with the β€œON” and β€œOFF” strings.
And may I kindly ask you to provide a sitemap example?

Cheers
Justus

You’ll have to edit the widget to use β€œ0” and β€œ1”. This is a MainUI widget and will not work with sitemaps.

Ok, thanks for the info! I apologize that I am not yet so familiar with the new MainUI :slight_smile: