owagner / modbus2mqtt Goto Github PK
View Code? Open in Web Editor NEWModbus master which publishes via MQTT
License: MIT License
Modbus master which publishes via MQTT
License: MIT License
Can i also poll the slaves via Modbus TCP ?
In the code there is no option
Zero valued registers not published to MQTT
I have multiple slaves on same rs485 bus, slave ID 1 and slave ID 2. (both SDM120 meters)
The register definition is like this:
DEFAULT,,2,>f:%.1f,1,1,4
voltage,0
power,12
DEFAULT,,,>f:%.2f
current,6
Pfactor,30
freq,70
TotalPower,342
DEFAULT,,2,>f:%.1f,1,2,4
voltage2,0
SolarVoltage,0
SolarPower,12
DEFAULT,,,>f:%.2f
Solarcurrent,6
SolarTPower,342
It reads the first meter without error. Then start with second meter gives an error on first value (voltage2,0)
then reads the rest of second meter without error.
Any way to specify a wait time between read first meter and start to read the second meter?
Thanks for this great piece of software,
Jan
HA Core 2024.4.4
HA OS 11.5
Suddenly these errors appear in the log, and the module doesn't work anymore:
File "/app/./modbus2mqtt.py", line 2, in <module>
from modbus2mqtt.modbus2mqtt import main
File "/app/modbus2mqtt/modbus2mqtt.py", line 33, in <module>
import serial
ModuleNotFoundError: No module named 'serial'
Tried 'pip install pyserial' in the console, but that doesn't work
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.