All tiles and entities card have several action possibilities, including the ability to call any action with preset parameters.
But, when using the “call action” action in a tile or card, there is no way to prompt the user for missing parameters! If I leave required parameters empty, the action call simply fails.
I have had to kludge something using browser_mod
to achieve something equivalent:
type: custom:mushroom-entity-card
entity: input_number.babby_formula_intake
primary_info: state
secondary_info: name
tap_action:
action: fire-dom-event
browser_mod:
service: browser_mod.popup
data:
title: Record formula
right_button: Save
right_button_action:
service: script.record_babby_formula_intake
data: {}
content:
- name: formula
label: How much formula did the baby drink
selector:
number:
min: 0
max: 1000
unit_of_measurement: mL
mode: box
hold_action:
action: more-info
double_tap_action:
action: none
name: Last formula
I believe if there was a mechanism to build custom forms similar to what browser_mod cobbled together, but built into HA, it would create magnificent user experiences not possible today.