Note. This describes the information you see in the DND configuration page in the MiHome App. The actual DND status comes from the status message
Key | Value | Comment |
---|---|---|
method | get_dnd_timer |
|
id | [Integer] | is returned in the response used to link the send message to the response. |
{'method': 'get_dnd_timer', 'id': 2}
Key | Example | Description |
---|---|---|
enabled |
1 | Is DND functionality Enabled (1=True) |
end_hour |
8 | End Time DND (hour part) |
end_minute |
0 | End Time DND (minute part) |
start_hour |
22 | Start Time DND (hour part) |
start_minute |
0 | Start Time DND (minute part |
{
"id": 2,
"result": [
{
"enabled": 1,
"end_hour": 8,
"end_minute": 0,
"start_hour": 22,
"start_minute": 0
}
]
}
Key | Value | Comment |
---|---|---|
method | set_dnd_timer |
|
params | [start hour, start minutes, end hour, end minutes |
24 hour notation, not using am/pm |
id | [Integer] | is returned in the response used to link the send message to the response. |
{'method': 'set_dnd_timer', 'params': [22,0,8,0] , 'id': 2}