Search found 65 matches

by gregoinc
27 Jun 2021, 12:46
Forum: ESP Easy: Hardware
Topic: Sonoff TH10 Recovery Conundrum
Replies: 3
Views: 6568

Re: Sonoff TH10 Recovery Conundrum

Hello, Thanks for the comments and advice. I managed to narrow it down to a faulty rx pin on the FTDI USB to serial converter. When moving the cables between the Sonoff TH10 and the FDTI board I noticed the TX/RX LED's flash, and when I wiggled the cables it seemed to flash more often. I tried re-so...
by gregoinc
26 Jun 2021, 07:56
Forum: ESP Easy: Hardware
Topic: Sonoff TH10 Recovery Conundrum
Replies: 3
Views: 6568

Sonoff TH10 Recovery Conundrum

For several weeks now I have been attempting to recover a Sonoff TH10 that I haven't used for over a year. I am not sure what I loaded onto the Sonoff, I think it was ESP Easy or it could have been Tasmota? When powering on the device either via 240 volts or via the serial adapter, no lights appear ...
by gregoinc
22 Feb 2021, 12:10
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

Looks exactly like the board I used, and it works well. I must confess, I still dont understand why the other solutions didn't work? Perhaps the distance?
by gregoinc
22 Feb 2021, 04:44
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

What kind of board is it exactly? I assume it is a flipflop, but what's the trimmer for? Setting a level? Here's the link to the board... basically replaced the 'rain pad' with a connection to the reed switch. https://www.aliexpress.com/item/32615652698.html?spm=a2g0s.9042311.0.0.3f834c4djGpVbg Ess...
by gregoinc
21 Feb 2021, 04:02
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

I tried a number of combinations, they didn't work. Ended up using one of these boards... works perfectly.
20210221_132703.jpg
20210221_132703.jpg (58.82 KiB) Viewed 8882 times
Thanks for all your help TD-er.
by gregoinc
17 Feb 2021, 06:17
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

Hi TD-er,

Thanks for that. Here's a diagram I've drawn from your advice.
ResistorSchematic.png
ResistorSchematic.png (4.89 KiB) Viewed 9000 times
Assuming I have it correct, where would the reed switch connect?

Thanks, Mark
by gregoinc
16 Feb 2021, 05:47
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

Enable the internal pull up resistor and connect the reed chip between the GPIO pin and GND. Just make sure you're not using GPIO-0 or GPIO-2 for this on an ESP8266 as you may then prevent the ESP to boot if the reed switch is closed during reboot. That was my original design, but it flip/flopped w...
by gregoinc
15 Feb 2021, 11:09
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

TD-er wrote: 15 Feb 2021, 10:44 Hmm when you're experiencing it like this, I wonder how you connected the reed switch.
Did you maybe connect the reed switch between 3V3 and the GPIO pin?
Yes, correct... which I am thinking now was not such a good idea... :oops:
by gregoinc
15 Feb 2021, 10:38
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

Hi TD-er, Funny you mention the pull up resistor option in the switch device settings. When I tick the Internal PullUp option the reed switch never detects the door is open, yet when the Internal PullUp is un-ticked the door is detected opening/closing. I will place a resistor as per the resistor on...
by gregoinc
15 Feb 2021, 10:07
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

I found these diagrams.

This one with a capacitor and resistors:-
Hardware-Debounce-False-Interrupt-Fix.jpg
Hardware-Debounce-False-Interrupt-Fix.jpg (77.38 KiB) Viewed 9170 times
And this one... with just a resistor:-
reed2_bb.png
reed2_bb.png (102.6 KiB) Viewed 9170 times
I am thinking it might be an idea to start with the resistor first... or not?
by gregoinc
15 Feb 2021, 08:18
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Re: Switch Flip Flop

Hi Ath and TDer,

Thank you for your replies. I wonder, could you please point me towards an example circuit diagram? I know my way around electronics but have no knowledge of hooking up a reed switch utilising a resistor or capacitor. A diagram would be a massive help.

Thanks, Mark
by gregoinc
14 Feb 2021, 11:06
Forum: ESP Easy: General Discussion
Topic: Switch Flip Flop
Replies: 21
Views: 9214

