#Help with reseting a input_bolean

1 messages · Page 1 of 1 (latest)

stoic elbow
#

Im trying to make a card that counts the days since last watering my plants, ive made the card and the counter and that works, ive also made a reset function for at for when i push it the counter resets. My problem is when i push the card the state for the reset action changes to on instead of off and then i cant push it again, so i need some help for it to go back to off when it's been activated.

https://pastebin.com/rJD9d78M

wispy wren
#

seems like you want a button

stoic elbow
#

I have the button but when i press it the reset function stays at on so i cant press it again when i need to reset it again

#

ive made it with help from chatgpt so i have no clue if its the wrong way im doing it

wispy wren
#

button cards don't work that way

#

they have a tap_action

stoic elbow
#

yeah but could a make a new automation for the reset functon to resets itself after its been activated ?

wispy wren
#

what you're doing seems too complicated

#

use a button to call a script to do what you want, rather than using the input_boolean

#

it's unnecessary and is causing this problem

chrome island
#

That automation triggers on turn on of

  - entity_id: input_boolean.reset_vanding

The first action should be to turn that off...

#

Then

when i press it the reset function stays at on so i cant press it again when i need to reset it again

#

won''t happen

stoic elbow
#

@chrome island oh i will try that thx

wispy wren
#

still, I submit that alias: Nulstil tæller ved vanding should be a script and not an automation, and that you just call the script from teh button card

#

and get rid of the input_boolean completely

#

but do what you and ChatGPT feel most comfortable doing

chrome island
#

Agree with that, but this was easier to explain and I didn't want to upset out AI overlords.