Replies: 2 comments 16 replies
-
The Modbus feature requires more memory, so it is only activated with ESP32 boards equipped with additional PSRAM. I agree, this could be made more clearer in the documentation. The single topic we'll need to look into. Remember this project is open source so welcome any PRs to help the community. |
Beta Was this translation helpful? Give feedback.
-
There are different options. The selection nested/individual always shows json and affects the periodic sendings. There is another option: |
Beta Was this translation helpful? Give feedback.
-
DESCRIPTION
NOTE: Version 3.7.1 used. I'm unable to apply the dev branch firmware using either Settings/Firmware or Settings/"Upload/Download" . The system log just prints 2025-01-11 22:08:50.838 E 17: [system] Firmware upload failed - HTTP code -1.
My actual problem:
MQTT topics seem to be nested in topics containing a long JSON string regardless of the setting "Topic/Payload format" under Settings/MQTT. Perhaps I misunderstand the option, but it seems to be pretty self explainatory that "as individual topics" would suggest everything is published as... well... individual topics. The documentation has nothing on this setting apart from the obvious (that it exists and has two settings - not anything about the outcome to expect), so I'm not entirely sure I'm understanding it right.
I restarted the gateway and broker as stated in the documentation.
A secondary problem:
The checkbox to activate Modbus is greyed out and cannot be enabled. There's nothing in the docs to suggest why this is? I don't necessarily need modbusTcp, but was thinking I could use it along side MQTT since it would obviously have to behave as desired (individual "topics" for each data point).
REQUESTED INFORMATION
TO REPRODUCE
Setup the gateway with a valid device with points.
Enable MQTT with the option Topic/Payload Format set to As individual topics.
Subscribe a different device to the main/base topic (/#) to observe.
EXPECTED BEHAVIOUR
I would expect that the option "nested in a single topic" provides a single topic per device (or similar), thus maybe 3-5 topics in total; the online/offline topic, the gateway itself, the heatpump/boiler and the thermostat in a fairly minimal setup. This seems to occur, I see JSON content similar to this when subscribing (abbreviated):
I would then expect the option "as individual topics" to provide each data point in an individual topic, as per the wording. In other words, I'd expect to see stuff like this instead:
ADDITIONAL CONTEXT
The Modbus issue is secondary, but being able to enable that and set that up would likely also solve the problem. At the core; I am trying to integrate the gateway into a BMS, and when subscribing to the MQTT topics, I get them into the system as a very long string. There are tools to process this JSON string and split it up into individual datapoints, but the tool requires an ongoing fee that I'd like to avoid.
Beta Was this translation helpful? Give feedback.
All reactions