ha-appliance-electromenager-cards

Foot massager

custom:appliance-foot-massager-card

Foot massager card: off, kneading levels, air compression, heating, remaining time

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.

How the buttons work

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.

Devices without feedback (IR)

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.

Real entities

As soon as a real entity gives the information, it takes over from the estimate:

Options

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

Examples

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

← All cards