I’m trying to update a date (helper) with a button (widget).
Whats wrong with this code?
show_name: true
show_icon: true
type: button
entity: input_datetime.test
tap_action:
action: call-service
service: input_datetime.set_datetime
data:
date: '{{ now().strftime(''%Y-%m-%d'') }}'
target:
entity_id: input_datetime.test
hold_action:
action: more-info