Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Find the MQTT Broker

Featured Replies

  • Author

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.

  • Author

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"}   ]

 

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.

  • Author

I did make the change and again I want to thank you for the help. You have a good week end.

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.