What is the easiest way to invert the status of the garage door magnetic reed switch (door contact sensor) to read from Closed to Open when the the switch is closed?
What are the chances of adding a sensor swap switch in the device main page much like the relay or the safe mode switch. This way people can choose how the sensor works for them.
Tried the "Swap "COVER_OPEN" and "COVER_CLOSED" could not get it to work. (It does invert the open/close button/symbol, It does not invert the contact sensor)
Kind of an ambiguous statement, I might have done it wrong.
What are the chances of adding a sensor swap switch in the device main page much like the relay or the safe mode switch. This way people can choose how the sensor works for them.
Tried the "Swap "COVER_OPEN" and "COVER_CLOSED" could not get it to work. (It does invert the open/close button/symbol, It does not invert the contact sensor)
Kind of an ambiguous statement, I might have done it wrong.
Changing the " inverted: false" also failed.
binary_sensor:
- platform: status
name: "Status"
- platform: gpio
name: "Contact"
disabled_by_default: true
device_class: garage_door
id: contact
pin:
number: GPIO4
inverted: true
filters:
- delayed_on: 20ms
Any pointers would be appreciated..
Swap "COVER_OPEN" and "COVER_CLOSED"
https://github.com/athom-tech/athom-configs/blob/2bf3567ddb25fc35174efd693a1cc5afa8626a1b/athom-garage-door.yaml#L100