Hey everyone,
I want to automate my bathroom heating based on my actual wake-up alarm on my Samsung S25. Simple goal, but Samsung makes it surprisingly painful.
The problem:
Samsung Routines (Bixby Routines) injects its trigger times into the Android AlarmManager, which the HA Companion App picks up as next_alarm. This means every single Routine that has a time-based trigger pollutes the next_alarm sensor — including the Sleep Mode start time — making it completely unreliable for my use case.
The sensor currently shows the Sleep Mode start time, not my actual wake-up alarm. The Package attribute is com.sec.android.app.clockpackage for both the real alarm and the injected Routine times, so there’s no way to tell them apart.
What I tried:
I came across this thread where the suggested fix was a Template Helper filtering by package:
{% if is_state_attr('sensor.my_phone_next_alarm', 'Package', 'com.google.android.deskclock') %}
{{ states('sensor.my_phone_next_alarm') }}
{% else %}
unavailable
{% endif %}
This approach (and the Allow List setting in the Companion App) only works if you use Google Clock. Samsung Routines injects under com.sec.android.app.clockpackage — a different package than Google Clock — so in theory switching to Google Clock for alarms only should fix it, since the filter would then cleanly separate real alarms from Routine injections.
However, I heavily rely on Samsung Routines for time-based automations and don’t want to install a separate app just for alarms if avoidable. I also can’t confirm whether Samsung Routines would still bleed into next_alarm even if I switched to Google Clock, since I haven’t tested it.
My setup:
- Samsung S25, One UI, Android 16
- HA Companion App up to date
next_alarmPackage:com.sec.android.app.clockpackage- Sensor reflects Sleep Mode start time, not actual alarm
Two questions for anyone who’s dealt with this:
- If you use Google Clock for alarms while keeping Samsung Routines active — does Samsung Routines still inject into
next_alarm, or does the package filter cleanly solve it? - Is there any solution that doesn’t require switching clock apps at all?
Any help appreciated!