hd-socket
A plug and socket that snap together when it switches on and pull apart when it switches off, with a short pulse from the joint when power starts to flow. Reduced motion fades; e-ink snaps.
| Attribute | What it is |
|---|---|
on | Its state; a change snaps it in or pulls it out. Or a live capability of any device, followed: {{ settings.x.cap.onoff }}. |
power | Watts, e.g. {{ cap.measure_power.value }}; starting to flow pulses once. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}. |
size | CSS size, e.g. 18px; or set --size.Default 1em. |
label | Accessible label; otherwise “On” or “Off”. |
<hd-socket on="{{ cap.onoff }}" power="{{ cap.measure_power }}" size="48px"></hd-socket>