How would one get a toggle action from a button and also to a call-service? I.E. how to get multiple actions from a tap? I’m a newbie so not sure what options are available. Thanks
Put the multiple actions in a script and call the script from the tap action.
1 Like
Thanks for the reply. Tried different means but no success, tried mutiple actions but think it is expection multiple services? I’m sure I don’t have the right syntax. How to give a reference to the script so it can toggle the pushed button? Thanks
The button card
type: button
name: manually drop feeder
tap_action:
action: call-service
service: script.drop_feeder
service_data: {}
target: {}
entity: input_boolean.feeder_actuator
icon: 'mdi:transfer-down'
Script
drop_feeder:
sequence:
- service: want to toggle button here
- service: mqtt.publish
data:
topic: feeder/actuator/set
payload: down
entity: input_boolean.feeder_actuator
mode: single
alias: drop_feeder