0.1.1 • Published 6 years ago

homebridge-phicomm-m1 v0.1.1

Weekly downloads
3
License
GPLV3
Repository
github
Last release
6 years ago

homebridge-phicomm-m1

npm version

homebridge plugin for Phicomm M1

斐讯悟空M1中文使用教程请参考 https://homekit.loli.ren/docs/show/78

欢迎加入我们的QQ群 545171648 讨论
QQ Group:545171648
Telegram Group: https://t.me/joinchat/EujYfA-JKSwpRlXURD1t6g

This plugin is based on Zackr's Domoticz Plugin
https://www.domoticz.cn/forum/viewtopic.php?f=11&t=165

Supported Types

  1. Phicomm M1

Features

  1. M1 data parsing
  2. Led light level control
  3. Heartbeat
  4. Online in APP

Requirement

  • If Your Router supports dnsmasq: edit /etc/dnsmasq.conf on your router
    Add rules like this:
address=/.aircat.phicomm.com/192.168.1.5

192.168.1.5 should be changed to your HomeBridge's IP

Forward

If you want to use it in HomeAssistant or Domoticz, You can set forwardTo to your HA or Domoticz's ip and port.
If you want to send the data back to Phicomm, You can set forwardTo to 114.141.173.62:9000.

Heartbeat

Heartbeat is a packet which can let the device send the data back to server. The unit of Heartbeat is Second.
So if you set 5 in config, the Heartbeat packet will be sent to all connected and unconnected devices every 5 Second

Configuration

"platforms": [
    {
        "platform"  : "PhicommM1Platform" ,
        "heartbeat" : 5 ,
        "defaultValue": {
            "192.168.31.92": "PhicommM1"
        }
    }
]

Forward Data:

"platforms": [
    {
        "platform"  : "PhicommM1Platform",
        "heartbeat" : 5 ,
        "forwardTo" : "192.168.31.246:15000",
        "defaultValue": {
            "192.168.31.92": "PhicommM1"
        }
    }
]

Forward Data To Phicomm:

"platforms": [
    {
        "platform"  : "PhicommM1Platform",
        "heartbeat" : 5 ,
        "forwardTo" : "114.141.173.62:9000",
        "defaultValue": {
            "192.168.31.92": "PhicommM1"
        }
    }
]

Enable Port 443 Forwarding

"platforms": [
    {
        "platform"  : "PhicommM1Platform",
        "heartbeat" : 5 ,
        "forwardTo" : "192.168.31.246:15000",
        "enable443" : true,
        "defaultValue": {
            "192.168.31.92": "PhicommM1"
        }
    }
]

Version Logs

0.1.1

  1. Rewrite the support for forward
  2. Change some info to debug

0.1.0

  1. Add error control for socket

0.0.9

  1. Fix the wrong logic of heartbeat
  2. Fix hcho value

0.0.8

  1. Add support for Heartbeat
  2. Rewrite Device

0.0.7

  1. Fix Readme

0.0.6

  1. Fix the brightness level to 0 25 100
  2. Change 443 forwarding

0.0.5

  1. add support for 443 forwarding
  2. rewrite led support

0.0.4

  1. add support for forward Data

0.0.3

  1. add support for led brightness(Beta)

0.0.2

  1. fix unrefreshing AirQuality

0.0.1

  1. add support for Phicomm M1.
0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago