『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: dinglifeng

[流程系列] 使用IOS系统homekit自带遥控控制电视

[复制链接]

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-8-3 10:11:15 | 显示全部楼层
本帖最后由 dinglifeng 于 2021-8-3 10:15 编辑
Always_67 发表于 2021-8-2 16:24
我设置成电视了,把homekit节点从bridge改成accessory模式,家庭里面移除重新添加,就显示电视了 ...
果然 还是需要单独来
回复

使用道具 举报

5

主题

52

帖子

246

积分

中级会员

Rank: 3Rank: 3

积分
246
金钱
194
HASS币
0
发表于 2021-9-3 21:22:23 | 显示全部楼层
请问一下,我为什么只有显示开关按钮, 没有上左下右
回复

使用道具 举报

18

主题

63

帖子

927

积分

高级会员

Rank: 4

积分
927
金钱
864
HASS币
0
发表于 2021-12-12 17:03:19 | 显示全部楼层
Always_67 发表于 2021-8-2 16:24
我设置成电视了,把homekit节点从bridge改成accessory模式,家庭里面移除重新添加,就显示电视了 ...

請問 該怎麼更改..... 目前弄出來 也遇到是一間房子><
回复

使用道具 举报

18

主题

63

帖子

927

积分

高级会员

Rank: 4

积分
927
金钱
864
HASS币
0
发表于 2022-4-5 01:43:09 | 显示全部楼层
有大大能請教一下 目前用 Broadlink黑豆 來控制傳統電視 , 用米家插座(zigbee)電量來做反饋 , 但遇到用TV遙控器關閉時 , 黑豆會再送出一次 on訊號出去...... 請問是為什麼?

[{"id":"8fb2612e.4eb98","type":"tab","label":"Philips2 Television","disabled":false,"info":""},{"id":"a9e569de.eb508","type":"inject","z":"8fb2612e.4eb98","name":"TV on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"Active\":1}","payloadType":"json","x":490,"y":220,"wires":[["93bc492d.3d6848"]]},{"id":"250f61e5.cdbe8e","type":"inject","z":"8fb2612e.4eb98","name":"TV off","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"Active\":0}","payloadType":"json","x":490,"y":260,"wires":[["93bc492d.3d6848"]]},{"id":"db46bcc.eec00c","type":"debug","z":"8fb2612e.4eb98","name":"State and source output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1250,"y":60,"wires":[]},{"id":"d01e0a4e.49da68","type":"debug","z":"8fb2612e.4eb98","name":"Volume output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1140,"y":840,"wires":[]},{"id":"26b7c791.d278","type":"inject","z":"8fb2612e.4eb98","name":"TV Setup","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":500,"y":160,"wires":[["404e9088.92a208"]]},{"id":"2028cd20.56072a","type":"inject","z":"8fb2612e.4eb98","name":"Source Setup","props":[{"p":"payload","v":"","vt":"date"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":true,"onceDelay":"6","topic":"","payload":"","payloadType":"date","x":420,"y":840,"wires":[["ab0cd2f6.17b038"]]},{"id":"404e9088.92a208","type":"function","z":"8fb2612e.4eb98","name":"Setup TV","func":"var name = \"Philips2 Television\";\n\nmsg.payload = {\n \"ConfiguredName\": name,\n \"ActiveIdentifier\" : 0,\n \"SleepDiscoveryMode\" : 0,\n \"Active\" : 0\n};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":680,"y":160,"wires":[["93bc492d.3d6848"]]},{"id":"8e8be1d8.38174","type":"inject","z":"8fb2612e.4eb98","name":"Input 1","props":[{"p":"payload","v":"{\"ActiveIdentifier\":1}","vt":"json"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"ActiveIdentifier\":1}","payloadType":"json","x":490,"y":380,"wires":[["93bc492d.3d6848"]]},{"id":"27b2cba.39cb534","type":"inject","z":"8fb2612e.4eb98","name":"Input 0","props":[{"p":"payload","v":"{\"ActiveIdentifier\":0}","vt":"json"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"ActiveIdentifier\":0}","payloadType":"json","x":490,"y":340,"wires":[["93bc492d.3d6848"]]},{"id":"212a935c.2d79f4","type":"inject","z":"8fb2612e.4eb98","name":"Input 2","props":[{"p":"payload","v":"{\"ActiveIdentifier\":2}","vt":"json"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"ActiveIdentifier\":2}","payloadType":"json","x":490,"y":420,"wires":[["93bc492d.3d6848"]]},{"id":"fd8b49ca.2333b","type":"inject","z":"8fb2612e.4eb98","name":"Input 3","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"ActiveIdentifier\":3}","payloadType":"json","x":490,"y":460,"wires":[["93bc492d.3d6848"]]},{"id":"ab0cd2f6.17b038","type":"function","z":"8fb2612e.4eb98","name":"Set up inputs","func":"// This function will initialize and name inputs\n// it is set to work with 4 inputs\n\n// INPUT SOURCE NAMES\nvar input0 = \"Philips2\";\nvar input1 = \"MOD\";\nvar input2 = \"Home\";\nvar input3 = \"App Store\";\n\n// INPUT SOURCE TYPES\nvar OTHER = 0;\nvar HOME_SCREEN = 1;\nvar TUNER = 2;\nvar HDMI = 3;\nvar COMPOSITE_VIDEO = 4;\nvar S_VIDEO = 5;\nvar COMPONENT_VIDEO = 6;\nvar DVI = 7;\nvar AIRPLAY = 8;\nvar USB = 9;\nvar APPLICATION = 10;\n\n// Configure your input types based on options above\nvar input0type = HDMI;\nvar input1type = OTHER;\nvar input2type = OTHER;\nvar input3type = APPLICATION;\n\n\n// Duplicate or remove sets if you have more or fewer inputs\nvar msg0={};\nvar msg1={};\nvar msg2={};\nvar msg3={};\n\nmsg0.payload = {\n    \"Identifier\": 0,\n    \"IsConfigured\" : 1,\n    \"ConfiguredName\": input0,\n    \"InputSourceType\": input0type\n};\nmsg1.payload = {\n    \"Identifier\": 1,\n    \"IsConfigured\" : 1,\n    \"ConfiguredName\": input1,\n    \"InputSourceType\": input1type\n};\nmsg2.payload = {\n    \"Identifier\": 2,\n    \"IsConfigured\" : 1,\n    \"ConfiguredName\": input2,\n    \"InputSourceType\": input2type\n};\nmsg3.payload = {\n    \"Identifier\": 3,\n    \"IsConfigured\" : 1,\n    \"ConfiguredName\" : input3,\n    \"InputSourceType\" : input3type\n};\n\nreturn [msg0,msg1,msg2,msg3];","outputs":4,"noerr":0,"initialize":"","finalize":"","x":630,"y":840,"wires":[["8ff895bc.7b935"],["f74be9ff.fa82a8"],["497e4a93.2cfab4"],["5213369b.218d48"]]},{"id":"93bc492d.3d6848","type":"homekit-service","z":"8fb2612e.4eb98","isParent":true,"bridge":"f6a4260d.7e51e","parentService":"","name":"Philips2 Television","serviceName":"Television","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{    \"RemoteKey\":null}","waitForSetupMsg":false,"outputs":2,"x":910,"y":220,"wires":[["9db07332.5cc9"],["d86bfd6.eae14","91845793.afa5a8"]]},{"id":"983c3244.9dfbe8","type":"homekit-service","z":"8fb2612e.4eb98","isParent":false,"bridge":"f6a4260d.7e51e","parentService":"93bc492d.3d6848","name":"Television Speaker","serviceName":"TelevisionSpeaker","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{\"VolumeControlType\":1,\"VolumeSelector\":true,\"Mute\":true}","waitForSetupMsg":false,"outputs":2,"x":830,"y":760,"wires":[[],["d01e0a4e.49da68","9d9db8f5.590a38"]]},{"id":"8ff895bc.7b935","type":"homekit-service","z":"8fb2612e.4eb98","isParent":false,"bridge":"","parentService":"93bc492d.3d6848","name":"Input 0","serviceName":"InputSource","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":860,"y":820,"wires":[[],[]]},{"id":"f74be9ff.fa82a8","type":"homekit-service","z":"8fb2612e.4eb98","isParent":false,"bridge":"","parentService":"93bc492d.3d6848","name":"Input 1","serviceName":"InputSource","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":860,"y":880,"wires":[[],[]]},{"id":"497e4a93.2cfab4","type":"homekit-service","z":"8fb2612e.4eb98","isParent":false,"bridge":"","parentService":"93bc492d.3d6848","name":"Input 2","serviceName":"InputSource","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":860,"y":940,"wires":[[],[]]},{"id":"5213369b.218d48","type":"homekit-service","z":"8fb2612e.4eb98","isParent":false,"bridge":"","parentService":"93bc492d.3d6848","name":"Input 3","serviceName":"InputSource","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":860,"y":1000,"wires":[[],[]]},{"id":"a033f0fd.75fb1","type":"inject","z":"8fb2612e.4eb98","name":"find out what Characteristics","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"foo\":\"bar\"}","payloadType":"json","x":620,"y":680,"wires":[["983c3244.9dfbe8"]]},{"id":"9d9343d8.f8148","type":"api-call-service","z":"8fb2612e.4eb98","name":"Philips2 Television On/Off","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_tv","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1330,"y":160,"wires":[[]]},{"id":"9db07332.5cc9","type":"switch","z":"8fb2612e.4eb98","name":"Active","property":"payload.Active","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"0","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1110,"y":160,"wires":[["9d9343d8.f8148"],["9d9343d8.f8148"]]},{"id":"d86bfd6.eae14","type":"switch","z":"8fb2612e.4eb98","name":"ActiveIdentifier","property":"payload.ActiveIdentifier","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":1160,"y":260,"wires":[[],["d24bd3b5.a0c7a"],["c326d594.f917d8"],["8a78b8af.a82e18"]]},{"id":"8a78b8af.a82e18","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_app_store","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_app_store","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1410,"y":340,"wires":[[]]},{"id":"c326d594.f917d8","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_home","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_home","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1400,"y":300,"wires":[[]]},{"id":"d24bd3b5.a0c7a","type":"api-call-service","z":"8fb2612e.4eb98","name":"MOD ON/OFF","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.mod_on_off","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1400,"y":260,"wires":[[]]},{"id":"9d9db8f5.590a38","type":"switch","z":"8fb2612e.4eb98","name":"Volume","property":"payload.VolumeSelector","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1140,"y":780,"wires":[["57842ca0.f84424"],["86d96e5c.ecda1"]]},{"id":"57842ca0.f84424","type":"api-call-service","z":"8fb2612e.4eb98","name":"Volume Increase","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_volume_increase","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1380,"y":780,"wires":[[]]},{"id":"86d96e5c.ecda1","type":"api-call-service","z":"8fb2612e.4eb98","name":"Volume decrease","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_volume_decrease","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1390,"y":820,"wires":[[]]},{"id":"91845793.afa5a8","type":"switch","z":"8fb2612e.4eb98","name":"RemoteKey","property":"payload.RemoteKey","propertyType":"msg","rules":[{"t":"eq","v":"4","vt":"str"},{"t":"eq","v":"5","vt":"str"},{"t":"eq","v":"6","vt":"str"},{"t":"eq","v":"7","vt":"str"},{"t":"eq","v":"8","vt":"str"},{"t":"eq","v":"9","vt":"str"},{"t":"eq","v":"11","vt":"str"},{"t":"eq","v":"15","vt":"str"}],"checkall":"true","repair":false,"outputs":8,"x":1230,"y":540,"wires":[["a8b88351.b2f38"],["af9a228.45b98e"],["e5bfde90.179dd"],["678f4b12.2af0f4"],["3567981c.0d8ef8"],["9acf0762.fe7d98"],["733397b9.c38ac8"],["1f5ba1ee.2f2ffe"]]},{"id":"a8b88351.b2f38","type":"api-call-service","z":"8fb2612e.4eb98","name":"mod_channel_increase","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.mod_channel_increase","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1590,"y":400,"wires":[[]]},{"id":"af9a228.45b98e","type":"api-call-service","z":"8fb2612e.4eb98","name":"mod_channel_decrease","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.mod_channel_decrease","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1590,"y":440,"wires":[[]]},{"id":"e5bfde90.179dd","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_ARROW_LEFT","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_arrow_left","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1590,"y":480,"wires":[[]]},{"id":"678f4b12.2af0f4","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_ARROW_RIGHT","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_arrow_right","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1590,"y":520,"wires":[[]]},{"id":"3567981c.0d8ef8","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_SELECT","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_ok","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1510,"y":580,"wires":[[]]},{"id":"9acf0762.fe7d98","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_BACK","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_back","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1500,"y":620,"wires":[[]]},{"id":"733397b9.c38ac8","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_PLAY_PAUSE","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_play_pause","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":660,"wires":[[]]},{"id":"1f5ba1ee.2f2ffe","type":"api-call-service","z":"8fb2612e.4eb98","name":"philips2_Iuput source","server":"149c12be.d3cc1d","version":1,"debugenabled":false,"service_domain":"script","service":"turn_on","entityId":"script.philips2_source","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1520,"y":700,"wires":[[]]},{"id":"a7949ec4.c9316","type":"server-state-changed","z":"8fb2612e.4eb98","name":"Room2 Philips status","server":"d06297cb.c4f038","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.room2_philips","entityidfiltertype":"exact","outputinitially":true,"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,"x":450,"y":80,"wires":[["d94aaf52.cf903"]]},{"id":"d94aaf52.cf903","type":"change","z":"8fb2612e.4eb98","name":"轉換","rules":[{"t":"change","p":"topic","pt":"msg","from":"switch.room2_philips","fromt":"str","to":"","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"{\"Active\":1}","tot":"json"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"{\"Active\":0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":100,"wires":[["93bc492d.3d6848","db46bcc.eec00c"]]},{"id":"f6a4260d.7e51e","type":"homekit-bridge","bridgeName":"Television Bridge","pinCode":"111-11-111","port":"","allowInsecureRequest":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":false},{"id":"149c12be.d3cc1d","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"d06297cb.c4f038","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true}]
回复

使用道具 举报

80

主题

388

帖子

1680

积分

金牌会员

Rank: 6Rank: 6

积分
1680
金钱
1292
HASS币
0
发表于 2022-4-29 08:02:12 | 显示全部楼层
nivida shield tv 遥控码,谁能提供下
回复

使用道具 举报

80

主题

388

帖子

1680

积分

金牌会员

Rank: 6Rank: 6

积分
1680
金钱
1292
HASS币
0
发表于 2022-4-29 20:17:58 | 显示全部楼层
本帖最后由 ciasdmxhxjjpd@c 于 2022-4-30 07:33 编辑

直接调用服务,不需要再通过脚本再绕一下。


捕获.JPG

Nvdia Shield TV.json

18.22 KB, 下载次数: 17

回复

使用道具 举报

0

主题

4

帖子

50

积分

注册会员

Rank: 2

积分
50
金钱
46
HASS币
0
发表于 2022-5-9 01:38:36 | 显示全部楼层
zjp0225 发表于 2021-7-27 21:44
状态反馈和控制完全可以使用API

你好,我有导入你的json文件 请问你的流程中获取状态是请求了tv的api吗
回复

使用道具 举报

10

主题

154

帖子

583

积分

高级会员

Rank: 4

积分
583
金钱
429
HASS币
0
发表于 2022-7-23 19:46:58 | 显示全部楼层
zjp0225 发表于 2021-7-27 21:44
状态反馈和控制完全可以使用API

大佬,能把你这个索尼电视的流分享下吗?拜托了!
回复

使用道具 举报

0

主题

28

帖子

114

积分

注册会员

Rank: 2

积分
114
金钱
86
HASS币
0
发表于 2023-5-17 17:17:11 | 显示全部楼层
学习学习,回头自己折腾。
回复

使用道具 举报

0

主题

7

帖子

158

积分

注册会员

Rank: 2

积分
158
金钱
151
HASS币
0
发表于 2024-10-20 21:23:21 | 显示全部楼层
zjp0225 发表于 2021-7-27 21:44
状态反馈和控制完全可以使用API

搜到索尼的API了,确实可以,不知道其他电视有没有切换HDMI的API,我太菜了,他们的文档有点复杂,看不懂
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 17:47 , Processed in 0.190176 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表