Android Wear 2.0 removed synchronization of the Do Not Disturb state between the watch and the phone. This application restores the Android Wear 1.5 behaviour with minimal or no battery life impact.
Version 1.1 of the app optionally adds support for full bi-directional sync. To enable phone to watch sync, users need to manually set the app as a notification listener on the watch by running the following commands:
$ adb shell cmd notification allow_listener se.blunden.donotdisturbsync/se.blunden.donotdisturbsync.DNDSyncNotificationService
$ adb shell
$ settings put secure enabled_notification_listeners com.google.android.wearable.app/com.google.android.clockwork.stream.NotificationCollectorService:se.blunden.donotdisturbsync/se.blunden.donotdisturbsync.DNDSyncNotificationService
NOTE (Only applies to Android Wear): If you have already manually added other notification listeners on your watch, you need to instead read the current value and then set it again with :se.blunden.donotdisturbsync/se.blunden.donotdisturbsync.DNDSyncNotificationService added.