Helpers in home assistant

hi,

I have a question about helpers in home assistant.
Is it possible to reset a helper after a period of time for example a switch

If I understand correctly your question, yes you can by using automation, you can reset (toogle) a switch in a specific state for a defined time.

automation:
  trigger:
    - platform: state
      entity_id: switch.office
      # Must stay "on" for 30 seconds
      to: "on"
      for: "00:00:30"
  action:
    - service: switch.toogle
      target:
         entity_id: switch.office

FYI, helpers in home assistant are: input_booleans, input_datetime, input_numbers, input_text, input_dropdown, counter and timer.

thank you for youre response.
But the automation doesn’t work for helpers.

What do you mean by “doesn’t work”, you can have an automation like this with input_boolean:

automation:
  trigger:
    - platform: state
      entity_id: input_boolean.office
      # Must stay "on" for 30 seconds
      to: "on"
      for: "00:00:30"
  action:
    - service: input_boolean.toggle
      target:
         entity_id: input_boolean.office

thanks, it works now.
switch —> boolean.

1 Like