Remotly control windows pc with winthings

  • Platform information:
    • Hardware: MQTT on Rpi3 with openhabian, windows 10
    • OS: openhabian
    • openHAB version: 2
  • Issue of the topic:
    I want to control my windows pc remotly through openhab, shutdown pc for example.
    I have a mqtt broker running on my Rpi 3 where also my openhab is running.
    Openhab has a stable connection with the broker with the MQTT binding.
    So I checked the forum here and found the winthings solution to control my pc.
    Yes so far so good, I can get the winthings running and see the command prompt.
    But when it’s connected it almost immediatly disconnects.
    This is what I get from the output from winthings

This is the command line that I’m executing from a bat file:
java -Dwinthing.brokerUrl=tcp:// -Dwinthing.brokerUsername=openhabian -Dwinthing.brokerPassword=******* -Dwinthing.brokerClientid=HomePc -debug -jar winthing-1.1.0.jar

anybody an idea what I’m doing wrong?
or another solution to control my pc remotly with openhab?


I stumbled across this little app when I was struggling with a remote control issue.

I haven’t used it, so please do feedback if you try it.

Good luck


Windows UDP remote control

The problem was that I had 2 connections running with the same id.

But after getting this to work, I stumbled on another issue, if I have multiple PCs running winthing and I send the shutdown command, all PCs will shutdown I think.
Which is something I don’t want, I want to be able to control them separately.

I would suggest posting a feature request on the winthing github to be able to configure the mqtt topic.
This way you can have several PCs on different topics.

I opened an issue on github, don’t know how to make a feature request.

@mghaan I opened an issue on github but I have no idea if this is even possible.
Thanks in advance