custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

Repeat - issue with units #649

Closed BertPorter closed 1 year ago

BertPorter commented 1 year ago

This works:

type: custom:button-card
hold_action:
  action: call-service
  service: script.brightness_down
  data: {}
  target: {}
  repeat: 200ms

This doesn't work:

type: custom:button-card
hold_action:
  action: call-service
  service: light.turn_on
  service_data:
    entity_id: light.rgbw_04_5
    brightness_step_pct: -10
  repeat: 200ms

When I remove "ms" from "repeat: 200ms", the second one works also.

RomRider commented 1 year ago

repeat should be a number, so just 200.