• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

karlg100/homebridge-smartstart: Viper/Directed Remote SmartStart Integration for ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

karlg100/homebridge-smartstart

开源软件地址:

https://github.com/karlg100/homebridge-smartstart

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Smartstart Plugin

Example config.json:

One vehicle

   "accessories": [
       {
           "accessory": "SmartStart",
           "name": "Civic",
           "username": "[username]",
           "password": "[password]",
           "delay": 900000
       },
       {
           "accessory": "SmartStartLock",
           "name": "Civic",
           "username": "[username]",
           "password": "[password]",
       }
   ]

Or multiple vehicles

   "accessories": [
       {
           "accessory": "SmartStart",
           "name": "Odyssey",
           "username": "[username]",
           "password": "[password]",
           "deviceIndex": 0,
           "delay": 900000
       },
       {
           "accessory": "SmartStartLock",
           "name": "Odyssey",
           "username": "[username]",
           "password": "[password]",
           "deviceIndex": 0,
       },
       {
           "accessory": "SmartStart",
           "name": "Ridgeline",
           "username": "[username]",
           "password": "[password]",
           "deviceIndex": 1,
           "delay": 900000
       },
       {
           "accessory": "SmartStartLock",
           "name": "Ridgeline",
           "username": "[username]",
           "password": "[password]",
           "deviceIndex": 1,
       }
   ]

What does this do?

This plugin enables your SmartStart remote starter to remote start, stop, lock/arm and unlock/disarm your vehicle to be controlled by HomeKit (and Siri) via homebridge. Install using the standard homebridge instructions, and add this plugin.

  • accessory - Use SmartStart for remote smart support and/or use SmartStartLock for remote lock/arm and unlock/disarm
  • name - give your vehicle a name. Can be anything you like
  • username - your username you use to login to the app on your phone to control your vehicle
  • password - the password to the same account
  • deviceIndex - if you have one vehicle, use 0. For second vehicle use 1, third use 2, and so on.
  • delay - the default is a 15 min runtime. This will turn the switch state to the off position after 15 mins, unless you turn it off manually (and stop the car)

This is a as simple as it gets implementation

Using the SmartStart npm module, this will just send a "remote" action to your vehicle. There is no state information at this time that's accessible. (somehow the app is able to retrieve the status of the vehicle, but it costs an "action" which accounts are limited to a number per year, and the API is not strait forward)

Locking/unlocking is also not implemented.

How to install

sudo npm install -g homebridge-smartstart

Pro-tip

If you have multiple vehicles, and once they are all working and tested via HomeKit, create a room called Vehicles. (or cars, or whatever you'd like to call the group) You can then tell Siri "start vehicles" or "unlock vehicles" and it will kick a smartstart action to all of them at the same time. If you have HomeKit sharing setup, your other family members will be able to also see if the vehicles have been started.

Todo

  • implement status syncing with cloud. Should be done in a way that keeps the 5000 actions/year in mind so you don't blow out annual subscriptions. Note that remote control and local unlock/lock actions won't be reflicted in homekit.
  • maybe turn into a platform and auto-discover all devices

Credits

This plugin was forked from and inspired by homebridge-delay-switch, homebridge-simple-switch-example and the alexa-smartstart and smartstart npm by @dale3h. Without these last two modules, this homebridge module wouldn't exist.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap