Do Not Disturb

January 15, 2020 ยท View on GitHub

This describes the information you see in the DND configuration page in the MiHome App. The actual DND status comes from the status message.

Get DND Timer

Command

KeyValueComment
method"get_dnd_timer"
ididRandom integer which is returned in the response used to link request and response.

Example

{
    "method": "get_dnd_timer",
    "id": 67
}

Response

KeyExampleDescription
enabled1Is DND functionality enabled (0=disabled, 1=enabled)
end_hour8End Time DND (hour part)
end_minute0End Time DND (minute part)
start_hour22Start Time DND (hour part)
start_minute0Start Time DND (minute part)

Example

{
    "result": [{
            "enabled": 1,
            "end_hour": 8,
            "end_minute": 0,
            "start_hour": 22,
            "start_minute": 0
        }
    ],
    "id": 67
}

Set DND Timer

Command

KeyValueComment
method"set_dnd_timer"
params[start_hour, start_minutes, end_hour, end_minutes]24 hour notation, not using am/pm
ididRandom integer which is returned in the response used to link request and response.

Example

{
    "method": "set_dnd_timer",
    "params": [22, 0, 8, 0],
    "id": 2346
}

Response

Standard response to succeeded command.

Example

{
    "result": ["ok"],
    "id": 2346
}