question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

custom_buttons not working, missing 'data'

See original GitHub issue

When adding a custom button as follows:

type: custom:valetudo-map-card
entity: camera.map_data
vacuum_entity: vacuum.valetudo
custom_buttons:
  - service: mqtt.publish
  - service_data:
      topic: /valetudo/robot/GoToLocationCapability/go/set
      payload: ae0ccd4b-b077-4a94-8c54-511441da18aa

I get the error: Failed to call service mqtt/publish. required key not provided @ data['topic'] I also tried data instead of service_data am I doing something wrong? Also it doesn’t matter what kind of icon I use it will always use: mdi:radiobox-blank

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
TheLastProjectcommented, Jan 19, 2022

You’re probably best of waiting for or helping with #108.

1reaction
TheLastProjectcommented, Sep 8, 2021

Works fine for me:

custom_buttons:
  - service: mqtt.publish
    icon: mdi:home
    service_data:
      topic: /valetudo/robot/GoToLocationCapability/go/set
      payload: ae0ccd4b-b077-4a94-8c54-511441da18aa
Read more comments on GitHub >

github_iconTop Results From Across the Web

CustomButton in Full Calendar is not displayed - Stack Overflow
I am having a problem in FullCalendar, I ...
Read more >
Custom Buttons not showing in Lightning but shows up in ...
I recently hid a custom button from Lightning and enabled it back again in the page layouts. But it does not show in...
Read more >
Custom buttons not showing — DataTables forums
I'm keen to ditch my non-datatables buttons and use yours instead. I'm using the cdn with javascript: buttons and buttons.print.
Read more >
Custom buttons not working? : r/twinegames - Reddit
I'm trying to make a simple rpg where you can create your character. I was able to get it to work with the...
Read more >
Custom buttons in ArcGIS Hub pages no longer working
Solved: Hi, We have created custom collapsible buttons within a text card on several hub pages. They were working fine until today, so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found