#Homebridge-samsung-cast-tv
SamsungTVpluginforHomebridge
ThispluginallowsyoutocontrolyourSamsungTV(modelsuntil2014)anddChromecastwithHomeKitandSiri.TheSamsungTVwillnotpoweronovernetwork,sotheChromecastisusedtoforcetheTVon!
InstallationInstallhomebridgeusing:npminstall-ghomebridgeInstallthispluginusing:npminstall-ghomebridge-samsungtv-controlUpdateyourconfigurationfile.Seetheconfig-sample.json.Explanation:FieldDescriptionaccessoryMustalwaysbe"SamsungTV".(required)nameThenameyouwanttousetocontroltheTV.ip_addressTheinternalipaddressofyoursamsungTV.send_delayWhenswitchingtoanotherchanneltheindividualkeyswillbesendwithashortdelay(inms)betweenthem.(default400)UsageThefirstnumericcharacteristicrepresentsthevolume.Whenchangingthevolumecharacteristicthenumberrepresentsthecountoftimesthevolumeupordownkeywillbetriggered.Inotherwordstoincreasethevolumeby3units,thecharacteristicshouldbesetto3,todecreasethevolumeby2unitse.g.thevaluewouldbe-2.Bysettingvolumeto0themutekeywillbetriggered.
Thenextcharacteristicrepresentsthechannel.Tosetachanneljustsetupascenewiththenumericvalueofthechannel.
ThelastcharacteristicallowssendinganykeyfromthislistwithouttheKEY_atthebeginning.Tosendthepre-channelkeye.g.setupascenewherethischaracteristicwillbesettoPRECH.
Limitations:Thevolume,channelandkeycharacteristicssendsinglekeyswithashortdelaybetweenthemtoaccomplishtheirtask.Thereforetosetthesecharacteristicsvaluesyoushouldsetupascenewiththedesiredvalueinthecorrespondingcharacteristicssothatnoteverysinglechangewillbesendbeforeyou'vefinishedtyping.SincesomeSamsungTV'swilldisconnectfromthenetworkwhenturnedoffitisnotpossibletoturnthembackonagainovernetwork.Furthermoreitisnotpossibletoobservecurrentvaluessuchasthevolumeorthechannel.Thereforeonlychannelchangesthatwheremadethroughthispluginwillbetracked(channelchangeswiththeregularremoteforexamplecannotbetracked).
NewerSamsungTV's(from2014)Bynow,onlySamsungTV'suntil2014aresupportedbythispluginbecauseSamsungdroppedtheoldremotecontrolprotocolfromtheirnewertvseries.Samsungunfortunatelyhasnodocumentationonhowtopairwiththenewertv'sandremotecontrolthemafterwards.Thecurrentstateofreverseengineeringthenewerapicanbeseenhere(contributioniswelcome).
评论