@feezal/feezal-element-eink-state
v3.0.2
Published
On/off state tile for e-paper feezal dashboards — solid inverted block while active, full-tile tap target publishes payload-on/payload-off
Downloads
414
Maintainers
Readme
@feezal/feezal-element-eink-state
On/off state tile for e-paper feezal dashboards. Part of the e-ink family (@feezal/feezal-elements-eink). Active state renders as a solid inverted block — unmissable across a room on a 1-bit panel. The whole tile is the control: tapping publishes the opposite of the current state (payload-on / payload-off); the display follows the state topic, no optimistic update. Publishing is guarded in the editor.
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
| subscribe | topic | | State topic |
| message-property | string | payload | Dot-notation path into the MQTT message, e.g. payload.state |
| publish | topic | | Command topic; empty makes the tile display-only |
| label | string | | Caption above the state text |
| payload-on | string | ON | Payload meaning (and published for) ON |
| payload-off | string | OFF | Payload meaning (and published for) OFF |
| text-on | string | ON | Text shown while active |
| text-off | string | OFF | Text shown while inactive |
| inverted | boolean | off | Swap ink and paper for the whole tile |
Repeated state messages never touch the DOM (redraw dedup from @feezal/feezal-eink-base). Supports HA MQTT autodiscovery for switch.
License
MIT
