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-toon-platform

v0.9.7

Published

An platform plugin to disclose Toon and its connected devices to HomeKit

Downloads

7

Readme

This plugin enables homebridge to communicate with Toon and its connected devices via HomeKit.

npm install -g homebridge-toon-platform

Configuration

The configuration file consists of the following options to configure

    {
    "platforms": [
        {
            "name": "<Put your Toons name>",
            "apiToken": "<Put your API token from Eneco here>",
            "switch_hue": false,
            "switch_smoke": true or false,
            "switch_wallplug": true or false,
            "AgreementIndex": number,
            "refreshRate": number, 
            "platform": "Toon-Platform"
        },
      ], 
    }

API TOKEN:

To make the plugin work you need to obtain a consumer_key from developer.toon.eu The following should be added to the homebridge config.json:

An API token which is valid for 10 years can be obtained via https://api.toon.eu/toonapi-accesstoken?tenant_id=eneco&client_id=<consumer_key>

SWITCHES:

The config identifies 3 diffent swithes that can be set to make connected devices to your Toon visible in Apple Homekit. Switches can be set true of false. (Only Hue Lights are defaulted to false). False results in not importing connected devices / True results in importing (if any) connected devices

  • switch_hue -> make connected Philips Hue lights visible in HomeKit (since Philips HUE bij default can be make available to Home Kit this is still work to do )

  • switch_smoke -> make connected Fibaro smoke detectors available in HomeKit, with BatteryLevel indicator. The action on the EVENT SMOKE_DETECTED is still work to do.

  • switch_wallplug -> make connected Fibaro Wallplugs available in HomeKit, with Actuel Power Consumption and Daily Power Consumption as custom characteristics available in the EVE App.

AGREEMENT SELECTION:

The plugin automatically selects the first agreement in the list, however if agreement selection is necessary, add the following config parameter. "AgreementIndex": . Default this numbus is 0.

The plugin automatically lists the available options in the Homebridge log.

REFRESH RATE

Although events are handeld directly, retrieving consumption data from Eneco's service is done at an interval. Default this interval is set to 300 seconds (300.000 msecs) to aviod limit rate errors in your Homebridge setup. Limit rate erros with lead to up losing the ability to retrieve consumption data and switch connected devices for a certain time. You can customize the interval to your liking by specifing a interval period in msecs at

TO DO:

  • Smoke Detectors: Implement an actions when Toon Smoke detectors detect smoke or during a Test Alarm
  • Hue lights: Complete implementation still needs to be done
  • ThermoStat: Implement the other comsumption indicators as custom charateristics to be visible in de EVE App.