HA Modbus Hardware

Hi,

I’m having at home a Siemens Logo 6 generation (modbus generation).
I was planning to upgrade this one towards the generation 8 which haves TCP/IP connection but I heard in podcasts with Paulus HA is working on a modbus dongle which enables to connect any modbus installation ‘easily’ to HA.

Do we know if this module is already existing or planned to launch?
Or are there any alternatives in the market (for a non-diy’er) to link this modbus module to HA?
Will save me a lot of Shelly modules anyway.

Thank you guys

not sure of this or other device, but it should depend on transport media of modbus. I assume one ov most common are RS485. for me I used simple cheap USB-RS485 dongle and standard modbus configuration to access values on modbus device(something like this). so in essence it is generally easy - tho it took bit of Gemini or some other at thet time AI engine troture, but I made it work.

Hello,
Logo! 8 can be set as a device on the network, experience from professional setup.
Based on that there should be no issue in controlling that via HA Modbus using TCP
With the version 8 or 9 you won’t need any additional hardware than you internal network.
Logo8 is not very advanced in security but for internal network will be ok.
Here a link to a post Home Assistant and Siemens LOGO! for complete house automation - #9 by VdR

Yes, Logo! 8, can be connected to HA over LAN running Modbus protocol. No gateway required. Works like a charm.

Since you need to upgrade, i would suggest to go with the latest Logo! 9, it is considerably more powerful (I needed three Logo! 8, could do the same with one Logo! 9). Do note that you will then also have to acquire a new license for the Logo!Soft software. You can upgrade from 6.n to 8.4, but not to 9.

The most important limitation I ran into is timing. HA (Modbus master) must poll the states of outputs (Q) and flags (M). Even using batch reads, the best I can do is every second. Just to confirm a state on a dashboard that’s fine, but if you want HA to react and take some action (like switch another light), the delay will be noticeable to the user (not a problem, but a get used to).

@AutoDIY : Maybe you know of a better way to tackle the timing challenge. Was thinking of having the Logo! set a flag if any Q or M changed. Have HA only read that one flag at a fixed rate, and only read everything if the flag was set. Would be much less polling overhead on the bus, but I’m not sure it would be faster.

If you want I can post some YAML snippets of the Modbus setup, the polling, and the light definitions in the original thread Home Assistant and Siemens LOGO! for complete house automation - #9 by VdR.

EDIT: Snippets added, see original thread (improvement suggestions very welcome!)

Hello,
I believe the 1 s is a HA limitation. If this is true you will have less polling traffic but always 1 sec refresh, even 2 because read flag and then read all.
Sincerely I don’t know, I use modbus or S7 drivers with Logo just because OPC is not there :slight_smile: , but connected with Siemens HMIs or PC based device, not HA.
I have used modbus TCP with HA with converters for heat control or ESPhome modbus proxy for other devices just for fun

Maybe a ESP modbus proxy in the middle will make everything faster but it is adding hardware overhead.
Anyway I am impressed by your home setup!