Skip to content

Some broadcasts are not working #2

Description

@peterge1998

First i wanted to thank you for creating this project. I got a bunch of ideas how to automate things now 😄

Problem

Some broadcastst (like com.simplemobiletools.ALARM_SNOOZED) are not working for me. They do not show up in logcat. Here is what i did:

  1. Set an alarm for 18:01 (Screenshot taken at 18:02, i set the alarm at 17:59)
  2. Create the silent alarm
  3. Wait for the alarm to ring (That Broadcast is generated fine as you can see in logcat)
  4. Snooze the alarm. No Broadcast shows up in logcat.

signal-attachment-2020-04-19-180223

Logcat:

adb logcat *:v | grep '\"com.simplemobiletools\.'

04-19 18:01:00.419 13722 13722 I MqttConnection: Enqueueing new message: {"action":"com.simplemobiletools.ALARM_GOING_TO_RING","alias":"going to ring","count":3,"id":15,"days":127,"hours":18,"label":"test","minutes":1}
04-19 18:01:00.419 13722 13722 D MqttConnection: MqttQueueItem {retries: 3, timeout: Sun Apr 19 18:01:30 GMT+02:00 2020, payload: {"action":"com.simplemobiletools.ALARM_GOING_TO_RING","alias":"going to ring","count":3,"id":15,"days":127,"hours":18,"label":"test","minutes":1}, topic: android}
04-19 18:01:00.420 13722 13722 I MqttConnection: Message Published (QOS: 0): MqttQueueItem {retries: 3, timeout: Sun Apr 19 18:01:30 GMT+02:00 2020, payload: {"action":"com.simplemobiletools.ALARM_GOING_TO_RING","alias":"going to ring","count":3,"id":15,"days":127,"hours":18,"label":"test","minutes":1}, topic: android}

My broadcast2mqtt app settings:

(Not relevant, but i want to send mqtt messages to create different automations depending on if i snooze or turn the alarm off.)
Alias:
going to ring
Action:
com.simplemobiletools.ALARM_GOING_TO_RING
mqtt publish topic:
android
Rate limit:
0

Alias:
going to ring
Action:
com.simplemobiletools.ALARM_SNOOZED
mqtt publish topic:
android
Rate limit:
0

Mqtt log, only one message showing up:

Message 11 received on android at 6:02 PM:
{
    "action": "com.simplemobiletools.ALARM_GOING_TO_RING",
    "alias": "going to ring",
    "count": 3,
    "id": 15,
    "days": 127,
    "hours": 18,
    "label": "test",
    "minutes": 1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions