mqtt help

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
edwin1234
Posts: 287
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

mqtt help

Post by edwin1234 »

cant get mqtt to work
did all the things in the mqtt wiki mosquito is connected in domoticz, i have made a dummy temp device idx 8
but where must i type the line: mosquitto_pub -h localhost -m '{ "idx" : 8, "nvalue" : 0, "svalue" : "25.0" }' -t 'domoticz/in'
when i put the line in cmd i get: unknown option idx as an answer
sorry total noob at this.

thanks
edwin
edwin1234
Posts: 287
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: mqtt help

Post by edwin1234 »

nobody?
edwin1234
Posts: 287
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: mqtt help

Post by edwin1234 »

Has this something to do with windows 7?
HarryWilliam
Posts: 1
Joined: Tuesday 12 January 2021 12:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: mqtt help

Post by HarryWilliam »

Did you ever get this sorted? I've just started trying to use Domoticz, getting the same problem, and it's a bit disconcerting when you fail at the first hurdle! Installed all on a Win10 PC to test before porting to a Raspberry Pi.
Harry
User avatar
FireWizard
Posts: 1905
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: mqtt help

Post by FireWizard »

Hi,

I'm not that familiar with Windows, but can you check that your MQTT server is running?

If you are using Windows, open up a command prompt and type

Code: Select all

netstat -an
.
If your server is running, you should be able to see the port 1883.

If you cannot go to Task Manager > Services and start/restart the Mosquitto server from there. If you cannot find it here too, your installation of Mosquitto has not been successful.

If needed find a tutorial at: http://www.steves-internet-guide.com/in ... to-broker/

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest