Search found 827 matches

by chromo23
19 Jun 2023, 18:22
Forum: ESP Easy: Projects / Applications
Topic: ESP32: Port to dimming via PWM?
Replies: 16
Views: 4194

Re: ESP32: Port to dimming via PWM?

I used this for an semi-intelligent sewing machine:
https://de.aliexpress.com/item/32802025086.html. (the option with the integrated power supply)
it works really well....

Edit: but for ESPeasy you´ll need to put another microcontroller in between that can handle the zero crossing.....
by chromo23
30 May 2023, 18:15
Forum: ESP Easy: Hardware
Topic: Wemos d1 mini clones differ in power consumption while sleeping. A possible explanation...
Replies: 3
Views: 2102

Re: Wemos d1 mini clones differ in power consumption while sleeping. A possible explanation...

TD-er wrote: 30 May 2023, 14:04 Yep, external components are easy to overlook.
The problem with these "fake"/different serial chips seem to be their inability to enter a "sleep mode" when not in use
by chromo23
30 May 2023, 13:14
Forum: ESP Easy: Hardware
Topic: Wemos d1 mini clones differ in power consumption while sleeping. A possible explanation...
Replies: 3
Views: 2102

Wemos d1 mini clones differ in power consumption while sleeping. A possible explanation...

I once made a battery powered sensor using a wemos d1 mini clone. With no modification it was drawing around 300uA of power while in deep sleep which is ok but not good enough. With the proper modifications which included lifting the ground pin of the serial chip and a changing the ldo regulator i g...
by chromo23
16 May 2023, 09:18
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4883

Re: PID control thermostat.

igorka wrote: 14 May 2023, 12:45 But still curious, have you tried PID in practice?
Unfortunately i did not find the time for this....
by chromo23
16 May 2023, 09:15
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 188
Views: 265204

Re: maybe easier to use Dashboard replacement

I am not sure if easyfetch is the right application for you. I would do this a different way. For simple http requests is use "shortcuts" on IOS (there are similar apps for android like "HTTP Request Shortcuts") But there is just one downside to this. As i have a reed/magnet sens...
by chromo23
02 May 2023, 10:32
Forum: ESP Easy: Software
Topic: no dashboard.esp in 20221105 release
Replies: 26
Views: 5261

Re: no dashboard.esp in 20221105 release

I use that function for a cheap website dashboard over all sensors. If you want a more modern look of your dashboard you can also try easyfetch. (link is in my signature) Just download the "fetch.html.gz" (or if you want to have it as the root page download "index.htm.gz") and u...
by chromo23
27 Apr 2023, 19:02
Forum: ESP Easy: General Discussion
Topic: Coin acceptor with relay project
Replies: 25
Views: 6600

Re: Coin acceptor with relay project

asuz wrote: 27 Apr 2023, 17:53 the esp is triggered
Oh, so i misunderstood. I thought the coin acceptor is triggering....

But actually my answer could also fit to the esp... :)
Do you only have one esp to test? :shock:
by chromo23
27 Apr 2023, 16:28
Forum: ESP Easy: General Discussion
Topic: Coin acceptor with relay project
Replies: 25
Views: 6600

Re: Coin acceptor with relay project

Even if the wires of the coin acceptor are not connected to the esp, if I apply the above scenario, a trigger will occur. than probably the coin module is broken / has issues... You could take a closer look at the circuit board of the device. Sometimes components in these cheap devices have slipped...
by chromo23
26 Apr 2023, 10:26
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

Is there any difference between them in the operation of the device? Yes. This one is the least responsive example since it only fires a shortpress after one second.... on qq#qq=1 do TimerSet,1,1 Endon On Rules#Timer=1 do GPIO,16,1 TimerSet,1,0 endon on qq#qq=11 do GPIO,17,1 TimerSet,1,0 endon Mine...
by chromo23
26 Apr 2023, 09:10
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

Or simpler since you probably won´t need multiple long press with different length: On Button#State Do If %eventvalue%=1 TimerSet,1,1 Elseif %eventvalue%=0 If [var#1] = 0 GPIO 16,1 //shortpress Endif TimerSet,1,0 Let,1,0 Endif Endon On Rules#Timer=1 Do Let,1,1 GPIO 17,1 //longpress Endon but maybe t...
by chromo23
26 Apr 2023, 08:53
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

I have a problem again but this time with a long button press. I have a simple rule Yes, it´s a problem. The short press event (1) is always fired fist. To get around this , there are different valid approaches. I can show you mine: On Button#State Do If %eventvalue%=1 LoopTimerSet_ms,1,100,50 Else...
by chromo23
20 Apr 2023, 15:47
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 188
Views: 265204

Re: maybe easier to use Dashboard replacement

:)
easyfetch buttons small.png
easyfetch buttons small.png (143.48 KiB) Viewed 26792 times
by chromo23
20 Apr 2023, 14:18
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 188
Views: 265204

Re: maybe easier to use Dashboard replacement

You might consider adding an options menu with all these special 'long press' etc. features, The reason i reuse elements for extra features is, that it keeps the file smaller since i also can reuse some of the code. as it's getting hard to remember all of them... But you are right and is has defini...
by chromo23
20 Apr 2023, 10:27
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 188
Views: 265204

Re: maybe easier to use Dashboard replacement

I added a "color-scheme inverting" option by long pressing the "unit name"
It is maybe useful for people that use static a color-scheme that they don´t want to change only to get another color-scheme in easyfetch.
mode.gif
mode.gif (1.02 MiB) Viewed 26827 times
by chromo23
19 Apr 2023, 18:09
Forum: ESP Easy: Software
Topic: maybe easier to use Dashboard replacement
Replies: 188
Views: 265204

Re: maybe easier to use Dashboard replacement

- I created a triple bigValC dummy device so I have a 3 column layout in Laptop and Tablet. But in the phone it's 2 columns and the first bigVal tile is a bigger tile in the left side. I like that, can I force this view in the laptop and tablet too? I updated easyfetch for you.. took a while :) - Y...
by chromo23
14 Apr 2023, 10:36
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

Great! :)

And please double check, that this doesn´t occur anymore:
Dick60 wrote: 14 Apr 2023, 08:11 ACT : Endon
Command unknown: Endon
As i said earlier, this is probably caused by a mistake/typo in your rules.
And such things can lead to serious issues and unwanted behavior when rules are processed!!!
by chromo23
14 Apr 2023, 10:08
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

And to shorten the code a bit you could use a "wildcard" in your rules making the "checkSwitches" event obsolete On Stekkerdoos_houtST* Do LogEntry,"checkSwitches: current state: ST1=[Stekkerdoos_houtST1#State], ST2=[Stekkerdoos_houtST2#State]" // etc. If [Stekkerdoos_h...
by chromo23
14 Apr 2023, 09:57
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

So the result of the log is from this script: so "checkSwitches" is still to early... i recommend you this: Edit: To be really sure the "checkSwitches" event is fired at the right time you could use a new event block like this: On Stekkerdoos_houtST1#State Do AsyncEvent,checkSwi...
by chromo23
14 Apr 2023, 09:26
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

Ok.. your naming of switches an relays is confusing me a bit. You do seem to check the relay states and not the switch state in "checkSwitches": if [Stekkerdoos_houtST1#State]=1 or [Stekkerdoos_houtST2#State]=1 But the state of the relays is changed after "AsyncEvent,checkSwitches&quo...
by chromo23
14 Apr 2023, 08:49
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

ACT : Endon Command unknown: Endon It seems you made some mistake in your rules, cause this shouldn´t happen and is probably the cause, that leads to unexpected behavior.... Can you please post all of your rules? Otherwise it is impossible to analyze this. Another thing: ACT : LogEntry,'checkSwitch...
by chromo23
13 Apr 2023, 23:36
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

Can you post the log when this happens:
Dick60 wrote: 13 Apr 2023, 23:01 sw(itch) 2 active st(ekker)2 turns on but turn off the led even st1 is active.
by chromo23
13 Apr 2023, 22:53
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

One last question: If [Stekkerdoos_houtST1#State] is generated by a push button how does this work: If [Stekkerdoos_houtSW1#State]=0 GPIO,33,0 else GPIO,33,1 endif The relay would only turn on as long as the push button is pressed. For your led rule, you should monitor the state of the relays (or be...
by chromo23
13 Apr 2023, 22:34
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

Maybe @Ath gave you a hint (by accident or on purpose) with this: All you had to do there is change the names of the switches, so it should en up something like this: On checkSwitches Do LogEntry,"checkSwitches: current state: ST1=[Stekkerdoos_houtST1#State], ST2=[Stekkerdoos_houtST2#State]&quo...
by chromo23
13 Apr 2023, 22:21
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

but if you use Stekkerdoos_houtSW1#State (led on) and after that use Stekkerdoos_houtSW2#State the led is turned off and I would expect that the led keeps on. What do you mean? Could you use the actual states when describing what you want? Describing Stekkerdoos_houtSW1#State with "led on"...
by chromo23
13 Apr 2023, 18:53
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

I also recommend this wonderful documentation:
https://espeasy.readthedocs.io/en/lates ... ight=event
by chromo23
13 Apr 2023, 18:41
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

this is it so probably I miss somthing You do... To fire this: On checkSwitches Do LogEntry,"checkSwitches: current state: [Stekkerdoos_houtST1#State]" If [Stekkerdoos_houtST1#State]=1 GPIO,16,0 // Turn on LED Else GPIO,16,1 Endif Endon You need to call following somewhere in another rule...
by chromo23
13 Apr 2023, 18:31
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

But this can´t be all your rules...

Where is this part:

Code: Select all

AsyncEvent,checkSwitches
by chromo23
13 Apr 2023, 18:23
Forum: ESP Easy: General Discussion
Topic: Rules best approach
Replies: 34
Views: 4614

Re: Rules best approach

Can you post all your rules?
by chromo23
26 Mar 2023, 19:08
Forum: ESP Easy: General Discussion
Topic: command exist for timezone ?
Replies: 6
Views: 1708

Re: command exist for timezone ?

I see..
The workaround is to enable rules and make an event:

Code: Select all

On SetTZ Do
  TimeZone,%eventvalue%
Endon
Then the http command would be:
http://192.168.1.10/control?cmd=Event,SetTZ=120
by chromo23
26 Mar 2023, 18:00
Forum: ESP Easy: General Discussion
Topic: command exist for timezone ?
Replies: 6
Views: 1708

Re: command exist for timezone ?

There exists a pretty nice and extensive documentation: https://espeasy.readthedocs.io/en/latest/ It will answer your question. See: https://espeasy.readthedocs.io/en/latest/Reference/Command.html?highlight=Timezone#internal-commands (The syntax for sending this command via http is at the beginning ...
by chromo23
22 Mar 2023, 17:38
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

chromo23 wrote: 22 Mar 2023, 15:25 Set a variable to run TimerSet
I just saw, that i used the same variable than that which was already in code... i corrected it now
by chromo23
22 Mar 2023, 15:25
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

What do i do? Set a variable to run TimerSet only once and set i back when %eventvalue% is not <100 On garag#analog Do If %eventvalue1% < 999.00 And [plugin#gpio#pinstate#25] <= 1010 Let,1,[plugin#gpio#pinstate#25]+20 PWM,25,[int#1] Elseif %eventvalue1% > 1000.00 And [plugin#gpio#pinstate#25] >= 50...
by chromo23
22 Mar 2023, 13:58
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

That will only try to execute the value of [garag#analog] as a command I think it was used as a placeholder for the code. If not, then @Ath is right. But then it is probably anyway better to activate and deactivate the whole task with: TaskDisable,[number of the analog device] TaskEnable,[number of...
by chromo23
22 Mar 2023, 13:22
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

It seems to be correct. If you want to see what is going on, you can always head over to the log-viewer in the /tools tab. Edit: And you can also always put a "LogEntry" in your code for your own messages. This will then be displayed in the Logviewer. Example: (adding all the hyphen gives ...
by chromo23
21 Mar 2023, 17:49
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

but one second is long That was part of my hunch... :D Can you please tell me if it is possible to reduce the polling time of an analog sensor? Sorry, but you can’t. At least not that i know of. Maybe you should do the controlling with a dedicated microcontroller like an atmega328 or something simi...
by chromo23
21 Mar 2023, 09:13
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

but why do you think it won't work very well? I actually don’t know... it was more of a hunch without really knowing how your system works and how fast it needs to react. Give it a try. :) Inline calculations doesn’t seem to work, so you should do the math before and put it in a variable... ...and ...
by chromo23
20 Mar 2023, 19:22
Forum: ESP Easy: Projects / Applications
Topic: Rules in ESPeasy
Replies: 137
Views: 34114

Re: Rules in ESPeasy

At first you need an interval for "garag#analog" ..like 1s, then you need a value for PWM you can refer to: PWM,25,[Value]+2 //where two is a fairly low value... This value you can get from here: [plugin#gpio#pinstate#25] (to use this you must have set pin25 to a pwm value elsewhere before...
by chromo23
19 Mar 2023, 09:35
Forum: ESP Easy: General Discussion
Topic: Custom UI
Replies: 3
Views: 1078

Re: Custom UI

Or you click on „easyfetch“ in my signature… :)
by chromo23
18 Mar 2023, 11:20
Forum: ESP Easy: General Discussion
Topic: Coin acceptor with relay project
Replies: 25
Views: 6600

Re: Coin acceptor with relay project

As I attach the video, when I just touch the coin acceptor with coin, the pulse counter start to count without insert the coin. Does this also happen when only the coin module is connected and you measure the output with a multimeter for example? If it produce the same results, than probably the co...
by chromo23
16 Mar 2023, 12:42
Forum: ESP Easy: Software
Topic: WiFiAPMode doesn't work again
Replies: 3
Views: 1051

Re: WiFiAPMode doesn't work again

TD-er wrote: 16 Mar 2023, 12:33 But this again needs a very thorough look at the network code, so you may understand my hesitation.
I absolutely unterstand. Reliable working WiFi is somewhat essential for these kind of microcontroller :D
For now my "workaround" seems to work so i am happy and there is no rush... :)
by chromo23
16 Mar 2023, 12:17
Forum: ESP Easy: Software
Topic: WiFiAPMode doesn't work again
Replies: 3
Views: 1051

Re: WiFiAPMode doesn't work again

I found a workaround:

Code: Select all

On APMode Do
  WiFiDisconnect
  WiFiAPMode
Endon
It seems, that executing a disconnect before starting an AP solves the problem...

Edit: …and successfully start the ap+sta mode
by chromo23
16 Mar 2023, 12:01
Forum: ESP Easy: Software
Topic: WiFiAPMode doesn't work again
Replies: 3
Views: 1051

WiFiAPMode doesn't work again

I used yesterdays build and realized that "WiFiAPMode" doesn’t work. I am not entirely sure, but i think it was already working a while ago... 185317 : Info : HTTP: WifiAPMode 185425 : Info : WIFI : Set WiFi to AP+STA 185535 : Info : WIFI : AP Mode ssid will be chickendoor with address 192...
by chromo23
10 Mar 2023, 09:28
Forum: ESP Easy: General Discussion
Topic: TaskValueSet
Replies: 18
Views: 2032

Re: TaskValueSet

yes it is enabled. on devices page, i can see state turn to 0, and light turn off, but when i click the switch again, it seems like it is still 1, but is shows 0. so i have to click once again to be able to toggle state to 1 I think i know what your issue is. You have a toggle switch, which sets a ...
by chromo23
09 Mar 2023, 17:57
Forum: ESP Easy: General Discussion
Topic: TaskValueSet
Replies: 18
Views: 2032

Re: TaskValueSet

chromo23 wrote: 09 Mar 2023, 17:38 Edit: I personally find it hard to understand what you want to achieve. Maybe you can explain it for me a bit simpler.
by chromo23
09 Mar 2023, 17:38
Forum: ESP Easy: General Discussion
Topic: TaskValueSet
Replies: 18
Views: 2032

Re: TaskValueSet

You have a mistake in your rules on rotary#counter do TaskValueSet 3,1,1023-(%eventvalue%*10.23) endif <---------------------------------------- if there is an "endif" there should be an "if" or no "endif" at all rotary#counter=%eventvalue% <----------- what is this for...
by chromo23
08 Mar 2023, 20:45
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 30781

Re: Very long time connecting to WiFi

I've even seen the connected log + IP being reported at 1500 msec from boot, so there is still some room for improvement. However, there is always the risk we may put too much stress on the node, causing poor quality ones to fail. Don't push the limits too far.. it all looks already really good. ;)
by chromo23
08 Mar 2023, 19:42
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 30781

Re: Very long time connecting to WiFi

If this would happen on every start then definitely yes!!! :)
by chromo23
08 Mar 2023, 18:56
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 30781

Re: Very long time connecting to WiFi

TD-er wrote: 08 Mar 2023, 18:05 One way can be to store the BSSID/channel in the settings,
For me personally, this would be great since i only use fixed channels...
by chromo23
08 Mar 2023, 18:09
Forum: ESP Easy: General Discussion
Topic: Very long time connecting to WiFi
Replies: 62
Views: 30781

Re: Very long time connecting to WiFi

TD-er wrote: 08 Mar 2023, 18:05 The RTC is being cleared in quite a lot of occasions.
Maybe a bit too often.
If it is working only under rare conditions and it than only works one time, it raises the question what it is good for anyway and if we really need it? :)