Switch Flip Flop

Hello, Long time ESPEasy user and have been very happy. I recently installed a reed switch on a door and following the instructions documented here https://espeasy.readthedocs.io/en/latest/Plugin/P001_Door_switch.html Everything seemed to go well, and with the door closed everything appears to be fi...
by gregoinc
23 Sep 2020, 00:14
Forum: ESP Easy: General Discussion
Topic: Set Variable on Remote ESPEasy
Replies: 9
Views: 10749

Re: Set Variable on Remote ESPEasy

Hi TD-er, I think I understand what you are saying... how does below look? On Rules#Timer=1 do if [%eventvalue3%] = 1 Event,StartFan endif endon I also want to ensure if the air conditioner is running on ESP1, then the fan relay connected to ESP2 doesn't trigger the fan to start. So I was looking at...
by gregoinc
22 Sep 2020, 05:37
Forum: ESP Easy: General Discussion
Topic: Set Variable on Remote ESPEasy
Replies: 9
Views: 10749

Re: Set Variable on Remote ESPEasy

Hi TD-er, Thanks for the reply. So if I understand correctly... I should be able to use the following examples to update a variable on ESP2 On ESP1 I would have the following code... On UpdateVar do sendTo 2,let,3,1 endon Then on ESP2 I should be able to use... On Rules#Timer=1 do if [var#3]=1 Event...
by gregoinc
21 Sep 2020, 12:59
Forum: ESP Easy: General Discussion
Topic: Set Variable on Remote ESPEasy
Replies: 9
Views: 10749

Re: Set Variable on Remote ESPEasy

Whilst we're on the subject of ESPEasy p2p controller, here's a weird 'bug' I have been trying to fix for some time. Here is the Devices screen for the Generic - Dummy Device on ESP1 (GregoInc1) ESP1-Generic.jpg And here is the Generic - Dummy Device on ESP2 ESP2-Generic.jpg What I have never been a...
by gregoinc
21 Sep 2020, 01:17
Forum: ESP Easy: General Discussion
Topic: Set Variable on Remote ESPEasy
Replies: 9
Views: 10749

Re: Set Variable on Remote ESPEasy

Hi TD-er, I do have the ESPEasy p2p controller running and it works fine. I am unclear how to use the ESPEasy p2p controller for setting a variable... apology, it is probably due to my lack of knowledge. So as I said, I have the ESPEasy p2p controller working... so do you have examples of how I migh...
by gregoinc
20 Sep 2020, 23:39
Forum: ESP Easy: General Discussion
Topic: Set Variable on Remote ESPEasy
Replies: 9
Views: 10749

Set Variable on Remote ESPEasy

Hello, I have two ESPEasy devices running on NodeMCU units. The ESP1 device controls an air conditioner via the infrared library, and the other ESP2 controls a fan which blows cool air from the outside (during times when the air conditioner is not required). ESP1 has a temperature sensor inside and ...
by gregoinc
15 May 2020, 05:26
Forum: ESP Easy: General Discussion
Topic: mqtt cant receive gpio command
Replies: 18
Views: 19170

Re: mqtt cant receive gpio command

In an effort to tie this off, I managed to find a solution... which once found appeared embarrassingly simple. In an effort to share information for those of you that are stuck like me here is what I found. Here is the NodeRed inject node I created to simulate a command to start the air conditioner....
by gregoinc
13 May 2020, 08:43
Forum: ESP Easy: Projects / Applications
Topic: Problem with SendToHTTP
Replies: 22
Views: 16684

Re: Problem with SendToHTTP

Any further ideas on above appreciated The OP's SendToHTTP statement did not work because the rules parser coverts the statement to lower case letters. That caused the OP's mixed-case password credentials to fail. I see that your example HTTP URL has some uppercase in it: http://admin:12345678@192....
by gregoinc
13 May 2020, 08:22
Forum: ESP Easy: General Discussion
Topic: mqtt cant receive gpio command
Replies: 18
Views: 19170

Re: mqtt cant receive gpio command

Feels like I am forever asking questions on old threads... apology if this has been answered elsewhere. My situation... I have several NodeMCU units running Mega and communicating with Mosquito MQTT, with Node Red capturing information and forwarding to Blynk app. A one way information transfer. I w...
by gregoinc
13 May 2020, 01:49
Forum: ESP Easy: Projects / Applications
Topic: Problem with SendToHTTP
Replies: 22
Views: 16684

Re: Problem with SendToHTTP

Any further ideas on above appreciated :D
by gregoinc
10 May 2020, 02:29
Forum: ESP Easy: Projects / Applications
Topic: Problem with SendToHTTP
Replies: 22
Views: 16684

Re: Problem with SendToHTTP

I guess it depends on the host, if nothing is passed in the header and the host expects the authorization to be in there (not only in the URL) I guess the host will deny access. This is the syntax of the HTTP command directly from the user manual: http://admin:12345678@192.168.0.50/Set.cmd?CMD=SetP...
by gregoinc
09 May 2020, 14:16
Forum: ESP Easy: Projects / Applications
Topic: Problem with SendToHTTP
Replies: 22
Views: 16684

Re: Problem with SendToHTTP

Thank you very much for the prompt reply, but it doesn't work. I tried SendToHTTP "user:Password@192.168.69.15",80,/api/device/fsb/buttonPressed?buttonId=fs SendToHTTP "user:Password@192.168.69.15,80",/api/device/fsb/buttonPressed?buttonId=fs SendToHTTP 'user:Password@192.168.69...
by gregoinc
17 Dec 2019, 01:40
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to control air conditioners / heat pumps
Replies: 163
Views: 210617

Re: ESPEasy to control air conditioners / heat pumps

Hey all, I have this a/c unit mounted in my room. I'm not in good relations with the coding, so can someone explain to me if it possible to integrate with it? Thanks Greetings, Assuming the AC unit you are considering has IR control then I understand the library can be used, or you can 'capture' th...
by gregoinc
24 Mar 2019, 23:15
Forum: ESP Easy: Software
Topic: Newbie ESPEasy to Grafana Question
Replies: 16
Views: 16040

Re: Newbie ESPEasy to Grafana Question

Why use telegraf when you are on ESP_Easy this can inject directly into Influx. Influx <> Grafana is the easy part I agree the Influx / Grafana part should be easy, the problem I am dealing with is how to inject the data into Influx that makes it easier to setup Grafana. At present I am mostly focu...
by gregoinc
24 Mar 2019, 23:10
Forum: ESP Easy: Software
Topic: Newbie ESPEasy to Grafana Question
Replies: 16
Views: 16040

Re: Newbie ESPEasy to Grafana Question

pppp33 wrote: 24 Mar 2019, 11:01 But, how do you inject directly data from ESPEasy's MQTT into Influx, without using NodeRed ?
I was wondering the same thing?
by gregoinc
22 Mar 2019, 06:57
Forum: ESP Easy: Software
Topic: Newbie ESPEasy to Grafana Question
Replies: 16
Views: 16040

Re: Newbie ESPEasy to Grafana Question

Excuse my lack ofknowledge, but what application would Telegraf replace?
by gregoinc
22 Mar 2019, 05:15
Forum: Introduce yourself
Topic: Hello from North Carolina, USA
Replies: 1
Views: 3904

Re: Hello from North Carolina, USA

Greetings from Australia.
by gregoinc
21 Mar 2019, 22:28
Forum: ESP Easy: Software
Topic: Newbie ESPEasy to Grafana Question
Replies: 16
Views: 16040

Re: Newbie Grafana Question

Update!! So I managed to get Grafana to display the temperature data. Had to 'hack' the query to get it to work... see below. Not pretty, and Grafana tries to change it back when I edit. SELECT * FROM "OutTemp" I am thinking my problems are coming from how the data is presented to the Infl...
by gregoinc
21 Mar 2019, 09:13
Forum: ESP Easy: Software
Topic: Newbie ESPEasy to Grafana Question
Replies: 16
Views: 16040

Newbie ESPEasy to Grafana Question

