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

homebridge-senec-battery

v2.45.0

Published

Homebridge Senec battery

Readme

Homebridge Senec Battery Plugin

The Homebridge Senec Battery Plugin integrates your Senec Home Energy Storage System with Apple's HomeKit, allowing you to monitor and manage your energy system directly from the Home app or via Siri.

Features

  • Battery Monitoring: View the current charge level of your Senec battery.
  • Energy Flow Insights: Track live energy flows, including grid, solar, and battery statuses.
  • Custom Notifications: Set thresholds to receive alerts when battery levels reach certain percentages.
  • Automation Support: Use HomeKit automations to respond to battery conditions, such as reducing power consumption when the battery is low.
  • Secure Communication: Supports HTTPS (SSL) for secure connections.

Prerequisites

  • Homebridge: Install and configure Homebridge. See Homebridge Documentation.
  • Senec Home Energy Storage System: Ensure your Senec battery is configured and accessible on your local network.
  • Node.js: Requires Node.js version 20 or later.

Installation

  1. Install the plugin using npm:

    npm install -g homebridge-senec-battery
  2. Update your Homebridge config.json file with the plugin's configuration (see below).

  3. Restart Homebridge to activate the plugin.

Configuration

Here are the available configuration options for the plugin:

| Option | Type | Required | Description | Default | Placeholder | |--------------------|-----------|--------------|---------------------------------------------------------------------------------------------------|---------------------------|---------------------------| | platform | String | Yes | Set to "SenecBattery". Required to identify the plugin. | - | - | | name | String | Yes | The name shown in the Homebridge logs and used as the default name in HomeKit. | - | Senec-Battery-Master | | host | String | Yes | The IP address or hostname of your Senec system. Ensure the system is reachable on your network. | - | e.g. 192.168.1.100 | | verbose | Boolean | No | Enable more detailed output in Homebridge logs for troubleshooting purposes. | false | - | | ssl | Boolean | No | Switch to HTTPS for secure communication. | false | - | | sslUnsecure | Boolean | No | Ignore SSL errors (useful for self-signed certificates or testing environments). | false | - |

Example config.json

{
  "platforms": [  
    {  
      "platform": "SenecBattery",  
      "name": "Senec-Battery-Master",  
      "host": "192.168.1.100",  
      "verbose": false,  
      "ssl": false,  
      "sslUnsecure": false  
    }  
  ]  
}

Additional Notes

  • name: Changing this value after the device is added to HomeKit does not update the name within the Home app; it must be manually edited in HomeKit.
  • host: Use a static IP address or hostname for consistent operation.
  • verbose: Set to true if you want detailed logs; useful for debugging issues.
  • ssl and sslUnsecure: Enable ssl if your Senec system uses HTTPS. Set sslUnsecure to true to bypass certificate errors (e.g., when using self-signed certificates).

Usage

Once configured, the plugin will expose your Senec battery system to HomeKit.

  • View Battery Level: Check the charge status of your battery in the Home app.
  • Energy Flow Insights: Monitor live updates about grid, battery, and solar energy flows.
  • Siri Integration: Ask Siri about your battery status:
    • Example: "Hey Siri, what's the battery level of my Senec system?"
  • HomeKit Automations: Create automations based on battery status, such as dimming lights when battery levels are low.

Troubleshooting

  • No data appears in HomeKit?
    Ensure the host is correct and that your Senec system is accessible on your local network.

  • Errors in logs?
    Enable verbose logging for more details and review the logs in Homebridge.

Contribution

We welcome contributions to improve this plugin! Here's how to get involved:

  1. Fork this repository.
  2. Create a new branch for your feature or bug fix.
  3. Test your changes thoroughly.
  4. Submit a pull request with a detailed explanation of your changes.

Support

If you encounter issues or have feature requests, please open an issue on the GitHub repository.

License

This plugin is licensed under the MIT License. For details, see the LICENSE file.


Enjoy managing your energy smarter with the Homebridge Senec Battery Plugin!