Skip to content
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

Using Sonoff by http-commands only #200

Closed
JoeWiseman opened this issue Jan 5, 2017 · 6 comments
Closed

Using Sonoff by http-commands only #200

JoeWiseman opened this issue Jan 5, 2017 · 6 comments

Comments

@JoeWiseman
Copy link

Hi,

first let me applogize for using your great work for what it's not intend to be ... I'm using a sonoff S20 with your firmware on a homatic system (without any MQTT or Domoticz). So I just the the http-commands to switch it on or off.

I know that this is not intend to be, but is it possible to switch off all network activities (MQTT, Domoticz) and use the the switch just by http-commands as described in the closed topic 89?
Maybe there is a command for this which I didn't see? Or maybe I could set a wrong server adress and set the time interval of connecting the server to a very high value??

Another question: is it possible just to get the content of the return-message of an command instead of getting the full http-code when using wget? I just need to get the status of the switch, but when using the command >> wget -q -O /dev/stdout 'http://192.168.1.232/cm?cmnd=power%20on' << I get the full page-script instead of the connamd-answer...

Hope you can help me out though it's not your tastk to do!

Thanks a lot in advance
Joe

@allthepies
Copy link

I would second this request but from a different angle, I want to control my sonoff via Alexa (and this works) and have the MQTT interface optional. Currently I have to point the sonoff at an MQTT broker which I have no need for.

arendst added a commit that referenced this issue Jan 7, 2017
3.1.13 20170107
* 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)
@arendst arendst added the solved label Jan 7, 2017
@arendst
Copy link
Owner

arendst commented Jan 7, 2017

Added in version 3.1.13 just released. Disable MQTT using define USE_MQTT in user_config.h

@allthepies
Copy link

Awesome, thanks.

arendst added a commit that referenced this issue Jan 7, 2017
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)
@arendst arendst closed this as completed Jan 7, 2017
@JoeWiseman
Copy link
Author

Thanks a lot for your work!!!

Though I acually have just one Sonoff S20 in use and I need this one very badly I don't want to run any experiences with that one, so I have a few questions:
-1- I never used the OS-update-option from the web interface... Do I just click it and the latest version will be installed?
-2- Is the new option USE_MQTT to be set in the config.h-file for compiling the new version or is it a new command for toggeling the MQTT-functionality on/off when using the switch?
-3- You wrote "Add command response to web command". Though I haven't use the update-function yet ... how is the command-resonse behavoiur?

Would be great to get some feedback.

Regards

@arendst
Copy link
Owner

arendst commented Jan 8, 2017

  1. Give it a try! Just have your binary file compiled and know where to find it.
  2. As long as define USE_MQTT is enabled MQTT software is compiled in and functional. If you disable it and compile MQTT is removed from the code and MQTT won't be possible without recompiling
  3. Again, give it a try. It's functional for HTTP request like http://sonoff/cm?cmnd=power on. The console functionality hasn't changed.

@JoeWiseman
Copy link
Author

Awesome!!!! If any company would give such a great support I will be the first to patronise ;-)
Thanks again a lot for the very fast reply and the great portion of patience with my rookie questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants