Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106401

How to call services from a UI button?

$
0
0

I am trying to call a service from the UI when pressing a button. In the service editor, the service call looks like this:

service: input_select.select_option
data:
  option: away
target:
  entity_id: input_select.presence_mode

Following the documentation, I put this card together:

          - type: button
            tap_action: call-service
            service: input_select.select_option
            service_data:
              entity_id: input_select.presence_mode
              option: 'away'

However, pushing the button doesn’t set the value of the input select. What am I doing wrong?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106401

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>