I want to create alarm on my android phone based on sensor (prayer times integration). The time is changing every one/two day. Is there any way to create and delete an alarm on android phone?
action:
- data:
message: TTS
data:
tts_text: its time
media_stream: alarm_stream_max
tag: Alarm
priority: high
action: notify.mobile_app_yourphone
Why not use HA to notify you via companion app in an automation. It’ll even notify you if phone is locked.
1 Like
Are you looking for something like this?
- service: notify.mobile_app_PHONE
data:
message: command_activity
data:
ttl: 0
priority: "high"
intent_action: android.intent.action.SET_ALARM
intent_extras: "android.intent.extra.alarm.HOUR:7,android.intent.extra.alarm.MINUTES:0,android.intent.extra.alarm.MESSAGE:Test,android.intent.extra.alarm.SKIP_UI:true"
2 Likes
its also a good solution. Instead of text can i play some music file?
this is exactly what i was looking for. Is it possible to delete the alarm?
Yes. But I have never managed to get it working, and have not really tried either.
It’s a lot more of a process to delete.
Nope… But that is great if that works.
Never really had a reason to delete an alarm.
The action I posted is not repeating alarms.
Exactly what I needed too!