I just ceated a custom button to send an mqtt message upon click (see code below). However, When I click the button I get the following error: “Failed to call service mqtt/publish. must contain at least one of topic, topic_template”. Can’t figure it out…
show_name: true
show_icon: true
card_size: 1
type: custom:button-card
name: Feed Max
tap_action:
action: call-service
service: mqtt.publish
service-data:
topic: set/relay/feed
payload: 20
qos: 1
retain: 0
icon: mdi:dog
show_state: false
styles:
card:
- height: 100px