logo elektroda
logo elektroda
X
logo elektroda

Integration of modules with RS485 interface in Home Assistant, Blynk, openHAB systems

Michal_212 4704 13
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19666062
    Michal_212
    Level 3  
    Welcome.

    I'm starting this thread because one of the electrode users made me aware that there are ready-made systems and I don't need to create everything from scratch. This person mentioned solutions such as Home Assistant, Blynk, openHAB. I would like some advice on what to choose? What should I be interested in? I would like to build a home automation system based not only on some ready-made modules, but I would also like to use my own projects. The only catch is that most of the modules I am designing would have to communicate with the server via RS485. And I would like to set up the server itself for any of the above systems at home. Will any of the systems allow me to integrate with modules with an RS485 interface? Do they have to be WiFi modules like the ESP8266?

    I would be very grateful for any advice :) .
  • ADVERTISEMENT
  • #2 19666484
    starob
    Level 29  
    Michal_212 wrote:
    The only catch is that most of the modules I design would have to communicate with the server via RS485.
    .
    For this reason I would consider Node-Red. You can easily create your own communication protocols and automations. All the "intelligence" stored in it, you can easily show in one of these systems (e.g. using MQTT) , using it mainly as a "frontend". You can also use the panel of NR itself.
    HA and OH are comparable, but it seems to me that HA is easier to learn (choice on a "what suits someone better" basis). I don't know about the others, but in HA you can Node-Red and MQTT can easily be run as an add-on.
    In this configuration and in this way, I was able to attach several devices that there was no ready integration (e.g. gas boiler, video intercom , weather station...), as well as easily change my mind and choose another system.
  • ADVERTISEMENT
  • #3 19668208
    Michal_212
    Level 3  
    In that case, I will opt for Home Assistant :) .
    So ideally I would also use Node-RED for this? But then build the logic of the whole thing on Node-RED, and only the interface on HA? Do I use Node-RED for the software logic to operate my modules, and HA for the finished devices, such as air conditioning etc.?
    Somehow after the weekend I'll put HA and Node-RED on Linux and play around with it a bit to see what it's all about :) .
  • ADVERTISEMENT
  • #4 19668988
    starob
    Level 29  
    I'm no expert on HA installation, I've only done it twice :) .
    If you are going in that direction then look for a ready-made image for your hardware, as far as I can tell installing HA on Linux is no longer supported. HA has its own Hassio system. To avoid the hassle of installation and configuration, start with HA.
    Then install the NR add-on and MQTT in HA itself - you will avoid many problems (which is important for a beginner).
    Michal_212 wrote:
    Is it best if I also use Node-RED for this? But then build the logic of the whole thing on Node-RED, and only the interface on HA?
    .
    ... both yes and no - it is sometimes not worth breaking down an open door and sometimes it is better to add a ready-made intergration in HA.
    In NR integrate only devices without HA support.
    What hardware do you want to install this on?
  • #5 19669303
    xury
    Automation specialist
    As far as NR is concerned, it can completely replace HA because there is the possibility of installing a dashboard.
    The fact is that NR works very nicely with HA. As for installing HA on Linux, there are two schools:
    Installing Proxmox and then a virtual HassOS or installing docker and then installing containers with hassOS and additional ones.
    I prefer the second method, as it is a waste of RAM wasted on virtual systems.
  • #6 19669333
    starob
    Level 29  
    xury wrote:
    because I pity the RAM wasted on virtual systems.
    .
    It's when you declare a certain size of RAM in the VM that you permanently lose it, even if the machine doesn't use it?
    I have a VM on a Qnap NAS, on average HA shows 20% RAM occupancy - do you think I can safely reduce the allocation?
  • ADVERTISEMENT
  • #7 19669356
    xury
    Automation specialist
    This is not what I meant. In docker the "guest system" uses host resources to the maximum extent it can e.g. kernel, libraries etc.
    As I only have 8GB of RAM on my NUC and a lot of services, I prefer docker.
    If everything works fine for you then there is no point in rearranging anything. RAM not used is RAM wasted.
    I save because I have Domoticz, HA, NR, Plex, Grafana, influx-db and many more less important ones on one machine.
  • #8 19669364
    starob
    Level 29  
    xury wrote:
    If everything is working fine at your place then there is no point in rearranging anything.

    That's basically it, but it wouldn't hurt to know more.:)
    Thanks
  • #9 19672991
    Michal_212
    Level 3  
    starob wrote:
    What hardware do you want to install this on?
    .

    I have a 3.5" minicomputer with a dual-core Intel processor, 4GB RAM and a 32GB SSD, so I'd like to put it on it.
    Do you want me to put Linux on it? Because I guess you have to run docker on Linux anyway? Is there a guide to installing the whole thing?
  • #10 19673175
    starob
    Level 29  
    Because of the ability to easily create snapshots (easy after a failure to restore from a backup) I would normally recommend Proxmox and HA on it, but a little short on RAM and SSD.
    https://hejdom.pl/blog/22-home-assistant/383-...-assistant-supervisor-instalacja-proxmox.html
    Analyse w/ https://www.home-assistant.io/installation/ for requirements.
    starob wrote:
    this installation on Linux already HA is not supported
    .
    However, they have changed their mind and it is possible on debian [sic!]
    https://hejdom.pl/blog/22-home-assistant/309-...-assistant-debian-supervisor-instalation.html
    For now, bet on what you have and see if "THAT" suits you at all, even if it should work a bit "squarely".
  • #11 19673940
    Michal_212
    Level 3  
    OMG, I'm already lost in this :D Here some Dokers, here containers, still some Hassio and Proxmox....
    The basic question is whether I will be able to install the drivers for the USB-RS485 converter there somewhere?
    And on the Home Assistant website, where there are various installations to choose from there is also something like Generic x86-64, isn't it better to be interested in that? Then maybe you wouldn't need any virtual machine?
  • #12 19674006
    starob
    Level 29  
    Michal_212 wrote:
    Here some Dockers, here containers, still some Hassio and Proxmox...
    .
    Look at the Docker logo it will explain where the containers come from :) .

    Michal_212 wrote:
    Basic question will I be able to install the drivers for the USB-RS485 converter in there somewhere?
    .
    If it is a converter with automatic control of the transmission direction then no special drivers are required.
    Michal_212 wrote:
    And on the Home Assistant website where there are various installations to choose from there is also something like Generic x86-64, isn't that better to be interested in?
    .
    It's not better, but it can be.
    I have two virtual machines. One for normal work and the other for testing e.g. if updates work properly.
    I switch off the main one, switch on the test one updates and tests.
    It may also happen that you need 'real' Linux - what then? ..buy a second computer?
  • #13 19674143
    Michal_212
    Level 3  
    starob wrote:
    Look at the Docker logo and it will explain where the containers come from
    .

    Well, yes, only that when I click on the installation of at least on Raspberry (on the Home Assistance website), there in the installation instructions there is also something about containers and Docker, while it seems that Docker is mainly used in the case of installation on Debian :D .

    I would understand if it was still the case that I wanted to install it on Windows, then I would expect to need a virtual machine.

    starob wrote:
    It could also happen that you need "real" Linux - what then? ..buy a second computer?
    .

    But for example installing Home Assistant on a Raspberry then I wouldn't have access to "real" linux either no? Or would I? :D

    By the way, it is not known whether installing this Generic x86-64 version would then be able to back up Home Assistant and whether support for this method of installation would cease after some time.
  • #14 19674201
    starob
    Level 29  
    HA always allows you to take your own snapshots, but everything has to be set up from scratch and only then can you restore it from within HA (provided you have copied it somewhere externally)
    Michal_212 wrote:
    But for example installing Home Assistant on a Raspberry then I wouldn't have access to "real" Linux either, no?
    .
    .. well no, because it's not the kind of Linux you're used to
    With virtualisation you take snapshots of the whole system and restore everything with one click.

    Try different methods and you can judge for yourself. You don't lose anything because you are just starting out.

Topic summary

✨ The discussion revolves around integrating RS485 interface modules with home automation systems such as Home Assistant (HA), Blynk, and openHAB. Users express interest in utilizing both ready-made modules and custom projects, with a focus on the compatibility of these systems with RS485 communication. Recommendations include using Node-RED alongside Home Assistant for enhanced automation capabilities, as it allows for custom communication protocols and can serve as a frontend. Users are advised to start with Home Assistant's Hassio system for easier installation and configuration, and to consider using Docker for resource efficiency. The conversation also touches on installation methods, hardware requirements, and the ability to install drivers for USB-RS485 converters.

FAQ

TL;DR: On modest hardware (e.g., 8 GB RAM), Docker keeps HA/Node‑RED light; "RAM not used is RAM wasted." This FAQ shows how to bridge RS485 via Node‑RED+MQTT and choose HA installs without overcomplicating. [Elektroda, xury, post #19669356]

Why it matters: Makers integrating RS485 devices need a clear, low‑overhead path into Home Assistant without mandatory Wi‑Fi modules.

Quick Facts

Can I integrate RS485 modules with Home Assistant without Wi‑Fi?

Yes. Use Node‑RED to implement your RS485 protocol and present data to Home Assistant via MQTT. Treat HA as the frontend while Node‑RED handles device logic. You can also use Node‑RED’s own dashboard if you prefer. "You can easily create your own communication protocols" and surface them in HA with MQTT. [Elektroda, starob, post #19666484]

Do I need special drivers for my USB‑RS485 adapter?

Not if the adapter controls TX/RX direction automatically. In that case, no special drivers are required. Your system will see a serial interface you can use from Node‑RED or other tools. Choose auto‑direction hardware to avoid manual DE/RE control. [Elektroda, starob, post #19674006]

Should I put all automation logic in Node‑RED and use HA only as a UI?

Use both wisely. Build flows in Node‑RED for devices without native HA support, and use HA’s built‑in integrations where available. "Integrate only devices without HA support" in Node‑RED to reduce complexity and maintenance. This balances flexibility with stability. [Elektroda, starob, post #19668988]

Is Node‑RED enough to replace Home Assistant?

It can be. "NR can completely replace HA because there is the possibility of installing a dashboard." Many pair NR with HA since they work well together. Start with HA’s add‑on for Node‑RED, then decide whether you prefer NR’s dashboard or HA’s UI. [Elektroda, xury, post #19669303]

What’s the simplest supported way to install HA on a small x86 PC?

Two practical paths: Proxmox + HA for easy VM snapshots, or a Debian install with HA Supervisor. The Debian Supervisor path is supported again. If resources are tight, start with what you have and evaluate performance before optimizing. [Elektroda, starob, post #19673175]

Docker or Proxmox: which is better when RAM is limited?

Both work, but many prefer Docker on lean systems. "I prefer the second method, as it is a waste of RAM on virtual systems." Docker shares the host kernel, reducing overhead. Proxmox adds VM isolation and snapshots at a RAM cost. [Elektroda, xury, post #19669303]

How does Docker compare to VMs in memory usage?

Docker containers reuse the host kernel and libraries, reducing duplication. One user runs Domoticz, HA, Node‑RED, Plex, Grafana, and InfluxDB on an 8 GB NUC. "RAM not used is RAM wasted." Containers help fit more services on modest hardware. [Elektroda, xury, post #19669356]

Can I install HA directly (Generic x86‑64) instead of virtualizing?

Yes. It’s not always better, but it works. Virtualization lets you keep separate test and production systems and snapshot them easily. If you later need a full Linux host for other tasks, VMs avoid buying another box. [Elektroda, starob, post #19674006]

Will HA on Linux still be supported?

Yes for Debian with Supervisor. Support shifted, but "they have changed their mind and it is possible on Debian." Check HA’s current guidance, but Debian + Supervisor is a valid path again. [Elektroda, starob, post #19673175]

How do I back up and restore HA safely?

Use HA snapshots, and copy them off the machine. Restore from within HA after reinstalling the base system. With virtualization, take full VM snapshots for one‑click rollback. Edge case: if you do not copy snapshots externally, a disk failure leaves nothing to restore. [Elektroda, starob, post #19674201]

How do I start: RS485 → Node‑RED → MQTT → Home Assistant?

  1. Install HA and enable the Node‑RED and MQTT add‑ons.
  2. Implement your RS485 protocol in Node‑RED flows.
  3. Publish device states via MQTT and display them in HA. This pattern decouples transport from UI and scales well. [Elektroda, starob, post #19666484]

Is Home Assistant easier to learn than openHAB?

They’re comparable, but HA tends to be easier for newcomers. "HA and OH are comparable, but it seems to me that HA is easier to learn." Pick the ecosystem that fits your habits and hardware. [Elektroda, starob, post #19666484]

How do I surface Node‑RED logic into HA’s UI?

Publish Node‑RED outputs to MQTT topics. Add HA entities that subscribe to those topics. Use HA’s Lovelace dashboard for controls and status. This keeps HA as the frontend and Node‑RED as the logic engine. [Elektroda, starob, post #19666484]

Should I just start with my existing hardware and refine later?

Yes. Get HA running with your current setup and test real workloads. It might feel a bit “square,” but you will quickly learn what to optimize next. Snapshot‑friendly setups ease iteration and recovery. [Elektroda, starob, post #19673175]
ADVERTISEMENT