denysdovhan / vacuum-card

Vacuum cleaner card for Home Assistant Lovelace UI
https://denysdovhan.com/smart-home
MIT License
864 stars 525 forks source link

[FEATURE]: Ability to disable/enable specific default buttons and fan speed display #588

Closed ahuffman closed 7 months ago

ahuffman commented 10 months ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like I'd like to be able to disable specific buttons such as 'dock' in the default display.

I'd also like to be able to control the display of the fan speed + select drop down with a value template or disable it all together.

Default: image

Cleaning: image

Describe alternatives you've considered Just living with the non-prettified text and ignoring the dock button :).

Additional context I'm using the Maytronics MyDolphin Plus integration (swimming pool vacuum) from HACS with this card. Here is my code for reference:

type: custom:vacuum-card
entity: vacuum.huffbot
stats:
  default:
    - entity_id: sensor.huffbot_cycle_count
      subtitle: Cycles Completed
    - entity_id: sensor.huffbot_clean_mode
      subtitle: Mode
      value_template: |
        {% if value == "ultra" %}Ultra Clean{% endif %}
        {% if value == "short" %}Fast Mode{% endif %}
        {% if value == "floor" %}Floor Only{% endif %}
        {% if value == "water" %}Water Line{% endif %}
        {% if value == "all" %}Regular{% endif %}
        {% if value == "pickup" %}Pickup{% endif %}
    - entity_id: sensor.huffbot_status
      subtitle: Status
      value_template: |
        {% if value == "init" %}Initializing{% endif %}
        {% if value == "off" %}Off{% endif %}
        {% if value == "cleaning" %}Cleaning{% endif %}
  cleaning:
    - entity_id: sensor.huffbot_clean_mode
      subtitle: Mode
      value_template: |
        {% if value == "ultra" %}Ultra Clean{% endif %}
        {% if value == "short" %}Fast Mode{% endif %}
        {% if value == "floor" %}Floor Only{% endif %}
        {% if value == "water" %}Water Line{% endif %}
        {% if value == "all" %}Regular{% endif %}
        {% if value == "pickup" %}Pickup{% endif %}
    - entity_id: sensor.huffbot_cycle_time
      subtitle: Cycle
      value_template: '{{ value | float(0) / 60 }}'
      unit: Hour
    - entity_id: sensor.huffbot_cycle_time_left
      subtitle: Remaining
      value_template: '{{ ( value | float(0) / 60) | round }}'
      unit: Minutes
    - entity_id: select.huffbot_led_mode
      subtitle: LED Mode
      value_template: |
        {% if value == "1" %}Blinking{% endif %}
        {% if value == "2" %}Always On{% endif %}
        {% if value == "3" %}Disco{% endif %}
    - entity_id: number.huffbot_led_intensity
      subtitle: LED Intensity
      unit: '%'
image: /local/robot_icon_c.svg
show_status: false
show_name: true
github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue. Thank you for your contributions!

github-actions[bot] commented 7 months ago

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.