homee API包装器 与互动的图书馆 安装 npm install homee-api --save 用法 连接 const Homee = require ( 'homee-api' ) ; const homee = new Homee ( host , user , password , options ) ; homee . connect ( ) . then ( ( ) => { // } ) . catch ( ( error ) => { console . log ( error ) ; } ) ; 选项 { device : 'homeeApi' , reconnect : true , reconnectInterval : 5000 , maxRetries : Infin