rdmtc/RedMatic
About
Node-RED packaged as an Addon for Homematic CCU3, openccu-lite, and OpenCCU 🤹♂️
Systems & InfrastructureMeasured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
Node-RED as Addon for the Homematic CCU3 and OpenCCU
Only node-red-contrib-ccu comes preinstalled — any additional nodes (e.g. dashboard, HomeKit, Matter) are installed on demand via the Node-RED palette manager. Known and accepted limitation: npm packages / nodes with binary (native) dependencies can not be installed on the CCU — there is no compiler toolchain on the CCU, and precompiled binaries are not shipped.
RedMatic packages Node-RED as a CCU Addon, a software package that can be comfortably installed on a Homematic CCU3 or OpenCCU (formerly RaspberryMatic) via the WebUI. Homematic is a series of smart home automation products by the manufacturer eQ-3, popular especially in Germany.
The basis is formed by Node-RED with the CCU Nodes for Node-RED. These components offer the possibility to visually and easily create rules, automations, scripts and connections to external services and systems for a Homematic System. To a large extent even without programming knowledge. In the Wiki you can find more information about Node-RED and some application examples (so-called Flows).
RedMatic as a bridge from the CCU to MQTT, Home Assistant, Alexa, Apple Home, Google Home, ...
RedMatic is a good way to connect a Homematic CCU to other systems - right on the CCU, without an additional server:
- MQTT - the ccu-mqtt node publishes all datapoints with a freely configurable topic and payload structure and accepts commands.
- Home Assistant - the ccu-homeassistant node adds MQTT auto-discovery on top of ccu-mqtt: selected devices show up as entities in Home Assistant automatically.
- Matter - RedMatic-Matter exposes Homematic devices as a Matter bridge, usable e.g. with Apple Home, Amazon Alexa and Google Home.
- HomeKit - RedMatic-HomeKit exposes Homematic devices as HomeKit accessories. (A possible complement to Matter for Apple users, to work around the missing Matter support for certain devices such as garage doors or irrigation systems.)
All bridges share a single ccu-connection; devices are exposed opt-in by ticking
them in the editor. Matter and HomeKit are installed via the Node-RED palette manager,
MQTT and Home Assistant ship with the preinstalled CCU nodes.
Why on the CCU rather than with an external bridge project? There are good alternatives such as CCU-Jack, openccu-loom or matterbridge-homematic. The CCU's interface processes (rfd, hs485d, HmIPServer) are, however, sensitive to many concurrent RPC event subscribers and to network hiccups. RedMatic funnels all bridges through a single subscriber per interface, talks the more efficient BIN-RPC instead of XML-RPC to rfd and hs485d, and keeps all RPC traffic on the CCU's loopback interface - network dropouts never reach the CCU processes at all.
What can sit on the other side of the MQTT bridge - two projects by the RedMatic author that understand RedMatic's discovery data out of the box:
- feezal - build MQTT dashboards and apps visually in the browser (WYSIWYG editor, Web Components, PWA, export as a static page or Android/iOS app). Detects the devices RedMatic announces via auto-discovery and wires them up with one click - a modern replacement for the removed RedMatic-WebApp.
- she - smart home engine: automations as plain JavaScript scripts with MQTT, a built-in Matter controller, scheduler and a web IDE with AI assistant. For those who prefer writing logic in code rather than flows, or are looking for a central engine beyond the usual suspects (e.g. Home Assistant or ioBroker) 😉
Automating with Node-RED
In addition, a large and active community around Node-RED created a library of thousands of additional nodes which can be installed easily and offer connections to various other services and systems - such as KNX, Loxone, various Smart TVs and AV receivers, Sonos, Hue, Amazon Alexa, Google Home, various databases such as InfluxDB or MySQL, web services to query weather data and much more.
RedMatic can thus - especially for those who don't want to run another server besides the CCU - provide an alternative to a "mature" Smart Home System such as Home Assistant, ioBroker, OpenHAB or FHEM. For the automation of a Homematic system, RedMatic can also be used as an alternative or supplement to "Rega" programs/scripts.
Requirements
RedMatic is suitable for the CCU3 (and piVCCU3) with firmware 3.61.5 or newer and for current OpenCCU on the architectures armv7l (e.g. Raspberry Pi 2), aarch64 (e.g. Raspberry Pi 3/4/5) and x86_64 (e.g. ova, intelnuc, containers).
On the CCU1, CCU2 and on armv6l systems (Raspberry Pi 1/Zero) RedMatic can not be used.
For Matter (RedMatic-Matter) IPv6 must be enabled on the LAN (a link-local address is enough; RedMatic creates it on the CCU3 at start if it is missing), and the Matter controller (Apple TV/HomePod, Echo, Nest Hub, Home Assistant) must be on the same network segment as the CCU.
A modern browser is required to use the web interfaces, Internet Explorer is not supported.
Quick Start
On the Releases page the file redmatic-<version>.tar.gz is available for download. After the installation of the addon via the Homematic WebUI (Control Panel -> additional software) and the subsequent reboot of the CCU, Node-RED is reachable at http://<ccu-address>/addons/red. Patience is required during installation, it can take a few minutes.
Support, Contributing
For feedback of any kind, questions, suggestions and wishes please use the discussion forum, for bug reports the Issue Tracker.
Participation in any form is welcome and desired, especially all users are invited to extend the list of successfully tested nodes, to publish sample flows and to contribute to the improvement and extension of the documentation.
No donations will be accepted, but I would be happy if the successful usage of this software is acknowledged by giving the project a Github star ⭐️
Documentation
Sorry, the Documentation is not yet translated into English. German Documentation
RedMatic-HomeKit and RedMatic-Matter after a RedMatic update
After an update of RedMatic, RedMatic also brings the nodes RedMatic-HomeKit and RedMatic-Matter to their newest version - whichever way RedMatic is updated (the CCU's additional software page, the update button of the RedMatic settings, the Addons page of openccu-lite). The setting for it is on RedMatic's settings page and is switched on, also on systems that come from an older version.
- At the first start after the update Node-RED starts as usual. Beside it RedMatic asks the npm registry for newer versions of the two packages, installs them in one run into the Node-RED directory (the way the palette does) and then restarts Node-RED once. When there is nothing newer, nothing happens.
- Only these two packages, and only when they are installed. Other nodes stay as they are.
- It takes the newest version that fits this RedMatic version's Node.js and Node-RED; never a prerelease.
- A package that has an exact version (
4.1.4instead of~4.1.4) or another source (file, git, URL) in/usr/local/addons/redmatic/var/package.jsonis not touched. - Without a connection to the npm registry, or when npm fails, everything stays as it is: Node-RED keeps running, the message is in the log and on the settings page, and the next starts of RedMatic try again (three times per RedMatic update in all).
- When the setting is off at the update, the packages stay untouched until the next RedMatic update; they can be updated by hand in Node-RED's palette at any time.
openccu-lite
openccu-lite is a Homematic CCU firmware based on OpenCCU without ReGaHSS (under development, for test systems only). RedMatic runs on it with the same package, the same settings and the same flows as on a CCU3 or OpenCCU, and is installed from the system's addon catalogue (Addons → Catalogue). Whether RedMatic runs on a CCU or on openccu-lite is detected at runtime; nothing has to be configured.
- The
node-red-contrib-ccunodes reachrfd,hs485dandhmipserverthrough the system's RPC interface (lite-rpc), without callback servers of their own. This is the default: the system issues RedMatic a token of its own for it, and an existing connection is moved over once at the first start (one line in the log). To keep the direct connection, set openccu-lite interfaces in the connection node to CCU. Device, channel, room and function names come from the system's metadata API instead of ReGaHSS;msg.channelName,msg.rooms,msg.functionsand the room/function filters keep their shape. When Node-RED does not run on the system itself, an API token of the system goes into the connection node's openccu-lite token field. - The editor login with Benutzer der Zentrale uses the system's own users on openccu-lite.
- There are no system variables, programs or HM-Script. The
ccu-sysvar,ccu-program,ccu-scriptandccu-pollnodes stay in the flows but answer every message with an error. - Node-RED and the addon log into the journal (
journalctl -t node-red -t redmatic); the settings page's log reads it from there.
Licenses
- RedMatic © 2018-2026 Sebastian Raff and RedMatic Contributors, licensed under Apache License 2.0
- RedMatic Documentation © 2018-2026 Sebastian Raff and RedMatic Contributors, licensed under CC BY-SA License 4.0
- Third-party components are listed in the SBOM files (CycloneDX) attached to each release; the full license texts ship inside the addon in each package's
node_modulesdirectory
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Explore related projects
Loading…