Domoticz app 2.0 Topic is solved

Moderator: leecollings

sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Domoticz app 2.0

Post by sammyke007 »

NiklasO wrote:I might be blind or no widgets in the 0.2.192 (6889) release? :shock:
Can't find them in the list when I try to re-add them again. Had lots of widgets..
Widgets stopped working indeed and no way to readd them Image

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

EDIT: removed for now by the author because of problems. Check GitHub for more info.
NiklasO
Posts: 67
Joined: Friday 16 August 2013 18:34
Target OS: -
Domoticz version:
Location: Stockholm, Sweden
Contact:

Re: Domoticz app 2.0

Post by NiklasO »

sammyke007 wrote: Wednesday 05 February 2020 20:58
NiklasO wrote:I might be blind or no widgets in the 0.2.192 (6889) release? :shock:
Can't find them in the list when I try to re-add them again. Had lots of widgets..
Widgets stopped working indeed and no way to readd them Image

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

EDIT: removed for now by the author because of problems. Check GitHub for more info.
Oh. That's too bad.

Edit:
https://github.com/domoticz/domoticz-android/issues/575
The widgets has always worked fine here except when updating the app, they could stop working and look strange but it worked to just remove them and add them back again. I would help if I knew how to develop for Android. Too bad i don't.
Last edited by NiklasO on Thursday 06 February 2020 19:57, edited 2 times in total.
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by Geitje »

Thanks for the update! I do not use widgets myself, but can understand people feeling sad about removing them...
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Domoticz app 2.0

Post by EddyG »

Installed the latest beta. This problem still exists: https://www.domoticz.com/forum/viewtopi ... 37&t=31162
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

EddyG wrote: Wednesday 05 February 2020 22:00 Installed the latest beta. This problem still exists: https://www.domoticz.com/forum/viewtopi ... 37&t=31162
So opening the app triggers a device to be turned on / off.. eehhh... what if your clean your app cache/data and reconfigure from start?
Maybe some url got stuck in the request queue.. (never heard of this)
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

Do you guys see any issues with the latest beta?
Please test and ill push it to prod after this weekend..?
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Domoticz app 2.0

Post by EddyG »

Tnx. It looks like clearing the cache did the trick.
So this was not related to the latest beta.
No further issues.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Domoticz app 2.0

Post by sammyke007 »

galadril wrote: Friday 07 February 2020 9:57 Do you guys see any issues with the latest beta?
Please test and ill push it to prod after this weekend..?
Working fine here!
Widgets working back as before, tnx!
Merci man!
aBjerris
Posts: 15
Joined: Wednesday 01 May 2019 16:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Domoticz app 2.0

Post by aBjerris »

I'm running version 0.2.187 (6509) of the app.
Since Android 10 notifications do not appear promptly while the phone is in standby. It can take 10-15 minutes before the app show a notification.
This was not the case on Android 9 where the notifications showed promptly (within 1-2s) in the phone.
I use Firebase cloud messaging (Former Google Cloud messaging)
I can reproduce this problem on Xperia 1 and Pixel.
Maybe it is fixed in the current Beta version?
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Domoticz app 2.0

Post by sammyke007 »

aBjerris wrote:I'm running version 0.2.187 (6509) of the app.
Since Android 10 notifications do not appear promptly while the phone is in standby. It can take 10-15 minutes before the app show a notification.
This was not the case on Android 9 where the notifications showed promptly (within 1-2s) in the phone.
I use Firebase cloud messaging (Former Google Cloud messaging)
I can reproduce this problem on Xperia 1 and Pixel.
Maybe it is fixed in the current Beta version?
Battery saving or battery optimization disabled for the app?

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk

Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by Geitje »

I have this problem for a long time already (since Android 9). In my case may be related to Oxygen OS. Eventually I found out that disabling Android Doze does the job. Running

Code: Select all

