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 🙏

© 2025 – Pkg Stats / Ryan Hefner

signalk-shelly2

v2.0.2

Published

Signal K Plugin For Shelly Gen 2+ devices

Readme

signalk-shelly2

npm version Node.js CI & Test

A Signal K plugin for integrating Shelly Gen 2+ smart devices into your Signal K server. This plugin automatically discovers Shelly devices on your network and provides real-time monitoring and control capabilities.

Overview

This plugin supports any Gen 2 or better Shelly device, automatically discovering them via mDNS and connecting via WebSocket for real-time data updates. It maps Shelly device components to appropriate Signal K paths, enabling seamless integration with your marine electronics system.

Features

  • Automatic Device Discovery: Uses mDNS to automatically find Shelly devices on your network
  • Real-time Updates: WebSocket connection for instant status updates
  • Component Mapping: Maps Shelly components to Signal K electrical and environmental paths
  • Device Control: Send PUT messages to control switches, lights, and other controllable components
  • Reconnection Handling: Automatic reconnection

Supported Shelly Component Types

The plugin does not support specific Shelly devices, instead it supports the following Shelly component types:

Electrical Components

  • Switch - Basic on/off switches and relays → electrical.switches
  • Light - Light controllers → electrical.switches
  • RGB - RGB color lights → electrical.switches
  • RGBW - RGBW color lights with white channel → electrical.switches

Energy Monitoring

  • EM - Energy meter → electrical.energymeter
  • EM1 - Single-phase energy meter → electrical.energymeter
  • PM1 - Power meter → electrical.powermeter
  • voltmeter - Voltage measurement → electrical.voltmeter

Environmental Sensors

  • Temperature - Temperature sensors → environment
  • Humidity - Humidity sensors → environment
  • Smoke - Smoke detectors → environment.smoke

Input/Output

  • Input - Digital inputs and sensors
  • Devicepower - Device power and battery status

Confirmed Device Support

Please report any devices you've tested so that I can add to the list. Please open a issue.

  • Shelly 1 Gen4 (S4SW-001X16EU)
  • Shelly Plus 1 Gen2 (SNSW-001X16EU, SNSW-001X15UL)
  • Shelly Plus RGBW Gen2 (SNDC-0D4P10WW)
  • Shelly Uni Plus Gen2 (SNSN-0043X)
  • Shelly Ogemray Smart relay 25A (S3PB-O3AR000001)

Troubleshooting

If you do not see any data you expect, please open an issue. Turn on debug logging for the plugin, and you'll see a message in the log Initial device status retrieved successfully from... followed by JSON data. Please include that data in your issue.

License

Apache-2.0

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Author

Scott Bender ([email protected])