Hey,
I have a challenge.
I want to register when someone took out, or took in the Garbage Bin. Therefor I want the person in question to click on this button below.
As you see, that invokes a trigger call-action, that selects an option in the helper input_select.gft_bak_buiten_gezet, either Martin, Fleur or Steijn.
I know that I have to give the option as data, but it is now hardcoded.
I thought that {{user}}
might do the trick but it doesn’t.
Can anyone help me out, or has a clue how to achieve this?
type: custom:button-card
entity: sensor.circulus_pmd
name: Plastic
show_state: true
color: orange
styles:
card:
- height: 120px
- padding-bottom: 10%
state:
- padding-top: 2%
- font-size: 14px
icon:
- width: 50%
state:
- value: Vandaag
color: white
styles:
card:
- background-color: orange
state:
- color: black
name:
- color: black
- font-weight: 800
- value: Morgen
color: white
styles:
card:
- background-color: orange
state:
- color: black
name:
- color: black
- font-weight: 800
icon:
- animation: blink 5s ease infinite
tap_action:
action: call-service
service: input_select.select_option
target:
entity_id: input_select.gft_bak_buiten_gezet
data:
option: Fleur
double_tap_action:
action: navigate
navigation_path: /dashboard-voorbeeld/circulus