su
dumpsys deviceidle disable
in an Android terminal (I made a tasker task to do this) does the job for me. From then I get notifications immediately. Battery use is only slightly more. Enabling doze can be done with the same command, ofcourse changing disable to enable.
aBjerris wrote: Friday 07 February 2020 12:30 I'm running version 0.2.187 (6509) of the app.
Since Android 10 notifications do not appear promptly while the phone is in standby. It can take 10-15 minutes before the app show a notification.
...
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Domoticz app 2.0

Post by sammyke007 »

Geitje wrote: Friday 07 February 2020 21:57 I have this problem for a long time already (since Android 9). In my case may be related to Oxygen OS. Eventually I found out that disabling Android Doze does the job. Running

Code: Select all

su
dumpsys deviceidle disable
in an Android terminal (I made a tasker task to do this) does the job for me. From then I get notifications immediately. Battery use is only slightly more. Enabling doze can be done with the same command, ofcourse changing disable to enable.
aBjerris wrote: Friday 07 February 2020 12:30 I'm running version 0.2.187 (6509) of the app.
Since Android 10 notifications do not appear promptly while the phone is in standby. It can take 10-15 minutes before the app show a notification.
...
Exactly. I also have a Oneplus running OxygenOS and since Android Pie (9) they started killing apps agressively. Therefor my pushsafer app always warns me too late (same with Whatsapp, ...). It's only a couple of minutes later, but I don't like that. Disabling battery optimization is not enough. You need to run "dumpsys deviceidle disable" after each reboot to completely disable Doze via ADB or the way you explained with Tasker.
aBjerris
Posts: 15
Joined: Wednesday 01 May 2019 16:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Domoticz app 2.0

Post by aBjerris »

sammyke007 wrote: Friday 07 February 2020 22:31
Geitje wrote: Friday 07 February 2020 21:57 I have this problem for a long time already (since Android 9). In my case may be related to Oxygen OS. Eventually I found out that disabling Android Doze does the job. Running

Code: Select all

su
dumpsys deviceidle disable
in an Android terminal (I made a tasker task to do this) does the job for me. From then I get notifications immediately. Battery use is only slightly more. Enabling doze can be done with the same command, ofcourse changing disable to enable.
aBjerris wrote: Friday 07 February 2020 12:30 I'm running version 0.2.187 (6509) of the app.
Since Android 10 notifications do not appear promptly while the phone is in standby. It can take 10-15 minutes before the app show a notification.
...
Exactly. I also have a Oneplus running OxygenOS and since Android Pie (9) they started killing apps agressively. Therefor my pushsafer app always warns me too late (same with Whatsapp, ...). It's only a couple of minutes later, but I don't like that. Disabling battery optimization is not enough. You need to run "dumpsys deviceidle disable" after each reboot to completely disable Doze via ADB or the way you explained with Tasker.
Thanks for the prompt responses.
I'm not very keen on changing the battery optimization settings but I found this article:
https://firebase.google.com/docs/cloud- ... -a-message

In my understanding the FCM messages can be sent with Normal priority or High priority.
Also in case messages are sent with high priority there is a built in learning mechanism which causes the priority to be lowered in case the end user do not act on the notifications.
Anyone who knows what priority is used by Domoticz?
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

aBjerris wrote: Saturday 08 February 2020 9:58 Thanks for the prompt responses.
I'm not very keen on changing the battery optimization settings but I found this article:
https://firebase.google.com/docs/cloud- ... -a-message

In my understanding the FCM messages can be sent with Normal priority or High priority.
Also in case messages are sent with high priority there is a built in learning mechanism which causes the priority to be lowered in case the end user do not act on the notifications.
Anyone who knows what priority is used by Domoticz?
I know that Xiaomi and OnePlusOne are way to aggressive with the battery optimalisation software. For example, by Ring doorbell wouldn't even send notifications within 4 minuten when somebody is in front of the door with the Xiaomi optimalisation on.. And it works correctly with turned of.

You dont need to turn if off for everything.. you can do it on a app per app basis.. just to see if this is your issue..
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Domoticz app 2.0

Post by sammyke007 »

galadril wrote: Saturday 08 February 2020 20:13 I know that Xiaomi and OnePlusOne are way to aggressive with the battery optimalisation software. For example, by Ring doorbell wouldn't even send notifications within 4 minuten when somebody is in front of the door with the Xiaomi optimalisation on.. And it works correctly with turned of.