I know I should probably place this question in a Grafana forum, but I am posting it here first because I trust the members and advice in this forum. I have worked hard to setup the ESPEasy NodeMCU to send temperature data to Node Red via MQTT and into an InfluxDB. The data is arriving into the Infl...
by gregoinc
15 Feb 2019, 11:30
Forum: ESP Easy: Software
Topic: Weird Log Entries causing issues - help please!
Replies: 4
Views: 2935

Re: Weird Log Entries causing issues - help please!

<facepalm> Argh... :oops: how does below look? On System#Boot do timerset,1,30 endon On Rules#Timer=1 do if [Temp1#Temperature] > 25 Event,StartHP endif if [Temp2#Temperature] < [Temp1#Temperature] and [Temp2#Temperature] < 17 Event,StopHP endif timerset,1,30 endon On StartHP Do If [counter#dummy]=0...
by gregoinc
15 Feb 2019, 09:46
Forum: ESP Easy: Software
Topic: Weird Log Entries causing issues - help please!
Replies: 4
Views: 2935

Weird Log Entries causing issues - help please!

Hi Folks, I am hopeful someone has seen this issue before, as I cannot find a reason for it happening? If you look at the 3938027 log entry, immediately afterwards the log changes to 8287, and after that the system proceeds to change the value of counter#dummy from 1.00 to 0.00 and I dont understand...
by gregoinc
05 Feb 2019, 22:57
Forum: ESP Easy: Software
Topic: Looping the Loop without getting dizzy
Replies: 7
Views: 4400

Re: Looping the Loop without getting dizzy

Why just =21 ? What will happen if for some/any reason Temp2 drops to 19 prior to getting in the event ? -D Hi Iron, You are correct, and to be honest I am still finding my way forward, which is why I sought feedback. In a nutshell, the code... if [Temp2#Temperature] < [Temp1#Temperature] and [Temp...
by gregoinc
04 Feb 2019, 10:28
Forum: ESP Easy: Software
Topic: Looping the Loop without getting dizzy
Replies: 7
Views: 4400

Re: Looping the Loop without getting dizzy

Hi Grovkillen, Thank you. One section of the code I wanted to improve is this area below... On Temp2#Temperature do if [Temp2#Temperature] < [Temp1#Temperature] and [Temp2#Temperature] = 21 Event,StopHP endif endon - I wanted to perform the temperature check as a range instead of just 21 degrees i.e...
by gregoinc
04 Feb 2019, 06:36
Forum: ESP Easy: Software
Topic: Looping the Loop without getting dizzy
Replies: 7
Views: 4400

Re: Looping the Loop without getting dizzy

Hi Grovkillen, The non-elegant reference was a critique of my coding skills, not in any way being critical of the rules engine (which has been the best I've found for low level beginners like me). I thought my efforts were average at best, which is why I posted seeking some guidance. Apology for any...
by gregoinc
04 Feb 2019, 03:24
Forum: ESP Easy: Software
Topic: Looping the Loop without getting dizzy
Replies: 7
Views: 4400

Looping the Loop without getting dizzy

Hello, Have been developing the rules code below to activate an air conditioner. I have limited exposure to ESPEasy, and I am not totally comfortable with the various if, then, else type loops. The code below works, but I wouldn't say it was an 'elegant' way to do the job. So I am looking for your a...
by gregoinc
04 Feb 2019, 03:19
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

To close this out as Ive not had any other feedback, I found the 'Let' command didn't work for some reason? So I went back to the TaskValueSet with a dummy device which works. Still have some looping challenges to clean up in the rules coding, but will start a seperate thread under the software sect...
by gregoinc
03 Feb 2019, 04:39
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

Cut down the code to this... on Temp2#Temperature do if [Temp2#Temperature] > [Temp1#Temperature] and [Temp1#Temperature] > 25 Event,StartHP endif endon on Temp1#Temperature do if [Temp1#Temperature] > 27 Event,StartHP endif endon On StartHP Do heatpumpir,daikin,1,3,0,24,4,2 EndOn And it works... bu...
by gregoinc
03 Feb 2019, 02:37
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

Had an opportunity to test the code... and in the log when the temperature inside the room reached 25 the StartHP event came up in the log. But... the heatpumpir command appears not to have been sent? I sent the heatpumpir command manually and the air conditioner started. So I am guessing there's an...
by gregoinc
02 Feb 2019, 23:44
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

I modified the code slightly and ran it to test... on Temp2#Temperature do if [Temp2#Temperature] > [Temp1#Temperature] and [Temp1#Temperature] > 25 Event,StartHP else Event,StopHP endif endon on Temp1#Temperature do if [Temp1#Temperature] > 27 Event,StartHP else Event,StopHP endif endon On StartHP ...
by gregoinc
02 Feb 2019, 10:53
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

Looked over the code from Grovkillen (thanks again Grovkillen, couldn't have got here without you) and devised my own rules code to try and replicate my differential logic above... here's my first cut... on Temp2#Temperature do if [Temp2#Temperature] > [Temp1#Temperature] and [Temp1#Temperature] > 2...
by gregoinc
02 Feb 2019, 09:17
Forum: ESP Easy: Hardware
Topic: DS18b20 Weird Behaviour
Replies: 2
Views: 2460

Re: DS18b20 Weird Behaviour

Ended up completely rewiring based on feedback from Grovkillen, changing the pullup resistor, and the issue appears to have disappeared. I suspect the root cause was operator error :)
by gregoinc
02 Feb 2019, 02:56
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

grovkillen wrote: 01 Feb 2019, 22:48 Shouldn't matter if it's on a one wire line but if you have a star system they must be of equal length (+/-30cm) to be happy.
Ok, that might be the issue... I'll try changing the cabling. Thanks again :)
by gregoinc
02 Feb 2019, 02:54
Forum: ESP Easy: Hardware
Topic: DS18b20 Weird Behaviour
Replies: 2
Views: 2460

Re: DS18b20 Weird Behaviour

As an update... I have noticed intermittent times when the Temp2 sensor is not contactable. Here's the log screen:-
logscreen.png
logscreen.png (51.69 KiB) Viewed 2454 times
Thanks, Mark
by gregoinc
02 Feb 2019, 02:32
Forum: ESP Easy: Hardware
Topic: DS18b20 Weird Behaviour
Replies: 2
Views: 2460

DS18b20 Weird Behaviour

Hello, I recently setup my NodeMCU with 2 x DS18b20 units based on this wiki page: https://www.letscontrolit.com/wiki/index.php?title=Dallas_DS18b20#Calibrating The 2 x DS18b20 were connected (as per the wiki page) via a short Cat5e cable utilising RJ45 sockets, then each of the DS18b20 had an RJ45 ...
by gregoinc
01 Feb 2019, 22:39
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

Thanks again Grovkillen. Last night I moved one of the DS18b20 to it's final location, and both DS18b20 stopped working. One of the DS18b20 is now on a longer cable, which seems to have upset the NodeMCU? So I need to solve that issue and then get back to the coding. So much fun :lol:
by gregoinc
31 Jan 2019, 22:45
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

Thanks again Grovkillen... I will give it a try. I assume I just add a similar string of code for turning the AC unit off?

Looks like I might be buying you some beers when I am in Sweden later this year :)
by gregoinc
31 Jan 2019, 22:18
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

Hi Grovkillen, When you say variables, I assume you are referring to the TaskValueSet and Dummy Device? With code like... on Temp1#Temperature do if [dummy#var1]=0 TaskValueSet 12,1,0 else if [Temp1#Temperature] > 27 heatpumpir,daikin,1,3,0,24,4,2 TaskValueSet 12,1,1 endif endon Not sure above is ri...
by gregoinc
31 Jan 2019, 12:14
Forum: ESP Easy: Projects / Applications
Topic: Differential Control of Air Conditioner
Replies: 15
Views: 10353

Re: Differential Control of Air Conditioner

So far I've developed the rules code below and have confirmed it works... and turns the air conditioner ON.. woo hoo!! on Temp1#Temperature do if [Temp1#Temperature] > 27 heatpumpir,daikin,1,3,0,24,4,2 endif endon Only problems... - I am still stuck on the best way to write the code for the rules to...