Connecting openhab to emoncms with mqtt

I set up a second broker that corresponds to the mqtt server on emoncms. I want to read the power consumption values

I created a thing that reads the mqtt topic from emoncms
I created some items corresponding to emoncms thing

So data is being imported into openhab
However the issue I have is the refresh rate is too high
Most of the lines in the log are emoncms related

Do you know how can I reduce the rate at which the mqtt values are being red? or slow down the item refresh rate?

2020-02-26 19:01:41.536 [vent.ItemStateChangedEvent] - emoncms_import changed from 565 to 572
2020-02-26 19:01:42.909 [vent.ItemStateChangedEvent] - Date changed from 2020-02-26T19:00:42.893+0200 to 2020-02-26T19:01:42.896+0200
2020-02-26 19:01:47.456 [vent.ItemStateChangedEvent] - emoncms_import changed from 572 to 563
2020-02-26 19:01:53.377 [vent.ItemStateChangedEvent] - emoncms_import changed from 563 to 561
2020-02-26 19:01:56.074 [vent.ItemStateChangedEvent] - emoncms_import changed from 561 to 565
2020-02-26 19:02:13.807 [vent.ItemStateChangedEvent] - emoncms_import changed from 565 to 575
2020-02-26 19:02:22.511 [vent.ItemStateChangedEvent] - emoncms_import changed from 575 to 585
2020-02-26 19:02:25.484 [vent.ItemStateChangedEvent] - emoncms_import changed from 585 to 589
2020-02-26 19:02:28.579 [vent.ItemStateChangedEvent] - emoncms_import changed from 589 to 566
2020-02-26 19:02:34.609 [vent.ItemStateChangedEvent] - emoncms_import changed from 566 to 563

Only if you change the rate at which emoncms publishes them. Once every few seconds doesn’t seem like all that often.

so OH won’t mind that much?

what about the log file, can I do something to stop flooding it?

events.log is supposed to show all the events. “Flooded” is it’s natural state. I recommend filtering: How to watch and look through logging based on what you care about at any given time. If you must, than see openHAB - Filtering event logs for how to suppress them.

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.