You dont need to turn if off for everything.. you can do it on a app per app basis.. just to see if this is your issue..
For me (Oneplus 6), disabling battery optimization is not enough. I still need to run the

Code: Select all

dumpsys deviceidle disable
to make sure I receive my notifications right away. It has nothing to do with priority in my case. Just too agressive app killing by OxygenOS. ;).
User avatar
galadril
Posts: 824
Joined: Monday 07 September 2015 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Contact:

Re: Domoticz app 2.0

Post by galadril »

I've pushed the new version from beta to prod for the Android app today.
Solar panels of Ginlong, Omnik-Solar, Transenergy or Solarman?? Try my Android app:
https://play.google.com/store/apps/deta ... ongmonitor
aBjerris
Posts: 15
Joined: Wednesday 01 May 2019 16:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Domoticz app 2.0

Post by aBjerris »

galadril wrote: Saturday 08 February 2020 20:13
aBjerris wrote: Saturday 08 February 2020 9:58 Thanks for the prompt responses.
I'm not very keen on changing the battery optimization settings but I found this article:
https://firebase.google.com/docs/cloud- ... -a-message

In my understanding the FCM messages can be sent with Normal priority or High priority.
Also in case messages are sent with high priority there is a built in learning mechanism which causes the priority to be lowered in case the end user do not act on the notifications.
Anyone who knows what priority is used by Domoticz?
I know that Xiaomi and OnePlusOne are way to aggressive with the battery optimalisation software. For example, by Ring doorbell wouldn't even send notifications within 4 minuten when somebody is in front of the door with the Xiaomi optimalisation on.. And it works correctly with turned of.

You dont need to turn if off for everything.. you can do it on a app per app basis.. just to see if this is your issue..
Ok. I found a setting in Settings/Apps & Notifications/Advanced/Special app access/Power-saving feature.
This is what you are referring to. Right? Here I selected to not optimise the Domoticz app.
aBjerris
Posts: 15
Joined: Wednesday 01 May 2019 16:32
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Sweden
Contact:

Re: Domoticz app 2.0

Post by aBjerris »

aBjerris wrote: Monday 10 February 2020 22:24
galadril wrote: Saturday 08 February 2020 20:13
aBjerris wrote: Saturday 08 February 2020 9:58 Thanks for the prompt responses.
I'm not very keen on changing the battery optimization settings but I found this article:
https://firebase.google.com/docs/cloud- ... -a-message

In my understanding the FCM messages can be sent with Normal priority or High priority.
Also in case messages are sent with high priority there is a built in learning mechanism which causes the priority to be lowered in case the end user do not act on the notifications.
Anyone who knows what priority is used by Domoticz?
I know that Xiaomi and OnePlusOne are way to aggressive with the battery optimalisation software. For example, by Ring doorbell wouldn't even send notifications within 4 minuten when somebody is in front of the door with the Xiaomi optimalisation on.. And it works correctly with turned of.

You dont need to turn if off for everything.. you can do it on a app per app basis.. just to see if this is your issue..
Ok. I found a setting in Settings/Apps & Notifications/Advanced/Special app access/Power-saving feature.
This is what you are referring to. Right? Here I selected to not optimise the Domoticz app.
Changing the power-saving option have not had any effect. The notifications are still delayed by several minutes. Anyone knows if Domoticz is using High or Normal priority?
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by Geitje »

If disabling battery management not helps: Disable Android Doze, check some posts back: https://www.domoticz.com/forum/viewtop ... 98#p236051
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
zwerfkat
Posts: 1
Joined: Thursday 02 April 2020 13:07
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Domoticz app 2.0

Post by zwerfkat »

I was able to get rid of the notifications delay by disabling Doze Light only:

Code: Select all

adb shell dumpsys deviceidle disable light
This command should be applied after a restart again, since my phone is not rooted.

Hopefully Android will make it possible to apply these settings manually in the future, but I doubt they will.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests