Notify & Fitness DND Tasker - Xiaomi Mi Band 4 Guides, News, & Discussion

Hi,
I am trying to set up a task via Tasker that will simply enable or disable band DND after a trigger. My app version is 9.0.6.
I tested the system intent as instructed by the developer:
http://www.mibandnotify.com/help/tasker_send_intent.php
Enable band DND mode (since 8.13.1 app version)
Action: com.mc.miband.taskerBandDNDEnable
Click to expand...
Click to collapse
but it failed.
First I thought I am doing something wrong but I found out that every task mentioned in the list which doesnt continue with the word .tasker after the com.mc.miband.,
e.g. resending the last notification, works perfectly, it is just the set of tasks which continue with .taskerSomething.
Does anybody face the same problem or do you have other way how to set up the DND by Tasker?

[email protected] said:
Hi,
I am trying to set up a task via Tasker that will simply enable or disable band DND after a trigger. My app version is 9.0.6.
I tested the system intent as instructed by the developer:
http://www.mibandnotify.com/help/tasker_send_intent.php
but it failed.
First I thought I am doing something wrong but I found out that every task mentioned in the list which doesnt continue with the word .tasker after the com.mc.miband.,
e.g. resending the last notification, works perfectly, it is just the set of tasks which continue with .taskerSomething.
Does anybody face the same problem or do you have other way how to set up the DND by Tasker?
Click to expand...
Click to collapse
DND doesn't work for me either, but this one does "Action: com.mc.miband.taskerNightModeEnable" (and disable). It might be a limitation of Mi Band 4, app developer would be the best point of contact to provide exact explanation and possible fix/workaround.

Related

Smart Action app for other phones?

Didn't want to post this in the dev section but this app seems extremely useful and I was curious if there was any way of extracting it for use on other android devices?
That would be very darn useful for everyone.
I'm using tasker . . . you can do alot of creative stuff with it, but it is kinda complicated and costs ~$6
mel493 said:
I'm using tasker . . . you can do alot of creative stuff with it, but it is kinda complicated and costs ~$6
Click to expand...
Click to collapse
I have tasker as well but in general I dont find it super user friendly. From the looks of it Smart Action could replace tasker as well as juice defender which I also use.
I've already made one for home, work and when I go to bed. It seems pretty user friendly to me. Excellent app.
Heh, even if someone extracts it, it needs Blur libraries and frameworks, too.
kholk said:
Heh, even if someone extracts it, it needs Blur libraries and frameworks, too.
Click to expand...
Click to collapse
I've seen harder things get ported on xda just needs willing developers
I haven't really had a look at this Smart Action App yet as I still haven't received my microsim. I was wondering how sophisticated it is?
Is it possible to have it read sms when connected to bluetooth, for example? I attempted this with Tasker on my Defy with no success - I don't think Tasker liked MIUI very much
stunno said:
I haven't really had a look at this Smart Action App yet as I still haven't received my microsim. I was wondering how sophisticated it is?
Is it possible to have it read sms when connected to bluetooth, for example? I attempted this with Tasker on my Defy with no success - I don't think Tasker liked MIUI very much
Click to expand...
Click to collapse
Tasker does many things but in terms of doing things you need to know the proper terms for the various variables etc for what you want to do which isnt too simple
Here are some premade ones you can download or make but none for what you wanted
http://tasker.wikidot.com/profile-index
As an example of how complicated it can get with tasker is the following. How to make a battery full notification.As you can see the app lets you do allot but is not super user friendly. Smart Action may not be able to do all that tasker is able to but may be able to do most and may be more user friendly
click New and select Event
select event category Power and event Battery Full
click Done
click + in the bottom left to add an action
select category Alert and action Notify (Sound)
type Battery Full! in the Title field
click Done
To avoid getting a repeat notification within 30 minutes, we add a cooldown:
Click on the profile and select Profile Properties
Slide the Cooldown Time slider to the far right
Click Done
Alternative solution to avoid repeat notifications (added by b00ky)
Set a variable such as "%BFN" to 0 anytime you plug in your phone
Edit the "Notify Sound" task to only run "If %BFN < 0"
Add a new task "Tasker » Variable Set » %BFN to 1"
This has worked for me and makes sure you only get notified ONCE while it is plugged in as opposed to after 30 minutes of cooldown.
I'm new to this so I apologize if this is not a good way to do this, but it works for me.
An alternative to the alternative to avoid repeat notifications. If you tend to leave plugged in for long durations, 30 minute cool down may not do it for you. The below gives you a one time notification that your battery is full, and wont repeat until you unplug/replug back in. phonedude
Profile - Battery 100%
Event - Battery Full
Enter task -
1. Play your sound
2. Set Profile Status {Battery 100%} to Off
Exit task-
n.a.
Profile - Plugged In
State - Power (Source = Any)
Enter task -
1. Profile Status {Battery 100%} to On
Exit task-
1. Profile Status {Battery 100%} to Off
Thanks for that fidorulz! Much appreciated. I notice on that site that the guy tried to get the read SMS to work and failed, tried again and got it working but doesn't know how!
http://tasker.wikidot.com/readsmswhileincardock
I found a walk through on here that would not work either and I assumed it was because of MIUI, as Tasker didn't register any SMS being received. It seems that the %SMSRF and %SMSRB variables only get initialised when an SMS is received.
I will patiently wait for tmobile and the royal mail to get their fingers out and deliver my microsim and I will give it another go
I use "Setting Profiles" pretty simple and powerful, a lot easier to use than tasker (although not quite as powerful in the nitty-gritty) but definitely hits the 80/20 rule. It costs, but I believe there is a free version to try out the functionality and see how you like it.

Tasker - Creating sound "profiles" with different volumes per volume type

Is Tasker able to do this?
I'm just delving into Tasker from Llama (not as many features as I'd like), so I'm not yet at the point where I know how to set these up in Tasker to see if it has the ability to do so.
Thanks in advance for a clue...........
Yes.
You will want to create widgets to trigger the profiles, or use something like nfc task launcher and tags, or both.
Sent from my SCH-I545 using xda premium
brizey said:
Yes.
You will want to create widgets to trigger the profiles, or use something like nfc task launcher and tags, or both.
Sent from my SCH-I545 using xda premium
Click to expand...
Click to collapse
I was going to have it launch via Location and time constraints. If I ever figure out how to get that far. Tasker is a bit daunting.
wolfgrrl said:
I was going to have it launch via Location and time constraints. If I ever figure out how to get that far. Tasker is a bit daunting.
Click to expand...
Click to collapse
Hang in there. Tasker gets easier the more you use it. It can be daunting to start. The Google Groups Tasker forum is the best place to get specific answers/how to's.
You can definitely have tasker automate changing volume profiles (and many other things) based on location, but you probably don't want to use GPS (it would have to continually check your gps which is a batter drainer). When it comes to location without GPS (ie Cell Signals), llama is actually a little better than tasker at that one specific thing. Since you can trigger a tasker task with llama, I'd suggest using llama to trigger based on location and then build the time constraints and things into Tasker into the Task.
To get your started, your first several task will have time IF states.
Task 1: Go to #4 IF between certain times
Task 2: Go to #8 If between certain times
etc.
With tasker there are usually several different ways to accomplish the same thing - that's where the Google Group comes in handy.
If you're not happy with the way location triggers profiles, then maybe give NFC Tags a try.
hollywoodfrodo said:
Hang in there. Tasker gets easier the more you use it. It can be daunting to start. The Google Groups Tasker forum is the best place to get specific answers/how to's.
You can definitely have tasker automate changing volume profiles (and many other things) based on location, but you probably don't want to use GPS (it would have to continually check your gps which is a batter drainer). When it comes to location without GPS (ie Cell Signals), llama is actually a little better than tasker at that one specific thing. Since you can trigger a tasker task with llama, I'd suggest using llama to trigger based on location and then build the time constraints and things into Tasker into the Task.
To get your started, your first several task will have time IF states.
Task 1: Go to #4 IF between certain times
Task 2: Go to #8 If between certain times
etc.
With tasker there are usually several different ways to accomplish the same thing - that's where the Google Group comes in handy.
If you're not happy with the way location triggers profiles, then maybe give NFC Tags a try.
Click to expand...
Click to collapse
I have gotten some profiles and tasks accomplished and do agree that Llama handles locations MUCH better than Tasker does. I did not know that Llama would read Tasker tasks, so I may give that a go. I really didn't want both apps, tho, because then both will have to run.
hollywoodfrodo said:
Hang in there. Tasker gets easier the more you use it. It can be daunting to start. The Google Groups Tasker forum is the best place to get specific answers/how to's.
You can definitely have tasker automate changing volume profiles (and many other things) based on location, but you probably don't want to use GPS (it would have to continually check your gps which is a batter drainer). When it comes to location without GPS (ie Cell Signals), llama is actually a little better than tasker at that one specific thing. Since you can trigger a tasker task with llama, I'd suggest using llama to trigger based on location and then build the time constraints and things into Tasker into the Task.
To get your started, your first several task will have time IF states.
Task 1: Go to #4 IF between certain times
Task 2: Go to #8 If between certain times
etc.
With tasker there are usually several different ways to accomplish the same thing - that's where the Google Group comes in handy.
If you're not happy with the way location triggers profiles, then maybe give NFC Tags a try.
Click to expand...
Click to collapse
I see that you can create apps from Tasker, and I'm assuming that's how you can get it to interface with Llama.
I've done this with a task for home which changes some volume settings, turns off pattern lock, turns off keyguard and turns off GPS, which come from the Secure Settings plugin.
Llama does not execute these tasks even though the app that I made from this task clearly contains them.
Is Llama not able of doing these because they are governed by Secure Settings?
Even though I joined the Tasker Google Group, it seems I cannot post a new topic to ask this question there. *sigh*

[APP] Do Not Disturb sync for Wear 2.0

Those who have been lucky to upgrade to Wear 2.0 have probably noticed the removed Do Not Disturb toggle synchronization between wearable and phone. Some like it, some not. I didn't like it, so I made an app that does the sync. Currently it only works one way: wearable -> phone. With some hacking, sync is working both ways.
You can find the application in Play Store.
Source, builds and setup instructions are available in github and licensed under Apache 2.0.
Installation instructions for Watch -> Phone sync:
Install phone application and wearable application from on-watch Play Store
Launch application on Phone
Click "Grant Permission" button
Enable Do Not Disturb access permission for application
Make sure all 3 checks in the application pass
Installation instructions for Phone -> Watch sync:
Setup watch ADB
Execute:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.NotificationService
Enable state broadcast in Watch Setup wizard
Currently synchronization phone -> watch is only possible by assigning permissions in ADB. Wear OS doesn't provide management settings. As this is not officially supported - it may not work for everyone or the next Wear version.
I love that something like this is now made, but I have a question. What is the first screenshot in the Google Play Store link for? I thought this was only for DND?
I'd like to install it and find out myself, but my ZenWatch 2 still hasn't received the update.
If your watch isn't updated, then the sync should work out of the box. As for the screenshot, I tried to show that the toggle in the watch will sync to the toggle in the phone. I'm not a designer.
Wonderful little utility. Thank you very much.
Fingers crossed to get phone > watch allowed.
I have a few apps that toggle DND via Tasker on my phone, and having it trigger the watch too would be sweet.
Good news and bad news.
The bad: notification access and all the management is unavailable in Wear. So there will not be an official way to make this work (source).
The good: you can grant the permission in ADB. I tried it and the app can actually switch DND on and off (source).
Having to run a single ADB command will probably not stop the brave people of XDA! So synchronization should eventually come to the watch, just give me some time to fix the current bugs.
Bonus news: AudioManager can be used in android <6 for sound modes. Haven't looked into that yet.
Thanks for this app, I miss the functionality!
Sync from phone to watch is implemented and functional! v1.5 is being pushed to the Play Store. You just need to enable broadcast from phone in setup wizard and execute this command in the watch:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.HackService
raimondas.rimkus said:
You can find the application in Play Store
Click to expand...
Click to collapse
Hello!
Not work on Huawei Mediapad X2 (android 5.1.1).
I know: "only Android 6+ is supported"... But, maybe, android 5.1 can be added to?..
Thank you!
If it can help, I can access Do Not Disturb on android 5 through Tasker.
But it is called "Interrupt Mode". It can be found here: http://tasker.dinglisch.net/userguide_summary.html search for "Interrupt Mode".
raimondas.rimkus said:
Those who have been lucky to upgrade to Wear 2.0 have probably noticed the removed Do Not Disturb toggle synchronization between wearable and phone. Some like it, some not. I didn't like it, so I made an app that does the sync. Currently it only works one way: wearable -> phone. With some hacking, sync is working both ways.
You can find the application in Play Store.
Source is available in github and licensed under Apache 2.0.
Installation instructions for Watch -> Phone sync:
Install phone application and wearable application from on-watch Play Store
Launch application on Phone
Click "Grant Permission" button
Enable Do Not Disturb access permission for application
Make sure all 3 checks in the application pass
Installation instructions for Phone -> Watch sync:
Setup watch ADB
Execute:
Code:
adb shell settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:rkr.weardndsync/rkr.weardndsync.HackService
Enable state broadcast in Watch Setup wizard
Currently synchronization phone -> watch is only possible by assigning permissions in ADB. Wear OS doesn't provide management settings. As this is not officially supported - it may not work for everyone or the next Wear version.
Click to expand...
Click to collapse
Thank you so much.
Sent from my ONEPLUS A3003 using Tapatalk
Works perfect!! Thanks!
raimondas.rimkus said:
... As for the screenshot, I tried to show that the toggle in the watch will sync to the toggle in the phone. I'm not a designer.
Click to expand...
Click to collapse
me neither, but maybe this could help?
I'm just curious. What's the difference between this version available in the Play Store (source code available here) and your own? It looks to me as though that blunden may have forked your code.
That's how open source works, you are free to fork it or take it as an inspiration. His code isn't a plain copy paste, it looks like he even has sync to older android versions, which I didn't have time to do.
I can no longer sync both ways after the newest update, v1.6. I can only control DND from both devices from my watch. Anyone else having this problem with v1.6?
Sent from my SM-G955U using Tapatalk
thecarp1975 said:
I can no longer sync both ways after the newest update, v1.6. I can only control DND from both devices from my watch. Anyone else having this problem with v1.6?
Sent from my SM-G955U using Tapatalk
Click to expand...
Click to collapse
The first idea is that app got suspended after the update. Make sure watch app is updated and start the app on phone. I've added a check that will tell you if watch DND permission is granted. If everything passes, then there is probably something weird with the AudioManager. Previous version used the new NotificationManager, but it requires a running service for broadcast events. I've switched to legacy AudioManager that can use a stateless broadcast receiver.
[Edit:] Android 4.3+ support is being pushed. This needed a code refactoring, so bugs are probable.
okk
raimondas.rimkus said:
The first idea is that app got suspended after the update. Make sure watch app is updated and start the app on phone. I've added a check that will tell you if watch DND permission is granted. If everything passes, then there is probably something weird with the AudioManager. Previous version used the new NotificationManager, but it requires a running service for broadcast events. I've switched to legacy AudioManager that can use a stateless broadcast receiver.
[Edit:] Android 4.3+ support is being pushed. This needed a code refactoring, so bugs are probable.
Click to expand...
Click to collapse
Yeah, all three permissions were granted. You wouldn't happen to have the APK for the previous version?
Sent from my SM-G955U using Tapatalk
V1.5 attached.
I would still prefer if you could make a logcat and I could fix the problem for the rest of the people. Just do these steps:
Connect phone to ADB
Enable DND, Disable DND on phone
Enable DND, Disable DND in watch
Run: adb logcat -d > bug_phone.txt
Repeat with watch connected to bug_watch.txt
PM the logs and I may try to fix it. It's not the first time android APIs don't work in specific phones.
Just a quick FYI. Version 1.6 works fine here. Nexus 6 / Pure Nexus 7.1.1 / Magisk root. Huawei watch AW 2.0 7.1.1 stock.
I can start DND from either watch or phone and the other device enables.
It works when I start Sleep as Android; SaS enables phone DND and that enables DND for AW 2.0, then Tasker via AutoWear triggers theater mode on my watch. One step goodness! :victory:

[Tutorial] How to disable Vibrations for notifictations

Hi guys,
I wanted to share my experience, how to disable vibrations on the Amazift. Sorry if some already posted it, but I couldnt find it.
First connect the device and open an console with adb.
Then open the shell on the watch:
Code:
adb shell
After that verify the name of the launcher package
Code:
pm list packages
There you should find a package called com.huami.launcher - this is the package we want to disable vibrations:
Code:
cmd appops set com.huami.launcher VIBRATE ignore
If you want to enable the vibrations again use:
Code:
cmd appops set com.huami.launcher VIBRATE allow
Since I want to have vibrations if I get a phone call, I installed the watch droid app on the watch, wich doesn't get changed at all.
Feel free to post questons, and I hope that I could give something back to this awesome community!
Thanks for this tutorial @Bainhorious !
That's exactly what I was looking for. Super simple but seems like none of the apps can offer the option to get notifications without vibration (I've tried the Mi app, Tools & Amazfit and also the Notify & Fitness).
Before I try your solution, I need, in addition to the vibration for incoming calls, I also need vibration for the Hangouts app. Do you think the "watch droid app" or even the Mi app would provide vibration for these 2 apps only? Thanks once again.
PS: my watch is the Amazfit Bip
Yes, as I have described above, you separately disable for every app the vibrations. So then just leave hangouts and watch droid out.
Thanks for replying.
Are you talking about the Bip? Because I don't think it is possible to install watch droid app on the Amazfit Bip.
Newbie question: do I need to unlock the bootloader or something like that? Or I can just connect the watch to my computer via USB and write the codes via ADB?
Man, this process work on Amazfit Bip? My Bip stop to Vibrate without, and I don't make it back =/
Unfortunately I don't think it works for the Bip, at least no one has tried
Bainhorious said:
Hi guys,
I wanted to share my experience, how to disable vibrations on the Amazift. Sorry if some already posted it, but I couldnt find it.
First connect the device and open an console with adb.
Then open the shell on the watch:
Code:
adb shell
After that verify the name of the launcher package
Code:
pm list packages
There you should find a package called com.huami.launcher - this is the package we want to disable vibrations:
Code:
cmd appops set com.huami.launcher VIBRATE ignore
If you want to enable the vibrations again use:
Code:
cmd appops set com.huami.launcher VIBRATE allow
Since I want to have vibrations if I get a phone call, I installed the watch droid app on the watch, wich doesn't get changed at all.
Feel free to post questons, and I hope that I could give something back to this awesome community!
Click to expand...
Click to collapse
Thanks for this! btw. "cmd" didn't work for me, but "command" worked
I think it should be
Code:
appops set com.huami.watch.launcher VIBRATE ignore
in the current version
Bainhorious said:
I think it should be
Code:
appops set com.huami.watch.launcher VIBRATE ignore
in the current version
Click to expand...
Click to collapse
Yep, this also :good:
I'm assuming ADB refers to Android Debug Bridge?
For someone who isn't that savvy with the above, would you recommend doing this? This is a feature that I miss coming from a pebble time and I want to do this but the instructions above will probably mean that I get lost in the process. Is the above process to be done with the amazfit app or while the watch is connected to a pc?
Sorry about the basic questions.
I suppose there is no app that can disable vibration, right? At least, not amazfit tools, which I tried...
Does this still work on Android Pie? Certain apps still vibrate annoyingly so despite the granular notification control that Pie has introduced.

[Amazfit Bip] update new features

Hi guys, sorry if it was already asked, I searched the forum and I wasn't able to find an answer.
Is there a place where to see what changes the various updates made to the Bip?
Today I've received my device and Mi Fit app (iOS) updated to 1.0.86 but now the Mi Fit app (Android this time, I was trying to install a personalized watchface) decided it was time to do a new one (it's taking a lot of time, so I've no idea which version is getting installed at the moment).
I'm just curious to see what's new.
Thanks.
What to see a change log for MiFit? App store lists changelog for apps, and Android online stores list some of the changes, like this one:
https://apkpure.com/mi-fit/com.xiaomi.hm.health
lfom said:
What to see a change log for MiFit? App store lists changelog for apps, and Android online stores list some of the changes, like this one:
https://apkpure.com/mi-fit/com.xiaomi.hm.health
Click to expand...
Click to collapse
Thanks lfom, but I meant the change log for Amazfit Bip firmware. Just to see what was improved or changed.
Update is finished, now I've the 1.1.14 version. I don't know if it's too new but I wasn't able to pair it to last version of Notify & Fitness for Amazfit, so no personalized watchfaces for now.
I see... I am not sure, but I think all updates for Pace are get from the manufacture's site in Chinese then translated. Maybe someone knows if there are announcements for Bip versions as well...
Did it eventually got an airplane mode ? (Check settings on watch)
Amazfit dev on twitter said they were on it months ago..
WiwiPouPou said:
Did it eventually got an airplane mode ? (Check settings on watch)
Amazfit dev on twitter said they were on it months ago..
Click to expand...
Click to collapse
For the BIP?
It's not on mine.
There’s a DND function, that can be scheduled, but nothing about airplane mode.
Locksoft said:
There’s a DND function, that can be scheduled, but nothing about airplane mode.
Click to expand...
Click to collapse
How do you schedule the DND function on the Amazfit Bip? I only see 2 options: ON/OFF or AUTO based on if it thinks you're asleep.
I'd love to set DND following a schedule, like I do it on my iPhone, e.g. DND on from 11pm-8am.
WolfgangBremer said:
How do you schedule the DND function on the Amazfit Bip? I only see 2 options: ON/OFF or AUTO based on if it thinks you're asleep.
I'd love to set DND following a schedule, like I do it on my iPhone, e.g. DND on from 11pm-8am.
Click to expand...
Click to collapse
Why not a DND that follows whatever is set on the phone?

Categories

Resources