Update README.md
parent
c664117971
commit
ad8d73f6e5
30
README.md
30
README.md
|
@ -1,34 +1,14 @@
|
||||||
# ModbusMQTT
|
# ModbusMQTT
|
||||||
|
|
||||||
Very rough for now.
|
A bridge between Modbus devices and MQTT.
|
||||||
|
|
||||||
## Topic spec
|
It is early days, but the plan is:
|
||||||
|
|
||||||
```
|
* Support custom Modbus protocols (Sungrow WiNet-S has been implemented)
|
||||||
prefix/status -> { "status": "running" } # last-will message here too
|
* Support _setting_ holding registers over MQTT
|
||||||
|
* Support optional auto-configuration of Home Assistant entities, including using [MQTT Number](https://www.home-assistant.io/integrations/number.mqtt/) et al for holding registers, to allow setting the value.
|
||||||
|
|
||||||
prefix/connect/<connection> <- {
|
|
||||||
"host": "localhost",
|
|
||||||
"port": 502,
|
|
||||||
"slave": 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
prefix/status/<connection> -> {
|
|
||||||
"host": "localhost",
|
|
||||||
"port": 502,
|
|
||||||
"slave": 1,
|
|
||||||
"status": "connected"
|
|
||||||
}
|
|
||||||
|
|
||||||
prefix/logs/<connection> -> { "message": "log message", level: "level" }
|
|
||||||
|
|
||||||
prefix/connection/<connection>/monitor[/opt-name] <- {
|
|
||||||
"address": 5100,
|
|
||||||
"type": "holding|input",
|
|
||||||
"count": 1,
|
|
||||||
"interval": 10, // seconds
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Similar projects
|
## Similar projects
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue