domoticz / domoticz-android

Domoticz Client Application for Android Devices
106 stars 71 forks source link

GCM customization (sound / priority) #422

Open jvandenbroek opened 7 years ago

jvandenbroek commented 7 years ago

I actually rediscovered GCM functionality in the app, which does response much faster than Pulseover :) But it is unfortunately a little bit limited, eg the ability to specify custom sounds would be great. Priority would also be nice of course, but it's not high on my priority list ;) I think the alarm sound is already acting on emergency priority? However priorities below 0 could be processed without sound / vibration, but again, for me not really important at the moment (but if simple to implement, I'd like it as well ;))

My idea would be to extend Domoticz to send the sound field (I can create a simple patch for that), so that this app can process that info. Let's say that Domoticz Android can set 4 custom sounds (a reasonable amount I think), which will trigger when sound is set to 'sound1', 'sound2' etc. In Domoticz scripting we can supply these sounds to trigger it. What do you think, is this feasible?

galadril commented 5 years ago

I could create channels for all priorities under the app settings, so you can adjust the notification settings in Android itself per channel