Download the bin file and flash that. No compile needed
Hi Vincent!
But how can I then submit the SSID and pwd, so the sonoff devices can hook on to the router?
thanks rob
The sonoff will create its own wifi network. You can connect to it and go to 192.168.1.4 and then enter the required information for your own network.
Which flash Tool would you use. Just tried ESP easy flasher without sucess
And used the latest sonoff.bin
Esptool:
First i dont use Arduino IDE i cant help here. But at first look i see a MANDANTORY error, never flash a sonoff device with mode DIO it will NOT work. Only mode DOUT is possible as mentioned in Readme
Take a look here
@vzorglub Vincent,
FYI - will probably post to a new trackβ¦ but Iβm in the process of re-thinking. Iβm retaining the original fan speed switches but am adding switches for each channel and running the βupdateβ (feedback) rule base on the state and transition of those. This way my rule can update the Selection but also set up βinterlockingβ logic. The Hunter fan doesnβt allow me to use the 4CH in interlocking modeβ¦ but I can inter-lock the setting with openHAB by the appropriate checks on the βallowedβ speed inputs vs. what is physically possible on the 4CH buttons or via the RF remote (or the TASMOTA web interface). For now Iβm not implementing rules w/in TASMOTA.
Iβll post my final solution later. Just be aware that your insights were very helpful and made me come to the realization that I needed to enhance your feedback rule to add better state logic for the switch.
Thanks and Cheers!
Mike
Hi Vincent,
You were perfectly right. I burned sucessfully all my Sonoff Devices with the current .bin file and managed them into AP mode to customize them according my testing WLAN aera here at the hotel. I also flashed 2 NodeMCUΒ΄s with Easy ESP, hooked them up into the WLAN and wired 2 pcs MH Z-19b onto their pins in order to measure CO2. IΒ΄m not quite sure what they are measuring but you can follow my next steps in the βmush machineβ postings thanks for your help so far!
A few weeks back I wired a 3.3v relay (Icstation 1CH 3V 3.3V Relay Power Switch Module with Optocoupler) to sonoff basic GPIO 14 and played with the configuration a bit. If I turned on either relay, both came on. I was able to turn each relay off separately and thats were I stopped. Does anyone know if GPIO 14 can be controlled completely separate from the main relay? BTW, firmware is tasmota, tried with both 6.1.0 & 5.12.0 versions.
Thanks
I think you can. Youβll have better luck on the tasmota forum though
I had a deep look into the tasmota wiki and I didnβt find an option to set GPIOs on command.
However I may have missed something
Yes. it is possible. It should work out of the box. You have defined GPIO14 as Relay2?
So you just send Power2 On to control relay on GPIO14. If you disconnect the relay you
have an controlled GPIO Pin ON/OFF.
Many things are possible⦠What is your desired use case?
You can connect one MHZ-19b on a ESP with TASMOTA too. You have the benefit just playing around with one βPlatformβ -> the device and mqtt βhandlingβ is always the same
I was looking for that in the tasmota wiki and I probably missed it.
How do you do that?
It is a litte bit hided in sensors (GPIO, GPIOS)
You can add a sensor using the following (MQTT) commands:
modules - show supported modules
module 4 - select desired module functionality for a Sonoff TH (Wait for the restart)
gpios - show supported sensor types. (DHT21 = AM2301, AM2302 = AM2321 = DHT22)
gpio - show current defined sensors on supported GPIO pins
gpio14 2 - select sensor AM2301 (Wait for the restart)
For some sensors to show up a power cycle of Sonoff is needed to reset the devices just configured.
But in the WebConsole it is easily found in Module Configuration just select and save!
Yes I saw that but I did not see a relay module
10:25:00 CMD: gpios
10:25:00 MQT: stat/sonoff-17DBAE/RESULT = {βGPIOs1β:[β0 (None)β,β1 (DHT11)β,β2 (AM2301)β,β3 (SI7021)β,β4 (DS18x20)β,β5 (I2C SCL)β,β6 (I2C SDA)β,β7 (WS2812)β,β8 (IRsend)β,β9 (Switch1)β,β10 (Switch2)β,β11 (Switch3)β,β12 (Switch4)β,β13 (Button1)β,β14 (Button2)β,β15 (Button3)β,β16 (Button4)β,β17 (Relay1)β,β18 (Relay2)β,β19 (Relay3)β,β20 (Relay4)β]}
10:25:00 MQT: stat/sonoff-17DBAE/RESULT = {βGPIOs2β:[β21 (Relay5)β,β22 (Relay6)β,β23 (Relay7)β,β24 (Relay8)β,β25 (Relay1i)β,β26 (Relay2i)β,β27 (Relay3i)β,β28 (Relay4i)β,β29 (Relay5i)β,β30 (Relay6i)β,β31 (Relay7i)β,β32 (Relay8i)β,β33 (PWM1)β,β34 (PWM2)β,β35 (PWM3)β,β36 (PWM4)β,β37 (PWM5)β,β38 (Counter1)β,β39 (Counter2)β,β40 (Counter3)β,β41 (Counter4)β]}
10:25:00 MQT: stat/sonoff-17DBAE/RESULT = {βGPIOs3β:[β42 (PWM1i)β,β43 (PWM2i)β,β44 (PWM3i)β,β45 (PWM4i)β,β46 (PWM5i)β,β47 (IRrecv)β,β48 (Led1)β,β49 (Led2)β,β50 (Led3)β,β51 (Led4)β,β52 (Led1i)β,β53 (Led2i)β,β54 (Led3i)β,β55 (Led4i)β,β56 (MHZ Tx)β,β57 (MHZ Rx)β,β58 (PZEM Tx)β,β59 (PZEM Rx)β,β60 (SAir Tx)β,β61 (SAir Rx)β,β62 (SPI CS)β,β63 (SPI DC)β]}
10:25:00 MQT: stat/sonoff-17DBAE/RESULT = {βGPIOs4β:[β64 (BkLight)β,β65 (PMS5003)β,β66 (SDS0X1)β,β67 (SerBr Tx)β,β68 (SerBr Rx)β]}
Cool thanks
I did try GPIO14 as Relay2. Thatβs how I was able to turn the relays OFF individually but the issue was both turning ON when either was selected. I tried from the web UI and via mqtt but same result. Most of my sonoffβs have a sensor connected and work great so I thought maybe this would work with a relay. Itβs nothing I must have, just testing it out. When I get some extra time Iβll give it another go. At the moment, Iβm downgrading all sonoffβs to v5.12, the latest v6.1.0 with mqtt is giving issues.
Thanks