Skip to content

Switch relays on on_press - turn off on_release #71

Open
@Telk0

Description

@Telk0

Hello,

Im having issues adding this to the yaml.
the relay first toggles on release and then instant off again.
i need to toggle the relay on when holding the button and off when releasing to be able to control a dimmer.
I have no experience coding and adding on_release to the "button left" and "button right" is not doing the magic.
Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions