IOT Link - Windows Management using MQTT

Hi ido_1,
could you share your script for the volume increase please?

Anyone having the issues where the connection is duplicated? I am using the MQTT Broker addon. And when I send a topic to IOT Live it sends it 5 timesā€¦

Aka running commands/notify is sending 5 notifications

Is this project dead? Iā€™ve reinstalled 2 different versions, checked configs, and elevated permissions and I still cannot get this thing to post any sensor data other than the LWT ON / OFF message.

Hi folks,

Today Iā€™m releasing IOTLink v2.1 which brings hopefully several important fixes to our recent connection and crashing issues. I also have some important information, so read carefully before installing:

  • Please, stop the service, uninstall and restart your computer before installing this version, to avoid conflicts with the previous one. In Addition, the config file now have more important configurations, so you need to redo your edits there.
  • On the previous versions there were some memory leaks with the Audio Sensor, which caused memory skyrockting after sleep/hibernate and audio device changes. While I tried to apply a temporary fix to the Audio Monitoring, it will be disabled by default until I work in a better version. If you want to enable to at your own risk, just edit the config.yaml file in the monitor addon folder, and let me know if the memory leak still happening or not.
  • IOTLink now listen to a global topic (default: iotlink/all). Therefore, if you have more than one machine with IOTLink and you want to send a command to all of them, just use IOTLink/all instead of IOTLink/[domain]/[machine-name].
  • I would really appreciate if .NET developers could join me and search for optimations and better way of doing things.
  • If you can not code but want to help, spread the word about the project, and also see that page: https://gitlab.com/iotlink/iotlink/-/wikis/Supporters

That being said, IOTLink v2.1 can be downloaded at our page: https://iotlink.gitlab.io/

Release Notes:

  • Fixed Audio Monitoring being a huge source of memory leaking.
  • Fixed MQTT reconnecting several times a day.
  • Fixed auto-discovery not setting up availability topic.
  • Fixed domain prefix not being used in discovery options.
  • Fixed a few log errors about suspending and hibernating.
  • Possible fix for service spawning several agent (duplicating commands and notifications).
  • Implemented MQTT Keep-Alive configuration.
  • Implemented audio monitoring for multiple devices.
  • Implemented global topic listening for users with more than one computer.

Regards,
Alexandre Leites.

4 Likes

Thanks for the update, will test and report back if there are any problems.

Hello,

Been getting this error in the logs with the update:

[WORKGROUP\HILMAN-H87][2020-05-09 23:20:21 -07:00][ERROR][IOTLinkAddon.Service.WindowsMonitorService]: SendAllInformation - Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at IOTLinkAddon.Service.Monitors.CPUMonitor.GetMonitorItems(Configuration config, Int32 interval)
   at IOTLinkAddon.Service.WindowsMonitorService.ExecuteMonitor(IMonitor monitor)
   at IOTLinkAddon.Service.WindowsMonitorService.SendAllInformation()

Sending commands thru IOTlink works fine, but not getting any windows sensor readingsā€¦

Hi,

This were the only error lines in your logs? Also, have you done a clean install to ensure everything was correct or do you had previous version before?

You can try to use this fix to see if anything changes for you:
https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/perfmon-problems-unable-to-add-counters/e90f231d-0014-457d-8b1f-5f342971597a?auth=1

2 Likes

This fix worked! Thank you.

But I did uninstall, reboot and then install - did that twice.

Hey,

Glad it worked. I just asked about uninstall/install to make sure. Actually, this fix is something apart from that, probably your Windows installation messed up with these performance register somehow, and these commands just fixed it.

Did you run only the lodctr /r command or did have to enable something with lodctr /e:?

Regards,

I had to run lodctr /R

lodctr /r ended with error code 2 (then I googled about it).

Didnā€™t run lodctr /e:

Thanks for a great application.

A quick question, are there any more addons beyond the 2 that are included by default?

Specifically, Iā€™m wondering if there is an addon to report CPU temperatures?

Many thanks.

Iā€™m using IOT Link for some basic system monitoring. For temperatures, Iā€™m using a different HA project: PCInfoToMQTT v0.1.3

Iā€™ve been using IOTLink for some time and everything works great (thanks for an awesome project!). I recently add a UPS and hoped I would be able to gain information through the battery sensor; however I receive the following error:

No matching payload found for entity: MyPC Battery Status with state topic: iotlink/workgroup/mypc/windows-monitor/stats/battery/status. Payload: NoSystemBattery, with value template None

The UPS is connected via USB and Windows does see it as a battery backup. Is there a change to the config needed to see it?

Some sort of issue happening here

image

a massive massive massive memory leak, using 17GB

EDIT : i might be on a old version will update and get back to you

are you using the latest version, the leak was identified to do with the audio component and it was disabled by default.

:wink: that said i have the audio stuff disabled. will check when i have time for now i need to stop using it.

1 Like

I have 2 servers, one always ends up showing unknown for all the sensors and starting the PC is offline even though itā€™s not, the other shows unknown for the hard drives (but itā€™s random). Both are Win10 PCā€™s.

I find it very unreliable. Looses random the mqtt connection, the lwt is always ā€˜offā€™, even while I see other mqtt messages passing in mqtt explorer.

Is there a better alternative? Something to see status and allow reboot?

itā€™s been nearly flawless for me. I had an older version that would lose connection, simply fixed by restarting the service. but that hasnā€™t happened since the current version for me. iā€™m running it on 3 pcā€™s.