GithubHelp home page GithubHelp logo

Comments (10)

arendst avatar arendst commented on September 2, 2024

If you can reach it from HTTP why not using the configuration menu and change module there?

If you do not use user and password the http syntax is http://sonoff/cm?cmnd=modules

If you have MQTT access why not send an mqtt message with topic modules?

from sonoff-mqtt-ota-arduino.

arendst avatar arendst commented on September 2, 2024

BTW this repository is end-of-life

from sonoff-mqtt-ota-arduino.

Ontrackx avatar Ontrackx commented on September 2, 2024

I am bit of a neewb to mqtt
Http only shows
яяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяя �� л�
If i try with http
http://sonoff/cm?user=admin&password=****&cmnd=Modules% i get

{"Command":"Unknown"}

I think i just write the http string wrong

from sonoff-mqtt-ota-arduino.

Ontrackx avatar Ontrackx commented on September 2, 2024

Sorry i am in the wrong section i seee....

from sonoff-mqtt-ota-arduino.

arendst avatar arendst commented on September 2, 2024

When it shows that it probably also doesn't handle your http modules request ...

from sonoff-mqtt-ota-arduino.

Ontrackx avatar Ontrackx commented on September 2, 2024

what will the command be to try change module to 4ch sonoff with mqtt

i can try that
Sorry tried to read how to but cant seem to find the correct syntax

from sonoff-mqtt-ota-arduino.

arendst avatar arendst commented on September 2, 2024

Depending on your broker you could use:

mosquitto_pub -h mqtt_server_name.com -t cmnd/sonoff/module -m 7  # Sonoff 4CH
mosquitto_pub -h mqtt_server_name.com -t cmnd/sonoff/module -m 23  # Sonoff 4CH Pro

But considering your broken http responses I suspect you have a bigger issue than selecting the wrong module...

from sonoff-mqtt-ota-arduino.

Ontrackx avatar Ontrackx commented on September 2, 2024

You don't possible have time to look at it via teamviewer? I know it is a stupid question
But if this happens to others like me :) maybe it can be diagnosed
Btw i am on the most recent binary release and it was working perfectlu util I had to test what happend if i change to wrong module:
My mqtt server:
: Sending PUBLISH to mqtt-spy (d0, q0, r0, m0, 'cmnd/sonoff/reset', ... (3 bytes))
1527611274: Sending PUBLISH to Sonoff4ch (d0, q0, r0, m0, 'cmnd/sonoff/reset', ... (3 bytes))
1527611274: Received PUBLISH from Sonoff4ch (d0, q0, r0, m0, 'stat/sonoff/RESULT', ... (21 bytes))
1527611274: Sending PUBLISH to mqtt-spy (d0, q0, r0, m0, 'stat/sonoff/RESULT', ... (21 bytes))
1527611281: Received PUBLISH from mqtt-spy (d0, q0, r0, m0, 'cmd/sonoff/reset', ... (3 bytes))
1527611281: Sending PUBLISH to mqtt-spy (d0, q0, r0, m0, 'cmd/sonoff/reset', ... (3 bytes))

from sonoff-mqtt-ota-arduino.

arendst avatar arendst commented on September 2, 2024

Go to the correct repository, formulate your problem (again). provide the requested information and let people help you to get is sorted.

In the end you probably have to clear flash and re-flash the fkrmware but perhaps others can manage to get you up and running again.

from sonoff-mqtt-ota-arduino.

Ontrackx avatar Ontrackx commented on September 2, 2024

Thankyou :)

from sonoff-mqtt-ota-arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.