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://192.168.1.243:1883 -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?
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.