ThisisapluginforhomebridgetocontrolanLEDstripconnectedtoanESP8266chip.ItallowsaddingtheESP8266asalightbulbtoHomeKitandcontrollingitwithSiriortheHomeApponiOS.
Requirements:AnESP8266setupwithmyURL/UDPAPIworkingwifinetworkfortheESPtoreceivecommandsservertorunhomebridgeoniOSdevicewithHomeKitSetupConnectyourLEDstriptotheESP8266andflashthedevice.Havealookhereformoreinformation.
CheckthattheESPconnectstoyourWifi.
Installhomebridgeonyourserver.Aguidecanbefoundontheprojecthomepage
Downloadthisrepositoryandcopythefilestoaseparatefolderhomebridge-ESP-LEDinyournode_modulesdirectory.Formethat's/usr/lib/node_modules
Runnpminstallinthenode_modulesdirectorytodownloadthedependencies.
Addyourconfigurationtotheconfig.json.Anexampleisincludedasconfig-sample.json.MakesurethattheidandipofthedeviceyouwanttocontrolmatchesyourESP8266-LEDconfiguration.
Optionally:Configurehomebridgetorunonsystemstartupforconvenience
SetuptheHomeKitdeviceonyouriOSdevice.Itshouldbeautomaticallydiscoveredifyouareonthesamenetwork.
ControlyourlightwithSiriortheHomeapp.
评论