Closed TopGoalVl closed 1 year ago
If you look at the last output your configured entries are not matched.
In the config file under devices
you have to enter the serial number of the meter (01234553590a30b1338c
), not the usb path.
Hello and good evening,
A small mistake with a big impact on my part! I didn't have that on my radar. Thanks for the quick response and professional help.
The tree structure is now correctly transferred to the MQTT broker.
The time interval for updating individual data points does not work with my configuration. What am I doing wrong? Any other tips?
Sending the timestamp to the broker might not make sense at all.
Will the Client_Id be transferred to the MQTT Broker soon if it is entered in the Config,yml?
Thank you.
Sorry, but I made a mistake with the time intervals. Everything works fine.
I recently installed the SmartMeter to MQTT bridge "sml2mqtt". The Python application is running on a RPI3-B (OS Buster) on which I previously installed Python V3.8. As can be seen in the message log, the SML messages of the EasyMeter Q3A are read, recognized and displayed correctly.
Really good programming and implementation of the MQTT bridge. Many thanks to this site.
Note: Meter number, DeviceId, user and password have been anonymized!
Now to the problems:
Extension: Is it possible to send the timestamp (per SML file) as a data point to the MQTT broker. The timestamps of the Datapoints themselves are registered in the Broker. If that's too much effort, I'm fine with that.
Tree structure and data points:
The adjustments of the time intervals, when data should be sent again, are not considered. Data is always sent to the MQTT broker every one second.
The login to the productive MQTT broker fails (see MQTT log). It works on the test server because no ClientID is required there.
I can't solve the problem on my own and would like to ask for support. Thanks in advance.
` Problem 1 documemtation:
Run with parameter -a (venv) pi@:/opt/sml2mqtt/venv $
sml2mqtt -c /opt/sml2mqtt/config.yml -a
---------- config end -------------
`
`
--------- MQTT mosquitto log --------begin----
Logon ok with clientId, Username / Password .... Exsample 2023-01-04T00:46:05: New client connected from:65144 as (p2, c1, k727, u'xxxxxxxxxx').
Logon from sml2mqtt without ClientId faild 2023-01-04T00:57:36: New connection from 192.:33087 on port 1883.
2023-01-04T00:57:36: Client disconnected due to protocol error.
--------- MQTT mosquitto log -------- end ----
(venv) pi@leuvorpi3-01:/opt/sml2mqtt/venv $ sml2mqtt -c /opt/sml2mqtt/config.yml -a
(venv) pi@leuvorpi3-01:/opt/sml2mqtt/venv $ `