How can I define a push button, a momentary switch that gets back to off state after X seconds?
I have an Arduino integration that works and looks like this (in
switch: - platform: arduino pins: 2: name: auto_gate
The only issue I have is that I’d need this switch to get back to off state after 2-3 seconds.
I found some posts related to this and I’ve tried adding a
momentary attribute to PIN 2, but it’s not a recognized attribute.
I am a noob. Can you please explain step by step what and where to add.
I’m using hassio, default UI and I’m editing files through web File editor add-on.