-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Console commands not working #152
Comments
Using MQTT-Spy However, the issue with the relay turning on automatically after an upgrade persists still even when cmnd and stat are both set to OFF so I'm not sure how MQTT could be causing this issue. I hope this helps. I know the "issue" is to do with commands but I stumbled upon that while trying to fix the automatic ON issue. |
Hello all, However, I cannot get Console commands to work no matter what browser I use. I used to modify the user_config.h file but moved to using the override file in the hope of fixing whatever is broken to no avail. What can I do to get the Console to work? I enter a command then hit enter and nothing happens. |
You might try to execute command |
Tried that to no avail! |
I can publish the command via MQTT and I can see it in the console after publishing it via MQTT. It's jus the web version that doesn't work. |
What is the exact text you type in the console? |
weblog 2 Also tried cmnd/home/livingroom/TableLamp/weblog 2 |
First stop using the complete topic as there is no need for it. It already knows it is on cmnd/home/livingroom/TableLamp. Second how did you configure the cmnd/home/livingroom/TableLamp? |
I had been using the "shortened" but thought I'd try the full thing. I'm using the following in the override file: #ifdef SUB_PREFIX |
Do you see more information if you execute |
No. It's as if nothing happened. |
Tried with my second Sonoff and getting the same thing i.e. nothing happens |
And if you execute it from your mqtt client: cmnd/home/livingroom/TableLamp/weblog 3 (the topic is case sensitive!) |
I get this when I do it via the mosquitto_pub utility. 16:58:08 MQTT: stat/home/livingroom/TableLamp/WEBLOG = 3 |
That's correct. Now try from the console command |
now |
In fact, any command such as weblog 3 and weblog 2 returns Handle console |
That's correct as it is the extra information enabled by option 3 of the weblog command. Puzzling is why the other messages are not being shown...
|
I am brand new here as of this morning but when I was setting things up
this is what I found….
The back slashes in the topic created an issue for me.
I was using “Home/LivingRoom/Couch” and nothing worked.
With a simple topic of “Sonoff” everything work.
I then used a topic of “Home_LivingRoom_Couch” and everything started
working again.
I am not sure if this is related to your issue or not….
I am only a handful of hours into my use of this software so I may be way
off base J
Brian
…On 6 January 2017 at 10:36, tam481 ***@***.***> wrote:
I had been using the "shortened" but thought I'd try the full thing.
I'm using the following in the override file:
#ifdef PROJECT
#undef PROJECT
#endif
#define PROJECT "TableLamp"
#ifdef SUB_PREFIX
#undef SUB_PREFIX
#endif
#define SUB_PREFIX "cmnd/home/livingroom"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXzW5xf7a33tgxZvEgs_xpjHzTO-iahYks5rPl-KgaJpZM4LTMki>
.
|
I can reproduce! If I use your PUB_PREFIX (cmnd/home/livingroom) and SUB_PREFIX (stat/home/livingroom) it fails too. Current workaround: do not change the default PUB_PREFIX and SUB_PREFIX or at least do not use I'll investigate but not in due time |
That's great. Thank you @arendst and also @BuilderBrian. I'll change it to use the default until you fix it in a future release :-) |
Fixed in version 3.1.13 just released |
3.1.14 20170107 * Add support for command TOGGLE (define MQTT_CMND_TOGGLE) when ButtonTopic is in use and not equal to Topic (#207) * Fix web console command input when SUB_PREFIX contains '/' (#152) * Add command response to web command (#200) * Add option to disable MQTT as define USE_MQTT in user_config.h (#200)
Hello,
Once again, thanks for the amazing firmware.
I haven't been able to send commands to Sonoff since version 3.0.3. I don't think it's that particular build. It's just when I noticed the issue.
I've tried resetting to default configs to no avail. Cleared cookies, tried a different browser but nothing happens when I enter commands and hit enter.
I've tried
cmnd/home/bedroom/sonoff Reset 2
cmnd/home/bedroom/sonoff Reset2
Reset 2
Restart
cmnd/home/bedroom/sonoff Restart
In the past entering the wrong syntax would result in an MQTT error now nothing happens.
I've also tried overwriting the firmware with NodeMCU then loading this firmware again to no avail.
I'm now running 3.1.0 and still experiencing the same issue. The reason why I tried this is because MQTT keeps turning the light ON after upgrading regardless even if the "retained" message is OFF and I wanted to do a complete "Reset 2" to clear everything.
The text was updated successfully, but these errors were encountered: