I have it linked to my watch sleep mode. Hit sleep lights turn off.
Comment on A new quest appears...
Zikeji@programming.dev 16 hours agoHO? DJ you mean HA or something else I’m unfamiliar with? I didn’t see any option in the companion app or when creating and automation to trigger based on an Android intent.
Funky_Beak@lemmy.sdf.org 15 hours ago
nodiratime@lemmy.world 15 hours ago
Sorry, I meant HA. I just recently set this up, it’s not 100% the same, but very, very similar. I have some wake up system, and when I go to bed, I scan a ncf Tag (just hold the unlocked phone next to it). There is an android next alarm sensor in the companion app, and when this changes (under time conditions), the next alarm is set in HA. The Tag kills all lighting and sets the alarm (which was set earlier) to active, triggering the wake up system some time before the next alarm is set to go off.
djdarren@piefed.social 51 minutes 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.
Zikeji@programming.dev 14 hours ago
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.
fif-t@fedia.io 8 hours ago
You can also just use the webhooks system in Sleep as Android and make a webhook receiver for it in home assistant, which is what I do
Zikeji@programming.dev 3 hours ago
Damn that’s new since I was messed with this. They even have MQTT! Thanks for pointing that out. I’ll have to switch over lol.