Jump to content

Find the MQTT Broker


Go to solution Solved by TriLife,

Recommended Posts

Posted

I am wanting to setup a Sonoff S31 plug on my eisy admin console. I have the S31 flashed with Tasmota and running, I have it pointed to my eisy but I do not know how to find it there. I have read not to down load a new MQTT agent because there are two of them running on the system already. I have attached some photos of the setup. Where do I find the MQTT Broker on my eisy system I do not see it and how do I retrieve the information?

Thank you

MQTT Viewer.png

S31 Config.png

Sonoff S31.png

Posted

Install the MQTT nodeserver from the plugins store on the PG3 home page, by trilife. Note that they do not necessarily appear in alphabetical order in the store.

Posted

I did install the Node Server and reading the info I get an error telling me I do not have access rights, see attached. Thank you for the Node Server help.ReadFileError.thumb.png.7f80a05450f386dc80cfbe41cd17902d.png

Posted

Hi @vandy,

I'm traveling at the moment, won't get to my rig in a couple of weeks to help with specifics.

Looking at your screenshot though, you seem to have problems with accessing the UDI Forum, is that correct?

Were you able to install the MQTT plug-in (node server) and configure it, so it says "connected" in the PG3 home page? If so, when logging into the Admin Console, you should see an entry called MQTT on the left side panel, which shows all the devices you added during configuration of the plug-in.

Let me know how you progress.

Cheers

Posted

Thanks for the reply, I think not getting to this page is the least of my problems. If you look at the attached when I click on the "this thread" it gives me the error that I don't have access rights to the page, and I am logged in. But as far as the other questions I did install the MQTT plug in and I do see it in my Admin Console but just the MQTT icon no devices. But back on the Polyglot V3 page I am getting an error of "Waiting on valid configuration" of the MQTT(3) when setting up the plug-in.

 

MQTT Broker.png

MQTT Config.png

Posted

Have you created a device file (.yaml), saved it on the eISY and pointed your devfile to it (last config parameter)?

Posted

No I have not, I have not seen any doc that tell me that and I have looked. I do not know how to save a file to my eisy or the devfile. I have only had Insteon devices in the past and my programs for that. If you can point me to a doc on this I am more than happy to work on it.

Thank you again for the help

Posted

Hi @vandy

If you look at the page of the screenshot with the 5 configuration parameters, there should be a full set of instructions on how to create a devfile. Also try to click MQTTs INFO button in the Plug-in store, which should lead you to the configuration instructions...

If you don't know how to save files to eISY, you may want to poke around the forum to familiarize yourself with SSH, putty, MobaXterm etc...

I'm not close to a computer until the end of the month, so unfortunately I'll be of limited help. Sorry about that.

Cheers

Posted

I will do that and thank you again, this is a project that does not need to be done today or even next week, just sometime.

Posted
16 hours ago, vandy said:

I did install the Node Server and reading the info I get an error telling me I do not have access rights, see attached.

Looks like the help file is linking to an old forum that's been taken offline or archived and no longer available. I found it by looking through the internet archives. Take a look here:

https://web.archive.org/web/20240716121024/https://forum.universal-devices.com/topic/24538-sonoff/

It appears this was in the old PG2 area. Since PG2 is no longer supported those old forum topics have been archived. 

I'm not sure if the old post applies to the new version or not, but the link above should help you some with information from the old plugin (node server) setup. 

Posted

Thank you for the info but I was not looking for old info I was just following a link that I hoped would help me find the info I need. I will look and see if there is anything that can help me. Thank you again.

  • Like 1
Posted
1 hour ago, vandy said:

I was not looking for old info I was just following a link that I hoped would help me find the info I need.

Got it. I was trying to find the link too and couldn't so went the web archive route. Once I saw that it was in the old PG2 area it made since why you were getting the error (I was too). Info might still apply. I don't use that plugin so can't offer help/tips. Maybe @sjenkins can give some advise until @TriLife is back to try to help.

  • Thanks 1
Posted

sorry I've been slow to respond ; been a busy week,

@maxnorth you have a good link there

the other way to get to that instruction is from the configuration tab of the MQTT nodeserver installed on your EISY.

Basically you can use one of two methods to define your devices, deflist or devfile.  The second is the one @TriLife was mentioning.  The first is quicker/easier if you only have a device or two but the second is more sustainable over the long haul when you have lots of devices (the extreme being @TriLife).  Don't worry if you use the devlist to start off you can easily switch to the other later.

Hope this helps a bit.  This is a pretty stable plugin now & more than a few people are using it for critical applications.  Keep at it.  Once you get the first one talking it will come pretty easy.

 

  • Like 1
Posted

Hi sjenkins, I have attached a snapshot on the config file for just one device that I copied from the help page and the changed the name to my device. MQTT is telling me that it is not correct. I am only going to be using a couple of devices as of now and if I can get one working it may sink into my old head. Thank you for the help

Config File.png

S31 Config File.png

  • Solution
Posted

Hi @vandy,

[  {"id": "sonoff1", "type": "switch", 
        "status_topic":  "stat/sonoff1/POWER", 
        "cmd_topic":  "cmnd/sonoff1/power"},  
    {"id":  "sonoff2",  "type":  "switch", 
        "status_topic":  "stat/sonoff2/POWER",  
        "cmd_topic":  "cmnd/sonoff2/power"}  ]

Please use this template for the dev list. There is no leading *device* in front of it

Give that a try  

  • Like 1
Posted

Hi TriLife, that did work and I had it just like that, I copied it from the help page and changed the 1 to an 01 and it did not work, I then add the "device". I just copied your list and plugged it in and it worked, changed to 1 to an 01. I must have a space missing or something. Thank you so very much.

  • Thanks 1
Posted

Thanks @Geddy, @maxnorth, @sjenkins. Good teamwork.

44 minutes ago, vandy said:

Hi TriLife, that did work and I had it just like that, I copied it from the help page and changed the 1 to an 01 and it did not work, I then add the "device". I just copied your list and plugged it in and it worked, changed to 1 to an 01. I must have a space missing or something. Thank you so very much.

 

Posted

Hi, I did change the sonoff2 to sonoff1 and the type  "s31" so that I can red power numbers. That id start up on my eisy Admin console but all numbers are "0". Can I do control and power monitor on the same device at the same time?

Posted

Hi, sorry to keep bugging you but can you tell me is a Sonoff S31  setup as a switch or a sensor. I use the type of S31 ut does all the other setting stay the same as a switch? I have and I am getting Status as False.

 [  {"id": "sonoff01", "type": "s31",
        "status_topic":  "stat/sonoff01/POWER",
        "cmd_topic":  "cmnd/sonoff1/power"}   ]

Posted

Hi All, Just got it working as a power monitor, I want to thank you all for the help. Thai is the config line I used

[  {"id": "sonoff01", "type": "s31", "status_topic":  "tele/sonoff01/SENSOR",  "cmd_topic":  "cmnd/sensor/POWER"}   ]

The thing is I have tried this before but it is working, now I can expand on this.

Thank you all again.

  • Like 1
Posted

Hi Maxnorth, I think at some time in all my attempts of getting this thing running I did try that. I do think that part of my problem may have been that my system needed updated, it’s all a blur now but I thing I did an update and things started working. I will go back and try that and let you know how it turns out, thanks for the info.

Posted

Hi Maxnorth, I did try this and it did let me set it up in the MQTT config but when I go to the Plugin and try to add a node as a switch it gives me an error. I was thing I should be able to do this also; I don’t need it but it was worth a try. I may play with this later. Thank you for the info.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37.7k
    • Total Posts
      377.2k
×
×
  • Create New...