No announcement yet.

Set Counter

  • Filter
  • Time
  • Show
Clear All
new posts

  • Set Counter

    Is there a way via a script to set a counter to a specific value?

  • #2
    Does not look to be according to the help file, only increment/decrement/reset and return a value. You could put a feature request in to ask for this as I am sure it would come in useful to people.

    A dirty hack would be to query the current value, find out what you want to set it to, work out whether that is less than/greater than and then increment/decrement until you reach that value. That would probably be a few lines in a script but should get you there.
    My Plugins:

    Pushover 3P | DoorBird 3P | Current Cost 3P | Velleman K8055 3P | LAMetric 3P | Garadget 3P | Hive 3P |
    Yeelight 3P | Nanoleaf 3P