Skip to content
Discussion options

You must be logged in to vote

This is a workaround: I made a script which does not require parameter and I'm calling it from button..

The script:

alias: Set last watering date
sequence:
  - action: input_datetime.set_datetime
    metadata: {}
    data:
      date: "{{ now().date() }}"
    target:
      entity_id: input_datetime.last_watering_date
description: ""

Bubble card:

type: custom:bubble-card
card_type: button
button_type: state
entity: input_datetime.last_watering_date
tap_action:
  action: perform-action
  perform_action: script.set_last_watering_date
  data: {}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Clooos
Comment options

Answer selected by Clooos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment