Skip to content

SensorDigitalOutput relay trigger #475

Open
@Xedecimal

Description

@Xedecimal

When booting up, if there's a Low Trigger relay hooked up, it'll switch on immediately. Not good for a garage door opener. I think I found a solution for this though!

During our setup we run opener.setInvertValueToWrite(ON); to flip the config. However when calling SensorDigitalOutput::onSetup(), there's a line of code that doesn't care about that setting.

setStatus(OFF);

I think this should be more like the if (_invert_value_to_write) value = !value; in the _switchOutput method to write ON instead. Does this sound right ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions