I need to switch one gpio port OFF automatically 5 seconds after it is switched ON (by Home Assistant or externally).
What I have is:
switch:
platform: rpi_gpio
ports:
4: MyFirstSwitch
Could someone help how to program the respective automation section. I’ve read the documentatoin and tried some solutions, but cannot get working configuration file. It is my first expirience with Hass.