homebridge-phicomm-m1
v0.1.1
Published
homebridge plugin for Phicomm M1
Downloads
3
Readme
homebridge-phicomm-m1
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
- Phicomm M1
Features
- M1 data parsing
- Led light level control
- Heartbeat
- 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
- If Your Router doesn't supports dnsmasq You can read the Wiki https://homekit.loli.ren/docs/show/81 to use MITM to get the data
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
- Rewrite the support for forward
- Change some info to debug
0.1.0
- Add error control for socket
0.0.9
- Fix the wrong logic of heartbeat
- Fix hcho value
0.0.8
- Add support for Heartbeat
- Rewrite Device
0.0.7
- Fix Readme
0.0.6
- Fix the brightness level to 0 25 100
- Change 443 forwarding
0.0.5
- add support for 443 forwarding
- rewrite led support
0.0.4
- add support for forward Data
0.0.3
- add support for led brightness(Beta)
0.0.2
- fix unrefreshing AirQuality
0.0.1
- add support for Phicomm M1.