Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom "start/play" button - Feature Request #148

Open
ich777 opened this issue Oct 18, 2023 · 0 comments
Open

Custom "start/play" button - Feature Request #148

ich777 opened this issue Oct 18, 2023 · 0 comments

Comments

@ich777
Copy link

ich777 commented Oct 18, 2023

Hi,

would it be somehow be possible to have a customizable start button that can be displayed in the spot where the built in one is located?

Currently I have removed the built in start button because I've created a Helper in HomeAssistant where I can specify the iterations and as you can see the "play" button is in front of all buttons:
grafik

My code for the vertical stack card looks like that currently:

vacuum: valetudo_dreamed10spro
type: custom:valetudo-map-card
title: Dreame D10s Pro
show_status: false
show_battery_level: false
show_start_button: false
show_locate_button: false
custom_buttons:
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["3", "5", "1", "2", "6", "4"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:play
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["3"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:sofa
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["2"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:bed-queen
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["1"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:bed-king
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["5"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:door
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["4"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:stove
  - service: mqtt.publish
    service_data:
      topic: valetudo/DreameD10sPro/MapSegmentationCapability/clean/set
      payload_template: >-
        {"segment_ids": ["6"], "iterations": {{
        states('input_number.vacuum_wiederholungen') | int }}, "customOrder":
        true}
    icon: mdi:shower

There you can see that I push the topics directly with custom buttons and it would be really cool to be able to move the "play" button in the default spot, I also removed the locate button because it looks a bit odd if it is alone up there.

Hope that makes sense and is something that is considered as a feature and could be done.

Thanks,
Christoph

@ich777 ich777 changed the title Custom "play" button - Feature Request Custom "start/play" button - Feature Request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant