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

matterbridge-hass

v0.0.5

Published

Matterbridge hass plugin

Downloads

1,403

Readme

   Matterbridge Home Assistant plugin

npm version npm downloads Docker Version Docker Pulls Node.js CI

power by power by power by


This plugin allows you to expose the Home Assistant devices to Matter.

It is the ideal companion of the official Matterbridge Home Assistant Add-on.

Features:

  • the plugin can run with Matterbridge running in the Matterbridge Official Add-on or outside Home Assistant.
  • the connection with Home Assistant is made throught WebSocket: so Matterbridge can be also in another network if the Home Assistant host is reachable.

Supported devices:

  • switch (with state on/off)

  • light (with state on/off and attributes brightness/color_mode/color_temp/hs_color/xy_color)

  • lock (with state locked/locking/unlocking/unlocked)

  • fan (with state on/off and attributes percentage/preset_mode)

  • cover (with state open/close/opening/closing and attribute current_position)

  • climate (with state off/heat/cool/heat_cool and attribute temperature/current_temperature/target_temp_low/target_temp_high)

  • sensor (with deviceClass temperature/humidity/pressure/illuminance)

Warning: Since this plugin takes the devices from Home Assistant, it cannot be paired back to Home Assistant. This would lead to duplicate devices! If you run Matterbridge like a Home Assistant Add-on and also use other plugins to expose their devices to Home Assistant, then change to child bridge mode and pair the other plugins to Home Assistant and this plugin wherever you need it.

If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-hass and sponsoring it.

Prerequisites

Matterbridge

Follow these steps to install or update Matterbridge if it is not already installed and up to date:

npm install -g matterbridge --omit=dev

on Linux you may need the necessary permissions:

sudo npm install -g matterbridge --omit=dev

See the complete guidelines on Matterbridge for more information.

How to install the plugin

With the frontend (preferred method)

Just open the frontend, select the matterbridge-hass plugin and click on install. If you are using Matterbridge with Docker (I suggest you do it), all plugins are already loaded in the container so you just need to select and add it.

Without the frontend

On windows:

cd $HOME\Matterbridge
npm install -g matterbridge-hass --omit=dev
matterbridge -add matterbridge-hass

On linux:

cd ~/Matterbridge
sudo npm install -g matterbridge-hass --omit=dev
matterbridge -add matterbridge-hass

Then start Matterbridge from a terminal

matterbridge

How to use it

You may need to set some config values in the frontend (wait that the plugin has been configured before changing the config):

I suggest to always use the whiteList adding each device you want to expose to Matter.

If any device creates issues put it in the blackList.

host

Your Home Assistance address (eg. ws://homeassistant.local:8123 or ws://IP-ADDRESS:8123). It is better to use the IP if it is stable.

token

Home Assistant long term token used to connect to Home Assistant with WebSocket. Click on your user name in the bottom left corner of the Home Assistand frontend, then Security and create a Long-Lived Access Tokens.

whiteList

If the whiteList is defined only the devices included are exposed to Matter. Use the device name or the device id.

blackList

If the blackList is defined the devices included will not be exposed to Matter. Use the device name or the device id.

entityBlackList

The entities in the list will not be exposed for all devices. Use the entity name.

deviceEntityBlackList

List of entities not to be exposed for a single device. Enter in the first field the name of the device and in the second field add all the entity names you want to exclude for that device.

debug

Should be enabled only if you want to debug some issue using the log.

unregisterOnShutdown

Should be enabled only if you want to remove the devices from the controllers on shutdown.