Please make SaA it possible to turn the alarm on or off through automation or MCTT, for example, I want to turn the alarm on or off through the home assistant, and this is not possible now, which is not convenient
Hi @August_Deffri,
you can use com.urbandroid.sleep.alarmclock.ALARM_STATE_CHANGE
to change the alarm (activate or deactivate it) with the automation services (not with the MQTT, but with other services).
What others? Microdroid can?
Automate, Tasker, IFTTT, or custom webhooks.
And how to make hooks? There is only a link from the settings
This ( com.urbandroid.sleep.alarmclock.ALARM_STATE_CHANGE
) is the intent you can send to Sleep app, and it will change the alarm state. The configuration of the automation on the side outside Sleep depends completely on your configuration, and will be different for every solution and type of the automation.
In Sleep app, you only need to configure Settings > Services > Automation, pick the automation type, and enable Intent API, if your solution will sent intents to Sleep.
First thank you for helping me, but I couldn’t find it, I’ll attach screenshots, I don’t even have a request like you
In Sleep app in Settings > Services > Automation > INTENT API, at the bottom here:
The screenshots you sent are from Events section.
Thank you for your help, but how to use it now in automation? Where to insert it? I use microdroid, but I can also look at the hook
In the Sleep app, this is all you need to configure.
If you enable the Intent API, the app will automatically accept the intents and will execute them.
The rest needs to be configured in the Automation service you use.