适配告警事件提示音回包
This commit is contained in:
@@ -455,7 +455,17 @@ class TalkingQMQTTService:
|
||||
sms_notification_service.schedule_alarm_notification(device_id=device_id, alarm_id=alarm_id)
|
||||
|
||||
await self._schedule_persistence(device_id, "alarm_event", _record_alarm_and_notify())
|
||||
await self._publish(f"device/{device_id}/event_resp", {"msg_id": "010", "status": "success"})
|
||||
await self._publish(
|
||||
f"device/{device_id}/event_resp",
|
||||
{
|
||||
"msg_id": "010",
|
||||
"status": "success",
|
||||
"type": 0,
|
||||
"params": {
|
||||
"url": f"http://{settings.server_host}:{settings.server_port}/assets/audio/message_ok.mp3"
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
async def _handle_short_press_message(self, device_id: str, payload: dict):
|
||||
params = payload.get("params", {})
|
||||
|
||||
Reference in New Issue
Block a user