I noticed that when I get a notification (from a JS rule) from the Android openHAB app while playing Spotify, the music (or podcast) is paused, even though my phone is on ‘do not disturb’.
Even stranger: the music doesn’t resume after the notification sound; I need to manually press play again…
I don’t know which information about my phone or Android might be useful here?
The make/model and Android version are usually good starting points.
Do you mean that the notification still appears even though you’re on DND? Or that you don’t see/hear the notification (due to DND being enabled), but Spotify stops anyway?
By default, DND blocks pretty much any sound/notification, but you can usually set it to ignore some things (alarms, apps, types of sounds). DND also blocks media audio (e.g. Spotify) unless it’s connected to a Bluetooth speaker or wired headphones.
You need to isolate where the problem is by testing various scenarios:
What happens if you send a test notification from myopenHAB.org? (it should be the same result)
What happens if your phone is not on Do Not Disturb?
What happens if you change your Do Not Disturb settings?
What happens if you use or do not use headphones?
Most likely, it’s something specific to your phone.