npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-phicomm-m1

v0.1.1

Published

homebridge plugin for Phicomm M1

Downloads

3

Readme

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

  • 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

  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.