Comments (10)
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.
BTW this repository is end-of-life
from sonoff-mqtt-ota-arduino.
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.
Sorry i am in the wrong section i seee....
from sonoff-mqtt-ota-arduino.
When it shows that it probably also doesn't handle your http modules request ...
from sonoff-mqtt-ota-arduino.
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.
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.
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.
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.
Thankyou :)
from sonoff-mqtt-ota-arduino.
Related Issues (20)
- How to flash Slampher version 2.0? HOT 3
- How to?
- eWeLink connection to dual module
- 5-8 seconds delay
- BMP180 doesn't show pressure in Domoticz HOT 4
- Console BE_MINIMAL ?
- Electric wiring schematic from wkaku HOT 1
- Sonoff Touch Not enough space HOT 1
- Extra Wire.endTransmission() should not be there.
- Home Assistant / MQTT switching back when manually toggled
- sonoff basic DHT22/AM2301 TEMP/Humidity wrong value displayed HOT 2
- Upgrading from 5.2.1
- Trying to flash to Sonoff Basic results in espcomm failure
- Cloning outputs to multiple channels HOT 1
- Upload Failed Upload buffer miscompare HOT 1
- Not applying time from NTP server
- AM2301 wont display on Sonoff TH10
- All my Tasmota devices reverted to Sonoff Basic HOT 1
- Anandaraj
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonoff-mqtt-ota-arduino.