ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Moderators: grovkillen, Stuntteam, TD-er
ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Hi all,
Sortof new to the hobby here but I have hit a wall with this one.
I foud the two parts mentioned in the titleas a solution that works out of the box. I was hoping to control the relay via MQTT on NodeRED but I cant seem to get it to work.
The LC-Tech board has its own firmware?
When powered the ESP-01 creates a connectable wifi network "AI-Thinker-..." but when i connect to it nothing happens?!
ANY guidance will be helpful.
Thanks
Sortof new to the hobby here but I have hit a wall with this one.
I foud the two parts mentioned in the titleas a solution that works out of the box. I was hoping to control the relay via MQTT on NodeRED but I cant seem to get it to work.
The LC-Tech board has its own firmware?
When powered the ESP-01 creates a connectable wifi network "AI-Thinker-..." but when i connect to it nothing happens?!
ANY guidance will be helpful.
Thanks
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
If it starts with such a WiFi network, then I guess you did not successfully flash ESPEasy on the module, did you?
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
I’ve been having trouble with the “Flash Download Tools” from Espressif.com but I guess I’ve been unsuccessful. Is there a different software that would be easier to use?
Also, I’ve been using this USB-Adaptor with the switch on the “UART” side. (İts the red one 32768635202.html)
Also, I’ve been using this USB-Adaptor with the switch on the “UART” side. (İts the red one 32768635202.html)
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
The Web flasher at:
https://td-er.nl/ESPEasy/
(From Chrome or Edge you can flash an ESP connected to your computer)
/Ton (PayPal.me)
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
I'm getting this error?;Ath wrote: ↑13 Feb 2024, 08:42The Web flasher at:
https://td-er.nl/ESPEasy/
(From Chrome or Edge you can flash an ESP connected to your computer)
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
But I did find this;
https://github.com/Grovkillen/ESP_Easy_Flasher
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Can you send me the first 2 numbers of your IP-address?
I have setup quite a large IP block list as I have about 3 TByte/month of incoming attack requests.
But quite a lot of IP-blocks have been resold so it might be a bit too course and blocking non-hack attempts too.
I have setup quite a large IP block list as I have about 3 TByte/month of incoming attack requests.
But quite a lot of IP-blocks have been resold so it might be a bit too course and blocking non-hack attempts too.
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
I have same issue that's why i am using a tool from the competition.
![Erg Blij :D](./images/smilies/icon_e_biggrin.gif)
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
https://github.com/tasmota/tasmotizer
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
external ip? if so currently its 101.188TD-er wrote: ↑13 Feb 2024, 12:41 Can you send me the first 2 numbers of your IP-address?
I have setup quite a large IP block list as I have about 3 TByte/month of incoming attack requests.
But quite a lot of IP-blocks have been resold so it might be a bit too course and blocking non-hack attempts too.
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Hmm I don't see any of those in my block list.
Lots starting with 188.
Anyway based on the time you posted your message I could see some attempts in the error.log file and removed those from my block list.
Can you try again to see if the web flasher now works for you? (or at least is accessible)
When using the ESP01S:
You need to have GPIO-0 pulled down to GND before powering it on to enter flash mode.
And remember to pick an 1M build as the ESP01-S is an ESP8266 with 1M of flash.
Lots starting with 188.
Anyway based on the time you posted your message I could see some attempts in the error.log file and removed those from my block list.
Can you try again to see if the web flasher now works for you? (or at least is accessible)
When using the ESP01S:
You need to have GPIO-0 pulled down to GND before powering it on to enter flash mode.
And remember to pick an 1M build as the ESP01-S is an ESP8266 with 1M of flash.
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
same error :/TD-er wrote: ↑13 Feb 2024, 14:20 Hmm I don't see any of those in my block list.
Lots starting with 188.
Anyway based on the time you posted your message I could see some attempts in the error.log file and removed those from my block list.
Can you try again to see if the web flasher now works for you? (or at least is accessible)
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Are you using some TOR network or VPN?
It is a completely different IP range now and the strange part is, I can't find it in my block list.
There are some dynamic filters active for TOR and VPN network IP ranges, based on hack activity.
It is a completely different IP range now and the strange part is, I can't find it in my block list.
There are some dynamic filters active for TOR and VPN network IP ranges, based on hack activity.
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Ah found one block, if you still have the same IP, it should now work.
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
YES, I'm connected! thank you!
So here is my first big brainfart, I'm getting a failed to initialize error.
I've got to do some troubleshooting. Any variant reccomendations for an ESP-01 to be controlled via MQTT?
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Did you connect GPIO-0 to GND and then power on the ESP01S board?
Did you select a build made for ESP8266?
Did you select a build for 1M flash size?
Did you select a build made for ESP8266?
Did you select a build for 1M flash size?
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
default password is "configesp"
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
Have a look at the documentation page: https://espeasy.readthedocs.io/en/lates ... locks.html
I linked here first the functional blocks overview.
In short, you can under "Devices" add some tasks which can generate sample data.
This can be sent to a "controller".
There are several controllers for MQTT, but I guess the most generic one is the Home Assistant/OpenHAB one.
This one can also receive commands via MQTT, as is described here: https://espeasy.readthedocs.io/en/lates ... #c005-page
I linked here first the functional blocks overview.
In short, you can under "Devices" add some tasks which can generate sample data.
This can be sent to a "controller".
There are several controllers for MQTT, but I guess the most generic one is the Home Assistant/OpenHAB one.
This one can also receive commands via MQTT, as is described here: https://espeasy.readthedocs.io/en/lates ... #c005-page
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
So would i have to add multiple tasks?
ie;
To recieve MQTT command from controller (Mosquitto set up on RPi)
To control relay On/Off (LC Tech Relay)
TO send On/Off Status via MQTT controller
ie;
To recieve MQTT command from controller (Mosquitto set up on RPi)
To control relay On/Off (LC Tech Relay)
TO send On/Off Status via MQTT controller
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
You can control the relay state via MQTT commands, quite literally how it is described in the "C005" controller documentation I linked.
How do you need the relay state to be reported via MQTT?
When it changes?
I think it is by far the most elegant solution to act on changes via rules and then publish to some topic the current state.
Do you also need to toggle the state of a relay via some button?
How do you need the relay state to be reported via MQTT?
When it changes?
I think it is by far the most elegant solution to act on changes via rules and then publish to some topic the current state.
Do you also need to toggle the state of a relay via some button?
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
2 Questions;TD-er wrote: ↑13 Feb 2024, 19:46 You can control the relay state via MQTT commands, quite literally how it is described in the "C005" controller documentation I linked.
How do you need the relay state to be reported via MQTT?
When it changes?
I think it is by far the most elegant solution to act on changes via rules and then publish to some topic the current state.
Do you also need to toggle the state of a relay via some button?
1- How can I configure the ESP Module once its connected to my Wifi Network?
2- I see the "C005" documentation, but I'm confused as to how to implement the code shown there in the interface I see when connected to the ESP Module
Re: ESP-01 w/ ESP8266 Relay V2.3Relay Troubleshooting
As soon as it is connected to WiFi, you should be able to open the web interface of ESPEasy in your browser.
Maybe it is best to start playing around first and trying to toggle some relay via the command line on the tools page.
Just assuming your relay is connected to GPIO-1.
Then you can try to convert those commands to MQTT commands (almost literally shown as example in the docs I linked)
So you need to add a MQTT controller first (controller tab in the web browser), set the hostname of the MQTT broker and enable the controller.
Make sure to look for the correct subscribe topic in the MQTT controller settings.
You may want to use some MQTT client tool like MQTT Explorer (or similar tool) so you can publish to topics and see which topics get a message published to.
ESPEasy will send some message to the LWT topic, so you can see this via your MQTT client software.
Maybe it is best to start playing around first and trying to toggle some relay via the command line on the tools page.
Code: Select all
gpio,1,0 // Set GPIO pin 1 to 0
gpio,1,1 // Set GPIO pin 1 to 1
Then you can try to convert those commands to MQTT commands (almost literally shown as example in the docs I linked)
So you need to add a MQTT controller first (controller tab in the web browser), set the hostname of the MQTT broker and enable the controller.
Make sure to look for the correct subscribe topic in the MQTT controller settings.
You may want to use some MQTT client tool like MQTT Explorer (or similar tool) so you can publish to topics and see which topics get a message published to.
ESPEasy will send some message to the LWT topic, so you can see this via your MQTT client software.
Who is online
Users browsing this forum: No registered users and 31 guests