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

cicciovo/homebridge-samsung-airconditioner: a script to communicate whit samsung ...

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

开源软件名称:

cicciovo/homebridge-samsung-airconditioner

开源软件地址:

https://github.com/cicciovo/homebridge-samsung-airconditioner

开源编程语言:

JavaScript 92.2%

开源软件介绍:

#Homebridge-samsung-airconditioner

Samsung Airconditioenr plugin for [Homebridge]

This allows you to control your Samsung Airconditioner with HomeKit and Siri.

THIS SCRIPT FOR NOW WORKS ONLY WITH THE AC WITH THE PORT NUMBER 8888 AND NOT WITH THE PORT 2878

##Installation

  1. Install homebridge using: npm install -g homebridge

  2. Install this plugin using: sudo npm install -g homebridge-samsung-airconditioner

  3. To obtain a token (if the clima is ON, turn OFF it) run in a shell window the file Server8889.py: python Server8889.py

    3.1 Open another shell window, copy and past the command: curl -k -H "Content-Type: application/json" -H "DeviceToken: xxxxxxxxxxx" --cert /usr/local/lib/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X POST https://192.168.1.152:8888/devicetoken/request

    3.2 In this string change 192.168.1.152 with the ip of your Airconditioner

    3.3 Send the command

    3.4 Turn On your AC

    3.5 In the window where are running the file Server8889.py should be appare the TOKEN, copy and past it in your config.json

  4. Remember to install "Samsung root certificate" in the System

    4.1 if you are on the mac double click on the certain

    4.2 if you are in Raspberry to add the root certificate this:

     sudo mkdir /usr/share/ca-certificates/local
     
     sudo cp /usr/lib/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem /usr/share/ca-certificates/local/
     
     sudo update-ca-certificates
    

    (If you are in a new system the cartificate is not valid, because the new system acpet only SHA256 certificate, and the ack_14m.pem is a SHA1 certificate, so, if do you want use this plugin, tell to your PC to use Tls version 1.0 or minor)

  5. Update your configuration file. See config.json.

    5.1 Change the ip with the ip of your AC

    5.2 Change the token with the token obtain in step 3

    5.3 if necessary change the patchCert

    5.4 If you obtain an error with this string "Power function failed /bin/sh: jq: not found" install jq with the command brew install jq

  6. If you obtain an Nan error/undefined error see if your AC is connected to the wifi or if there are a problem with certificate.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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