Script error "not a valid value for dictionary value @ data['entity_id']"

I for 1, never want it. How do I sign up for that?

1 Like

Game, Set and Match

I have a similar problem, I would like to make a stripe button-card to start the timers I use in my kitchen, but I don’t want an extra press to restart the timer, because a press should only work if the timer is idle
button-card code

type: custom:button-card
aspect_ratio: 1.2
color: red
color_type: card
entity: timer.kitchen_002_aeg_hardkogte
name: Hård kogte æg
haptic: success
tap_action:
  action: call-service
  service: script.timertest
  service_data:
    thetimer: timer.kitchen_002_aeg_hardkogte
hold_action:
  action: call-service
  service: timer.cancel
  service_data:
    entity_id: timer.kitchen_002_aeg_hardkogte
show_last_changed: true
show_state: true

and here hassio script:

alias: timertest
sequence:
  - condition: state
    entity_id: timer.kitchen_002_aeg_hardkogte
    state: idle
  - service: timer.start
    data: {}
    target:
      entity_id: "{{ thetimer}}"
mode: single

I would like to replace:

  - condition: state
    entity_id: timer.kitchen_002_aeg_hardkogte
    state: idle

with:

  - condition: state
    entity_id: "{{ thetimer}}"
    state: idle