Jump to content

Find the MQTT Broker


Go to solution Solved by TriLife,

Recommended Posts

Posted

Hi TriLife, thank you for getting back with me. That info did help and I did get
it working. The following is what I had in my devlist and did not work:


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


Sonoff01 worked as sensor device and sonoff02 worked as a control device but
sonoff01 did not work as a control device. I changed the following  and now
sonoff11 is working as a Ctrl device also. Would you tell me the things I changed but did
not need to change.


[  {"id": "sonoff01", "type": "s31",
     "name":  "Washer Power",
     "status_topic":  "tele/sonoff01/SENSOR",
     "cmd_topic":  "cmnd/sensor/POWER1"},
     {"id":  "sonoff11",  "type":  "switch",
     "name":  "Washer Ctrl"
     "status_topic":  "stat/sonoff11/POWER2",
     "cmd_topic":  "cmnd/sonoff11/power2"},
     {"id":  "sonoff02",  "type":  "switch",
     "status_topic":  "stat/sonoff02/POWER",
     "cmd_topic":  "cmnd/sonoff02/power"}   ]
 
Thank you again so very much for all the help.

Posted

I am back, I started thinking how does this thing know where to look for the info the way I have it set up. Well it didn't and even through it was on the list in ISY in the Admin Console it did not work. So I changed it to the following I think following what you were telling me and it is now working.

[  {"id": "sonoff01", "type": "s31",
     "name":  "Washer PWR",
     "status_topic":  "tele/sonoff01/SENSOR",
     "cmd_topic":  "cmnd/sensor/POWER"},
     {"id":  "sonoff11",  "type":  "switch",
     "name":  "Washer Ctrl"
     "status_topic":  "stat/sonoff01/POWER",
     "cmd_topic":  "cmnd/sonoff01/power"},
     {"id":  "sonoff02",  "type":  "switch",
     "status_topic":  "stat/sonoff02/POWER",
     "cmd_topic":  "cmnd/sonoff02/power"}   ]

 

Posted
17 hours ago, vandy said:

I am back, I started thinking how does this thing know where to look for the info the way I have it set up. Well it didn't and even through it was on the list in ISY in the Admin Console it did not work. So I changed it to the following I think following what you were telling me and it is now working.

[  {"id": "sonoff01", "type": "s31",
     "name":  "Washer PWR",
     "status_topic":  "tele/sonoff01/SENSOR",
     "cmd_topic":  "cmnd/sensor/POWER"},
     {"id":  "sonoff11",  "type":  "switch",
     "name":  "Washer Ctrl"
     "status_topic":  "stat/sonoff01/POWER",
     "cmd_topic":  "cmnd/sonoff01/power"},
     {"id":  "sonoff02",  "type":  "switch",
     "status_topic":  "stat/sonoff02/POWER",
     "cmd_topic":  "cmnd/sonoff02/power"}   ]

 

Hi @vandy,

 

Glad you figured it out. I'd replace 

     "cmd_topic":  "cmnd/sensor/POWER"},

with 

     "cmd_topic":  "cmnd/sonoff01/POWER"},

for consistency's sake. In this particular case it doesn't matter, since the s31 type will never issue a cmd_topic.

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.


×
×
  • Create New...