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-switchbot-wohand

v0.2.0

Published

これ何?(What is this?)

Downloads

3

Readme

これ何?(What is this?)

homebridge用、SwitchBot bot(wohand)Plugin。 SwitchBotの為のプラグインは他にも沢山あるけれど、自分好みのものが見つからなかったので作ってみました。

特徴・要件

  • gatttool が必要です。(gatttool required)
  • Bluetoothで直接botにコマンドを送受信する為、SwitchBot hub、SwitchBot hub mini等を必要としません。(Since commands are sent and received directly to the bot via Bluetooth, SwitchBot hub, SwitchBot hub mini, etc. are not required.)
  • UP position / DOWN position等、通常の動作では停止しない位置でhandを停止させる事が可能です。(It is possible to stop the hand at a position that does not stop under normal operation, such as the UP position / DOWN position.)

config.json 記入例


"accessories": [
    {
        "accessory": "switchbot-wohand",
        "name": "Wall Switch",
        "BleMac": "XX:XX:XX:XX:XX:XX",
        "on": "570101",
        "off": "570102"
    },
  {
    ・・・・
  }]
  • accessory [必須項目(required)]: "switchbot-wohand" 固定(Fixed value)
  • name [必須項目(required)]: お好みに(To your liking)
  • BleMac [必須項目(required)]: 公式appのBLU MACの値を入力(Enter the BLU MAC value of the official app)
  • onoff [オプション(optional)]: on:570101/off:570102、もしくはon:570104(UP)/off:570103(DOWN) または、on:570100/off:570100(button mode)のいづれかを入力。 onとoffが同じ値であるとbutton modeと判断されます。 button modeになるとswitchを定期的にoffにしようとする見えない力が働きます。 この3つの組み合わせ以外は何が起こるか分かりません。 (I don't know what will happen other than these three combinations.)[Default ⇒ on:570101 / off:570102]
  • dummy_log [オプション(optional)]: button modeの見えない力を可視化します。[Default ⇒ false]
  • schedule [オプション(optional)]: button modeの見えない力がswitchをoffにしようとする間隔。[Default ⇒ */10 * * * * *(Every 10 seconds)]
  • retry [オプション(optional)]: GET/SETに失敗した時にリトライする回数。(The number of retries when GET / SET fails.)[Default ⇒ 5]