Custom widget: Value display with flashing background

This widget is intended to work with string or number based state machines. It displays the state of the item, has a button to issue a command, and blinks the background when the item state matches a specified value.

The image below shows how this can be used for tracking the state of appliances such as a washing machine. The attention value is “Complete” and the “Reset” button issues the command “Off”. (The transitions from “Off” to “Active” to “Complete” are managed using a rule. An example of this is covered in another forum post.)

This widget is available from GitHub:
https://github.com/jmsjones/habpanel-widgets/blob/master/attention-with-button.widget.json

11 Likes