Using the Sonoff RF Bridge with Tasmota I receive the RF code from a doorsensor which is shown in my card. So far so good. For now I use this code in configuration.yaml which shows the received RF code:
I’m struggling to find a solution how to display the door status: Display an icon for door open (mdi door-open) or door closed (mdi door-closed) with the local time the status has changed.
Taras, I’m a bit confused by this.
Why would anyone want to know only if a door is open, and not want to know when it’s closed ?
I suppose an armed security system could trigger from the open but how do you reset it if you don’t know the doors/windows are shut ?
Just trying to picture a usage scenario
Some battery-operated sensor hardware works like that. In an effort to conserve its battery, it only transmits the “active” state (motion detected, something’s open, etc).
@Tom: Your new code is okay and generates no errors, thanks!
@ Mutt: Please see below, it works with my sensor which sends open AND close
@ Taras: My Google searches were not perfect so I did not find the page your mentioned. The info on that page is correct and it works, thanks! The code I use now: