custom:appliance-foot-massager-card

Shiatsu foot massager seen from above: two foot wells with their kneading rollers (they move up and down, faster at a higher level), the dashed frame and the side air cushions of the air compression (they pulse), and an orange glow when the heating is on. The control strip of the illustration copies the real one: duration LEDs (15 / 30 min), L / M / H LEDs for the kneading and the air compression, and rings that light up for the heating and the power. Below, a large remaining time with a progress bar, and one button per function, like the remote: Power, Time, Heat, Kneading, Air compression.
Made for devices controlled by an infrared remote with no state feedback (Harmony, Broadlink, HarmonyNG…) as well as connected massagers with real entities. Every entity is optional.
Each function takes an entity (entity_…) or an action (action_…, any Home Assistant action such as remote.send_command). The button then does:
| Entity type | Press |
|---|---|
button, input_button |
press |
script, scene |
turn_on |
switch, input_boolean, fan, light |
turn_on / turn_off for power and heating, toggle otherwise |
select, input_select |
the next option (kneading and air: Low → Medium → High → Off) |
number, input_number |
the next level 0 → 1 → 2 → 3 → 0 (a scale wider than 3 is scaled), the next duration for the timer |
| anything else | opens the more-info dialog |
Kneading and air compression go Off → Low → Medium → High → Off, the duration goes through durations (15 → 30 → 15), as on the device.
With a button or a script the card cannot read the state, so it remembers the commanded state: power, heating, levels and duration follow your presses (kept in the browser, so they survive a page reload, but they are not shared between devices). It starts a countdown of the chosen duration when you power on (default_duration, 15 min) and shows the device off when it ends, as the massager stops by itself. The badge says the state is estimated. If the massager is started with its own remote, press Power twice to resynchronize, or add a real status entity (see below). assumed_state: false turns this memory off.
As soon as a real entity gives the information, it takes over from the estimate:
entity_status (switch, binary_sensor or sensor: on / off) or entity_switch as a switch: power. Without them, entity_power (W above off_threshold, 5 W) gives the state. A power bank or a smart plug with a power sensor is enough.entity_heat as a switch / binary_sensor: heating.entity_kneading, entity_air as a select / number / text sensor: level (Off / Low / Medium / High, or 0 to 3).entity_timer as a select / number / sensor: chosen duration in minutes.entity_remaining: remaining time (minutes, H:MM:SS, or a timer helper, whose countdown is live).| Option | What it does |
|---|---|
entity_status, entity_switch, action_switch |
power |
entity_timer, action_timer, durations ([15, 30]), default_duration (15) |
duration choice and its cycle |
entity_heat, action_heat |
heating |
entity_kneading, action_kneading |
shiatsu kneading level (L / M / H) |
entity_air, action_air |
air compression level (L / M / H) |
entity_remaining |
remaining time |
entity_power, entity_energy, off_threshold (5 W) |
optional power and energy tiles (no power sensor is required) |
assumed_state (true) |
remember the commanded state for devices without feedback |
show_status, show_buttons, show_remaining, show_heat, show_kneading, show_air, show_timer, show_power, show_energy |
turn the badge, the buttons, the remaining time and the tiles on or off. The heating, kneading, air and duration tiles only appear when the buttons are hidden (show_buttons: false or compact: true) |
compact, animations, labels, icons, language, illustration_size, transparent, tap_action, hold_action |
same as the other cards |
Infrared massager driven by Harmony buttons (HarmonyNG scripts or buttons):
type: custom:appliance-foot-massager-card
name: Foot massager
entity_switch: button.foot_massager_power
entity_timer: button.foot_massager_time
entity_heat: button.foot_massager_heat
entity_kneading: button.foot_massager_kneading
entity_air: button.foot_massager_air_compression
default_duration: 15
Same device, with a raw IR command (remote.send_command) instead of an entity:
type: custom:appliance-foot-massager-card
name: Foot massager
action_switch:
action: perform-action
perform_action: remote.send_command
target:
entity_id: remote.harmony_hub
data:
device: Foot massager
command: Power
action_kneading:
action: perform-action
perform_action: remote.send_command
target:
entity_id: remote.harmony_hub
data:
device: Foot massager
command: Kneading
Connected massager with real entities and a power sensor:
type: custom:appliance-foot-massager-card
entity_switch: switch.foot_massager
entity_heat: switch.foot_massager_heating
entity_kneading: select.foot_massager_kneading
entity_air: select.foot_massager_air
entity_remaining: sensor.foot_massager_remaining
entity_power: sensor.foot_massager_power