除了播放音樂和控制 智能家居設(shè)備外,小愛音箱還可以與電視進(jìn)行聯(lián)動(dòng),實(shí)現(xiàn)語音控制電視的功能。那么,如何利用小愛音箱來控制電視,并播放任意影視內(nèi)容呢?
首先說明,我實(shí)在群暉docker安裝的homeassistant和nodered,部署在其他服務(wù)器上的可參考修改。
怎樣用小愛音箱控制電視 (1).png (272.58 KB, 下載次數(shù): 834)
下載附件
保存到相冊(cè)
2024-1-10 10:56 上傳
2.在homeassistant中將你家的電視通過dlna接入。
怎樣用小愛音箱控制電視 (7).png (14.45 KB, 下載次數(shù): 819)
下載附件
保存到相冊(cè)
2024-1-10 10:56 上傳
3.在群暉創(chuàng)建一個(gè)文件夾掛載 nodered的root目錄。
怎樣用小愛音箱控制電視 (6).png (12.57 KB, 下載次數(shù): 838)
下載附件
保存到相冊(cè)
2024-1-10 10:56 上傳
4.群暉開啟ssh,并進(jìn)入nodered容器內(nèi)部:
- docker exec -it nodered /bin/bash
復(fù)制代碼
怎樣用小愛音箱控制電視 (5).png (3.93 KB, 下載次數(shù): 821)
下載附件
保存到相冊(cè)
2024-1-10 10:56 上傳
我這里以新docker部署的nr為例
安裝http請(qǐng)求及解析需要的庫:
- python3 -m ensurepip --upgrade
- python3 -m pip install requests
- python3 -m pip install bs4
復(fù)制代碼
怎樣用小愛音箱控制電視 (3).png (41.82 KB, 下載次數(shù): 827)
下載附件
保存到相冊(cè)
2024-1-10 10:56 上傳
安裝完就可以到nr里邊操作了。
5.在nodered中,將我的流導(dǎo)入:并將第一步說的小雅的網(wǎng)址改為自己的
- [
- {
- "id": "ce7ae6436c0af95a",
- "type": "file",
- "z": "5641ce060432f122",
- "name": "存儲(chǔ)在root目錄下",
- "filename": "/root/查詢小雅電影url.py",
- "filenameType": "str",
- "appendNewline": true,
- "createDir": true,
- "overwriteFile": "true",
- "encoding": "none",
- "x": 430,
- "y": 1740,
- "wires": [
- [
- "6d47d72d49f59618"
- ]
- ]
- },
- {
- "id": "6d47d72d49f59618",
- "type": "exec",
- "z": "5641ce060432f122",
- "command": "python3 /root/查詢小雅電影url.py",
- "addpay": "payload",
- "append": "",
- "useSpawn": "false",
- "timer": "",
- "winHide": false,
- "oldrc": false,
- "name": "",
- "x": 740,
- "y": 1740,
- "wires": [
- [
- "05f6b97e57de70a4",
- "931f4e09ee722274"
- ],
- [],
- []
- ]
- },
- {
- "id": "1b5f9bfbd0bce847",
- "type": "api-call-service",
- "z": "5641ce060432f122",
- "name": "主臥電視",
- "server": "598f8fe7bc05621b",
- "version": 5,
- "debugenabled": false,
- "domain": "media_player",
- "service": "play_media",
- "areaId": [
- "wo_shi"
- ],
- "deviceId": [],
- "entityId": [
- "media_player.zhu_wo_dian_shi"
- ],
- "data": "{\t "media_content_id": msg.payload[0],\t "media_content_type":"video",\t "announce":"true"\t}",
- "dataType": "jsonata",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1680,
- "y": 1700,
- "wires": [
- [
- "6ffd3c1403904fc6"
- ]
- ]
- },
- {
- "id": "6ffd3c1403904fc6",
- "type": "debug",
- "z": "5641ce060432f122",
- "name": "debug 18",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 1960,
- "y": 1800,
- "wires": []
- },
- {
- "id": "2e0618eb53503ab3",
- "type": "debug",
- "z": "5641ce060432f122",
- "name": "debug 20",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 1460,
- "y": 1600,
- "wires": []
- },
- {
- "id": "030138d8effd759f",
- "type": "template",
- "z": "5641ce060432f122",
- "name": "python 腳本",
- "field": "payload",
- "fieldType": "msg",
- "format": "python",
- "syntax": "mustache",
- "template": "import requests\nfrom bs4 import BeautifulSoup\n\n# 定義URL\nurl = "http://192.168.1.222:6789/search?box={{payload}}&type=video&url="\n\n# 發(fā)送GET請(qǐng)求獲取頁面內(nèi)容\nresponse = requests.get(url)\n\n# 檢查響應(yīng)狀態(tài)碼\nif response.status_code == 200:\n html = response.text\n\n # 使用Beautiful Soup解析HTML\n soup = BeautifulSoup(html, 'html.parser')\n\n # 找到所有的<a>標(biāo)簽\n a_tags = soup.find_all('a')\n\n # 初始化路徑列表,用于存儲(chǔ)嘗試的路徑\n paths_to_try = [a['href'] for a in a_tags[2:]]\n\n # 用于記錄是否找到匹配的文件名\n found = False\n\n # 檢查列表中是否包含".mkv"或".mp4"的結(jié)果\n for path in paths_to_try:\n if ".mkv" in path or ".mp4" in path:\n # 拼接新的URL\n new_url = f"http://192.168.1.222:6789/d/{path}"\n print(new_url)\n found = True\n break\n\n if not found:\n while paths_to_try and not found:\n path = paths_to_try.pop(0) # 彈出列表中的第一個(gè)路徑\n\n # 定義URL\n api_url = "http://192.168.1.222:6789/api/fs/list"\n\n # 定義請(qǐng)求參數(shù)\n params = {\n "path": path,\n "password": "",\n "page": 1,\n "per_page": 30,\n "refresh": False\n }\n\n # 發(fā)送POST請(qǐng)求獲取JSON響應(yīng)\n response = requests.post(api_url, json=params)\n\n # 檢查響應(yīng)狀態(tài)碼\n if response.status_code == 200:\n data = response.json()\n\n # 嘗試獲取content中的項(xiàng)目,如果出現(xiàn)異常則跳出當(dāng)前循環(huán)\n try:\n content = data.get("data", {}).get("content")\n except AttributeError:\n # print(f"在路徑 {path} 下發(fā)生異常,跳過該路徑")\n continue\n\n if content is not None:\n # 查找第一個(gè)包含“.mp4”或“.mkv”的name\n found_name = None\n for item in content:\n name = item.get("name", "")\n if ".mp4" in name or ".mkv" in name:\n found_name = name\n break\n\n # 如果找到了匹配的name\n if found_name:\n # 拼接完整的網(wǎng)址\n full_url = f"http://192.168.1.222:6789/d/{path}/{found_name}"\n print(full_url)\n found = True\n else:\n print(f"在路徑 {path} 下未找到匹配的文件名")\n else:\n print(f"JSON響應(yīng)中沒有'content'字段")\n else:\n print(f"無法訪問指定URL: {api_url}")\n\n if not found:\n print("沒有找到包含'.mp4'或'.mkv'的文件名")\nelse:\n print("無法訪問指定URL")\n",
- "output": "str",
- "x": 210,
- "y": 1760,
- "wires": [
- [
- "ce7ae6436c0af95a"
- ]
- ]
- },
- {
- "id": "0e62fca7ed5d9b7b",
- "type": "inject",
- "z": "5641ce060432f122",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "速度與激情10",
- "payloadType": "str",
- "x": 130,
- "y": 1680,
- "wires": [
- [
- "030138d8effd759f"
- ]
- ]
- },
- {
- "id": "05f6b97e57de70a4",
- "type": "debug",
- "z": "5641ce060432f122",
- "name": "debug 21",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 940,
- "y": 1840,
- "wires": []
- },
- {
- "id": "561da383e0140cab",
- "type": "join",
- "z": "5641ce060432f122",
- "name": "",
- "mode": "custom",
- "build": "array",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": "\\n",
- "joinerType": "str",
- "accumulate": false,
- "timeout": "",
- "count": "",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "",
- "reduceFixup": "",
- "x": 1230,
- "y": 1720,
- "wires": [
- [
- "2e0618eb53503ab3",
- "081e66e145ad4ade",
- "65545ddaebf3e8a4"
- ]
- ]
- },
- {
- "id": "c3e5a779dfee461f",
- "type": "split",
- "z": "5641ce060432f122",
- "name": "",
- "splt": "\\n",
- "spltType": "str",
- "arraySplt": 1,
- "arraySpltType": "len",
- "stream": false,
- "addname": "",
- "x": 1130,
- "y": 1780,
- "wires": [
- [
- "561da383e0140cab"
- ]
- ]
- },
- {
- "id": "4d24b8ce856620bf",
- "type": "function",
- "z": "5641ce060432f122",
- "name": "function 10",
- "func": "\nmsg.payload=encodeURI(msg.payload).slice(0, -3);\n\n\nreturn msg;",
- "outputs": 1,
- "timeout": 0,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1630,
- "y": 1600,
- "wires": [
- [
- "1b5f9bfbd0bce847"
- ]
- ]
- },
- {
- "id": "ef5d923092afd21d",
- "type": "comment",
- "z": "5641ce060432f122",
- "name": "電影url",
- "info": "",
- "x": 110,
- "y": 1600,
- "wires": []
- },
- {
- "id": "ebde0123b4902e43",
- "type": "server-state-changed",
- "z": "5641ce060432f122",
- "name": "小愛對(duì)話",
- "server": "598f8fe7bc05621b",
- "version": 4,
- "exposeToHomeAssistant": false,
- "haConfig": [
- {
- "property": "name",
- "value": ""
- },
- {
- "property": "icon",
- "value": ""
- }
- ],
- "entityidfilter": "sensor.xiaomi_lx5a_7d9b_conversation",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 1,
- "output_only_on_state_change": true,
- "for": "0",
- "forType": "num",
- "forUnits": "minutes",
- "ignorePreVSTateNull": false,
- "ignorePrevStateUnknown": false,
- "ignorePrevStateUnavailable": false,
- "ignoreCurrentStateUnknown": false,
- "ignoreCurrentStateUnavailable": false,
- "outputProperties": [
- {
- "property": "payload",
- "propertyType": "msg",
- "value": "",
- "valueType": "entityState"
- },
- {
- "property": "data",
- "propertyType": "msg",
- "value": "",
- "valueType": "eventData"
- },
- {
- "property": "topic",
- "propertyType": "msg",
- "value": "",
- "valueType": "triggerId"
- }
- ],
- "x": 120,
- "y": 2000,
- "wires": [
- [
- "2f2c89887be9e04e"
- ]
- ]
- },
- {
- "id": "2f2c89887be9e04e",
- "type": "switch",
- "z": "5641ce060432f122",
- "name": "我想看",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "我想看",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 310,
- "y": 1980,
- "wires": [
- [
- "b028350e4a8ff48d",
- "2dc0658ed70d52dd"
- ],
- []
- ]
- },
- {
- "id": "b028350e4a8ff48d",
- "type": "split",
- "z": "5641ce060432f122",
- "name": "",
- "splt": "想看",
- "spltType": "str",
- "arraySplt": "1",
- "arraySpltType": "len",
- "stream": false,
- "addname": "",
- "x": 510,
- "y": 1980,
- "wires": [
- [
- "2c27c3910bb47959"
- ]
- ]
- },
- {
- "id": "2c27c3910bb47959",
- "type": "join",
- "z": "5641ce060432f122",
- "name": "",
- "mode": "custom",
- "build": "array",
- "property": "payload",
- "propertyType": "msg",
- "key": "topic",
- "joiner": "\\n",
- "joinerType": "str",
- "accumulate": false,
- "timeout": "",
- "count": "",
- "reduceRight": false,
- "reduceExp": "",
- "reduceInit": "",
- "reduceInitType": "",
- "reduceFixup": "",
- "x": 670,
- "y": 1980,
- "wires": [
- [
- "cfb73ae3d376c74a"
- ]
- ]
- },
- {
- "id": "cfb73ae3d376c74a",
- "type": "function",
- "z": "5641ce060432f122",
- "name": "",
- "func": "msg.payload = msg.payload[1]\n\nreturn msg;",
- "outputs": 1,
- "timeout": "",
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 790,
- "y": 1980,
- "wires": [
- [
- "030138d8effd759f",
- "f4f391a64858ac59"
- ]
- ]
- },
- {
- "id": "df9356cc80c6bfb0",
- "type": "inject",
- "z": "5641ce060432f122",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "我想看我和我的祖國",
- "payloadType": "str",
- "x": 210,
- "y": 2100,
- "wires": [
- [
- "2f2c89887be9e04e"
- ]
- ]
- },
- {
- "id": "2dc0658ed70d52dd",
- "type": "xiaoai-mediaplayer",
- "z": "5641ce060432f122",
- "name": "",
- "xiaoai": "09b787bdbe3ed75d",
- "action": "pause",
- "device": "",
- "x": 550,
- "y": 2100,
- "wires": [
- [],
- []
- ]
- },
- {
- "id": "f23f85e17f7d3a33",
- "type": "api-call-service",
- "z": "5641ce060432f122",
- "name": "",
- "server": "598f8fe7bc05621b",
- "version": 5,
- "debugenabled": false,
- "domain": "media_player",
- "service": "play_media",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "media_player.chuang_wei_ke_ting_dian_shi_g6_7f6_dlna"
- ],
- "data": "{\t "media_content_id": msg.payload[0],\t "media_content_type":"video",\t "announce":"true"\t}",
- "dataType": "jsonata",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1790,
- "y": 1860,
- "wires": [
- [
- "6ffd3c1403904fc6"
- ]
- ]
- },
- {
- "id": "3798846de5c7f949",
- "type": "server-state-changed",
- "z": "5641ce060432f122",
- "name": "電影名稱",
- "server": "598f8fe7bc05621b",
- "version": 4,
- "exposeToHomeAssistant": false,
- "haConfig": [
- {
- "property": "name",
- "value": ""
- },
- {
- "property": "icon",
- "value": ""
- }
- ],
- "entityidfilter": "input_text.dian_ying_ming_cheng",
- "entityidfiltertype": "exact",
- "outputinitially": false,
- "state_type": "str",
- "haltifstate": "",
- "halt_if_type": "str",
- "halt_if_compare": "is",
- "outputs": 1,
- "output_only_on_state_change": true,
- "for": "0",
- "forType": "num",
- "forUnits": "minutes",
- "ignorePrevStateNull": false,
- "ignorePrevStateUnknown": false,
- "ignorePrevStateUnavailable": false,
- "ignoreCurrentStateUnknown": false,
- "ignoreCurrentStateUnavailable": false,
- "outputProperties": [
- {
- "property": "payload",
- "propertyType": "msg",
- "value": "",
- "valueType": "entityState"
- },
- {
- "property": "data",
- "propertyType": "msg",
- "value": "",
- "valueType": "eventData"
- },
- {
- "property": "topic",
- "propertyType": "msg",
- "value": "",
- "valueType": "triggerId"
- }
- ],
- "x": 100,
- "y": 1880,
- "wires": [
- [
- "030138d8effd759f"
- ]
- ]
- },
- {
- "id": "081e66e145ad4ade",
- "type": "api-call-service",
- "z": "5641ce060432f122",
- "name": "",
- "server": "598f8fe7bc05621b",
- "version": 5,
- "debugenabled": false,
- "domain": "media_player",
- "service": "media_stop",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "media_player.chuang_wei_ke_ting_dian_shi_g6_7f6_dlna"
- ],
- "data": "",
- "dataType": "jsonata",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1250,
- "y": 1860,
- "wires": [
- []
- ]
- },
- {
- "id": "e6304a814503d679",
- "type": "debug",
- "z": "5641ce060432f122",
- "name": "debug 301",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1550,
- "y": 1960,
- "wires": []
- },
- {
- "id": "2162eb85046df316",
- "type": "delay",
- "z": "5641ce060432f122",
- "name": "",
- "pauseType": "delay",
- "timeout": "2",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "allowrate": false,
- "outputs": 1,
- "x": 1640,
- "y": 1780,
- "wires": [
- [
- "f23f85e17f7d3a33"
- ]
- ]
- },
- {
- "id": "3e5669590088e34d",
- "type": "function",
- "z": "5641ce060432f122",
- "name": "function 17",
- "func": "// 獲取輸入的URL\nvar originalURL = msg.payload;\n\n// 使用encodeURI函數(shù)轉(zhuǎn)換URL\nvar encodedURL = encodeURI(originalURL);\n\n// 刪除末尾的逗號(hào)\nvar cleanedURL = encodedURL.replace(/,+$/, '');\n\n// 將清理后的URL存儲(chǔ)在msg.payload中\(zhòng)nmsg.payload = cleanedURL;\n\n// 返回msg對(duì)象以傳遞到下一個(gè)節(jié)點(diǎn)\nreturn msg;",
- "outputs": 1,
- "timeout": 0,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1470,
- "y": 1840,
- "wires": [
- [
- "2162eb85046df316",
- "e6304a814503d679"
- ]
- ]
- },
- {
- "id": "65545ddaebf3e8a4",
- "type": "switch",
- "z": "5641ce060432f122",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "%20",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 1410,
- "y": 1680,
- "wires": [
- [
- "2162eb85046df316"
- ],
- [
- "3e5669590088e34d"
- ]
- ]
- },
- {
- "id": "3a5605c9317eb24f",
- "type": "api-call-service",
- "z": "5641ce060432f122",
- "name": "",
- "server": "598f8fe7bc05621b",
- "version": 5,
- "debugenabled": false,
- "domain": "xiaomi_miot",
- "service": "intelligent_speaker",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "media_player.xiaomi_lx5a_7d9b_play_control"
- ],
- "data": "{"text":"沒有找到您所說的電影,可以去tv,box找找"}",
- "dataType": "jsonata",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1030,
- "y": 1520,
- "wires": [
- []
- ]
- },
- {
- "id": "931f4e09ee722274",
- "type": "switch",
- "z": "5641ce060432f122",
- "name": "",
- "property": "payload",
- "propertyType": "msg",
- "rules": [
- {
- "t": "cont",
- "v": "沒有找到包含",
- "vt": "str"
- },
- {
- "t": "else"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 850,
- "y": 1620,
- "wires": [
- [
- "3a5605c9317eb24f"
- ],
- [
- "c3e5a779dfee461f",
- "38da2c94e298a6f6",
- "8b39e6f4e4fa8774"
- ]
- ]
- },
- {
- "id": "1ee4cc39ad69ee40",
- "type": "inject",
- "z": "5641ce060432f122",
- "name": "",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "x": 990,
- "y": 1920,
- "wires": [
- [
- "081e66e145ad4ade"
- ]
- ]
- },
- {
- "id": "dac6af55d7290b5e",
- "type": "api-call-service",
- "z": "5641ce060432f122",
- "name": "",
- "server": "598f8fe7bc05621b",
- "version": 5,
- "debugenabled": false,
- "domain": "xiaomi_miot",
- "service": "intelligent_speaker",
- "areaId": [],
- "deviceId": [],
- "entityId": [
- "media_player.xiaomi_lx5a_7d9b_play_control"
- ],
- "data": "{"text":msg.name}",
- "dataType": "jsonata",
- "mergeContext": "",
- "mustacheAltTags": false,
- "outputProperties": [],
- "queue": "none",
- "x": 1410,
- "y": 1520,
- "wires": [
- []
- ]
- },
- {
- "id": "38da2c94e298a6f6",
- "type": "function",
- "z": "5641ce060432f122",
- "name": "function 18",
- "func": "\n\n\nmsg.name = "正在為您播放 " + global.get("moviename")+"請(qǐng)稍后";\nreturn msg;",
- "outputs": 1,
- "timeout": 0,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 1030,
- "y": 1580,
- "wires": [
- [
- "dac6af55d7290b5e"
- ]
- ]
- },
- {
- "id": "f4f391a64858ac59",
- "type": "function",
- "z": "5641ce060432f122",
- "name": "function 19",
- "func": "\n\nglobal.set("moviename", msg.payload);\nreturn msg;",
- "outputs": 1,
- "timeout": 0,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 930,
- "y": 2020,
- "wires": [
- []
- ]
- },
- {
- "id": "8b39e6f4e4fa8774",
- "type": "debug",
- "z": "5641ce060432f122",
- "name": "debug 302",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "true",
- "targetType": "full",
- "statusVal": "",
- "statusType": "auto",
- "x": 1130,
- "y": 1660,
- "wires": []
- },
- {
- "id": "598f8fe7bc05621b",
- "type": "server",
- "name": "Home Assistant",
- "version": 5,
- "addon": false,
- "rejectUnauthorizedCerts": false,
- "ha_boolean": "y|yes|true|on|home|open",
- "connectionDelay": true,
- "cacheJson": true,
- "heartbeat": false,
- "heartbeatInterval": "30",
- "areaSelector": "friendlyName",
- "deviceSelector": "friendlyName",
- "entitySelector": "friendlyName",
- "statusSeparator": ": ",
- "statusYear": "hidden",
- "statusMonth": "short",
- "statusDay": "numeric",
- "statusHourCycle": "default",
- "statusTimeFormat": "h:m",
- "enableGlobalContextStore": false
- },
- {
- "id": "09b787bdbe3ed75d",
- "type": "xiaoai-tts-configurator",
- "name": ""
- }
- ]
復(fù)制代碼
在nr輸入一個(gè)你想看的電影,如果出現(xiàn)下邊的url就說明成功了。恭喜你,可以隨心看電影了。
怎樣用小愛音箱控制電視 (2).png (17.63 KB, 下載次數(shù): 826)
下載附件
保存到相冊(cè)
2024-1-10 10:56 上傳
如果上邊的流導(dǎo)入有問題就直接下載附件
游客,如果您要查看本帖隱藏內(nèi)容請(qǐng) 回復(fù)
相關(guān)閱讀:
|