Momentary Switch - twrecked-hass-momentary, Please dont laugh

Hello - New HA user

I have a Garage Door switch module (Qubino D1) I have created a switch in HA which works but doesnt turn off it remembers last state in HA so I want to set up a momentary switch

I have installed the twecked/hass-momentary component and I thought I had followed the instructions but I am missing something

It also says put Momentary in the configuration.yaml but I get this message
image

Where does this go - configuration.yaml or config/momentary_init_py or somewhere else
switch:

  • platform: momentary
    name: Empty House Trigger
    mode: “on”
    toggle_for: 5
    cancellable: True

I have it in my _init_py file and it has created a switch entity but I cant do anything with it, how do I connect it with my garage door switch entity

thanks

Have you restarted after installing the component, but before adding the code to configuration.yawl?

Not sure, I’ll uninstall and try again, thank you

No need to reinstall. I’m saying, remove what you added to configuration.yaml, reboot, and then re-add the lines to configuration.yaml. It should no longer say it can’t be found.

Ok well I removed Momentary: from configuration.yaml and restarted HA and I still get the same message when I add Momentary: back in the Configuration.yaml

Either I am missing something - probably
or it doesnt work

You said reboot…I restarted HA I didnt reboot my Dell

Sorry for my confusion. Are you saying you:

  1. You installed the hass-momentary component using HACS.
  2. Then restarted Home Assistant
  3. Then added to configuration.yaml this:
momentary:
  1. Restarted Home Assistant
  2. Then added this to configuration.yaml:
switch:
  - platform: momentary
    name: Empty House Trigger
    mode: "on"
    toggle_for: 5
    cancellable: True
  1. And then when you go to restart Home Assistant again, it says "Momentary-Integration ‘Momentary’ not found?

yes thats correct, but I added the switch into init.py under custom_components/momentary

and nothing in the configuaration.yaml because I cant restart HA because I get Momentary integration not found message

thank you for the replies

Would a Button fulfill your requirements?

Thanks it might do, I’ll take a look, thanks

I’d still like to know why the momentary Switch thing isnt working though :wink: