I don’t consider that similar.
My current workflow I use the Sleep as Android app, I click “Start sleep tracking” and the lights go off (+ other stuff). When the app wakes me up the lights come on. The app has support for Tasker’s plugin system, which makes it easily possible. I could use Automate, another proprietary app, but prefer Tasker thanks to the support I received from the dev (in fact I’ve received good support from both Sleep and Tasker).
If I was to switch to a physical setup that required an NFC tag, I’d probably still use Tasker to initiate sleep tracking in Sleep as Android.
djdarren@piefed.social 6 hours ago
Meanwhile, I just have a big button on my Home Assistant home screen on my phone that turns off all my lights. It’s great.