-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to link it with an entity ? #11
Comments
Hi. The momentary switch is just a standard switch so you can use type: button
name: Test Momentary Switch
show_state: false
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: switch.momentary_test |
I have the same problem I want to open my garage door without pressing my shelly switch (switch.shelly1) multiple times I have created the momentary switch in the config.yaml |
@twrecked I get that momentary switches are stand alone, but it would be awesome to have an optional config definition that allows us to specify an entity that the momentary switch will then control. This would save us creating automations in addition to momentary switches.
|
@cba64 @jsnfwlr you can try this https://github.com/egorgam/hass-momentary you can run call any entity like this:
|
Hello, I have also performed the installation according to the instructions and also do not get any error messages when checking the configuration. Where should I find it? I did it in this way. Where could I find the "MomTest" Switch in HA? momentary: switch:
Thanks and greetings |
Hello,
I have added a switch as per the documentation.
However, I don't understand how to link this to an entity ?
Ultimate goal is to display a button on lovelace that would trigger this switch
Thanks for your help !
The text was updated successfully, but these errors were encountered: