Hello. I have a script that started, but when it comes to the actions I don't know how to do it. I think it will require templating. Was hoping someone may find it interesting enough to lend a hand.
Here's the first part of it:
alias: "Convert time spent: Work Training into Personal Education Credits"
sequence: []
mode: single
icon: mdi:cash-fast
Here's the part that I don't know how to code. Basically I just want to take the value from a number input box that's on a dashboard, divide it by 3 and then add that value to another counter. Oh yeah and then clear the input number field after it's done so that it can be re-used again.
$credits_to_add = "input_number.minutes_to_add" / 3
add $credits_to_add to "counter.time_credits_personal_education"
clear "input_number.minutes_to_add"