Search found 827 matches

by chromo23
07 Nov 2023, 22:04
Forum: ESP Easy: Projects / Applications
Topic: Current monitoring with ESPEasy
Replies: 16
Views: 4029

Re: Current monitoring with ESPEasy

My friend has just a pump in his cellar and only wants to know if it is running or not. Hey Olaf, for that purpose i flashed several Gosund SP1. I wrote rules for them and used "easyfetch" as a dashboard. They now monitor if a Pump is running and detect if the pump is running dry and turn...
by chromo23
06 Nov 2023, 22:16
Forum: ESP Easy: Hardware
Topic: Sonoff 4CH R3 GPIO
Replies: 13
Views: 3049

Re: Sonoff 4CH R3 GPIO

Disable I2C by setting the GPIOs to "none".
After that you can choose the missing GPIOs
i2c.png
i2c.png (85 KiB) Viewed 3046 times
by chromo23
06 Nov 2023, 20:41
Forum: ESP Easy: General Discussion
Topic: Node list on Main tab
Replies: 9
Views: 2434

Re: Node list on Main tab

Sorry, but other than that i can not help you. Even without the controller enabled the units should appear in each others list if i am not mistaken. Did you try other unit numbers like 1 and 2 (not that this should make any difference). Did you have some routers in between (eg. mesh network)? Edit: ...
by chromo23
06 Nov 2023, 20:32
Forum: ESP Easy: General Discussion
Topic: Node list on Main tab
Replies: 9
Views: 2434

Re: Node list on Main tab

Didi you enable on both devices the p2p controller?
controller.png
controller.png (54.92 KiB) Viewed 2432 times
by chromo23
02 Nov 2023, 15:08
Forum: ESP Easy: Software
Topic: Non blocking blinking LED with PCA9685 possible?
Replies: 5
Views: 1973

Re: Non blocking blinking LED with PCA9685 possible?

Ath wrote: 02 Nov 2023, 14:59 Hm, maybe the pcf* commands don't work with the PCA9685
I got confused by that too :D
by chromo23
02 Nov 2023, 14:44
Forum: ESP Easy: Software
Topic: Non blocking blinking LED with PCA9685 possible?
Replies: 5
Views: 1973

Non blocking blinking LED with PCA9685 possible?

Is there a possibility to let a led connectet to a PCA9685 blink with out using "TimerSet"?
The Pulse command ist almost the right direction but there is no repeat option. Is it non-blocking anyhow?

Edit: Similar to "LongPulse_mS"
by chromo23
29 Oct 2023, 20:48
Forum: ESP Easy: Software
Topic: Switch input - Push button on longpress
Replies: 12
Views: 1976

Re: Switch input - Push button on longpress

Also here i post what i wrote on github: Did some testing. Yeah it is confusing but in a way it makes sense. The longpress event is triggered only if the button type and the longpress event type are matching. eg. button type: Push Button Active High & Longpress event = Active on High -> works bu...
by chromo23
29 Oct 2023, 20:21
Forum: ESP Easy: Software
Topic: Switch input - Push button on longpress
Replies: 12
Views: 1976

Re: Switch input - Push button on longpress

I made an mistake (its all a bit confusing).. I didn´t set the switch type to "push button active low" :o You are right.. this seems to be bug indeed. It does create a longpress event when longpress event is set to "active on low". (every time you release the button there will be...
by chromo23
29 Oct 2023, 20:11
Forum: ESP Easy: Software
Topic: Switch input - Push button on longpress
Replies: 12
Views: 1976

Re: Switch input - Push button on longpress

Testet it with your settings... everything works as expected With the settings in the screenshot your button input gets low when releasing it. Since "Longpress event" is set to "active low" it will trigger a longpress event (10) because it stays low after releasing the button. us...
by chromo23
29 Oct 2023, 19:11
Forum: ESP Easy: Software
Topic: Switch input - Push button on longpress
Replies: 12
Views: 1976

Re: Switch input - Push button on longpress

Since you still have problems with the longpress i´ll write you here instead of github.

Can you post a screenshot of your switch plugin?
by chromo23
29 Oct 2023, 12:22
Forum: ESP Easy: Software
Topic: Switch input - Push button on longpress
Replies: 12
Views: 1976

Re: Switch input - Push button on longpress

Ubbs.. forgot the most important part in the code.. just updated it
by chromo23
29 Oct 2023, 12:04
Forum: ESP Easy: Software
Topic: Switch input - Push button on longpress
Replies: 12
Views: 1976

Re: Switch input - Push button on longpress

Even if i don't know you exact configuration. Try this: Set the "Longpress event:" to "Active only on LOW" and use this code: On button#state Do If %eventvalue1% = 1 Let,1,0 Elseif %eventvalue1% = 0 And [var#23] = 0 LogEntry,'short-press' //Put your code for short-press-event in ...
by chromo23
27 Oct 2023, 22:02
Forum: ESP Easy: General Discussion
Topic: How to filter an incorrect sensor value?
Replies: 6
Views: 1054

Re: How to filter an incorrect sensor value?

I had i typo in my last rules... there was a "." after the zero 0. Thats why it probably did not work. I should explain the code better: On System#Boot Do TimerSet,1,5 //after boot set a timer of 5 seconds to let everything initialize properly so that the analog input device has enough tim...
by chromo23
27 Oct 2023, 19:17
Forum: ESP Easy: General Discussion
Topic: How to filter an incorrect sensor value?
Replies: 6
Views: 1054

Re: How to filter an incorrect sensor value?

Third option and maybe the best one... - create a dummy device (and connect this instead of the analog device to the controller) - reduce the intervall of niveau_puit to lets say 60 seconds and send the data of the analog input device to the dummy device via rules...see example. demo code: On System...
by chromo23
27 Oct 2023, 18:43
Forum: ESP Easy: General Discussion
Topic: How to filter an incorrect sensor value?
Replies: 6
Views: 1054

Re: How to filter an incorrect sensor value?

Hi, Only, if the power supply to the ESP Easy card is cut off, when restarting Domoticz receives a zero value for the water level and this disrupts the log! Is there a solution so that ESP Easy cannot send a zero value? You could try setting the controller inactive as the default state and enable it...
by chromo23
23 Oct 2023, 21:01
Forum: ESP Easy: Software
Topic: Calculate : unknown token ---- integer conversion
Replies: 14
Views: 2342

Re: Calculate : unknown token ---- integer conversion

TD-er wrote: 23 Oct 2023, 20:57 And of course... the good old "oops missed that one too"
Jep, sometimes all this syntax stuff gets confusing..
by chromo23
23 Oct 2023, 19:33
Forum: ESP Easy: Software
Topic: Set Input GPIO values via Rules
Replies: 5
Views: 1110

Re: Set Input GPIO values via Rules

iz8mbw wrote: 23 Oct 2023, 19:27 If in my Rules I need/want to "simulate" a press or better to say put that GPIO to 0, how can I do it?
Switch the device you also control with the pushbutton not the pushbutton itself....

Edit: your complete ruleset would be helpful for better understanding and helping
by chromo23
23 Oct 2023, 19:11
Forum: ESP Easy: Software
Topic: Set Input GPIO values via Rules
Replies: 5
Views: 1110

Re: Set Input GPIO values via Rules

I don´t know what you want to archive but if you want to kind of reset the value you could do so by storing the gpio state in a dummy device. After the timer has finished you can set the value of the dummy device to zero. And if you use TaskValueSetAndRun an event is created to switch something if y...
by chromo23
23 Oct 2023, 17:51
Forum: ESP Easy: Software
Topic: Get value from reply of a http request to thingspeak
Replies: 18
Views: 2809

Re: Get value from reply of a http request to thingspeak

OK, i added the functionality for myself. Not sure if this is something for integrating into ESPeasy (in the form i did it).
But in general i would vote for it... :D
by chromo23
23 Oct 2023, 17:00
Forum: ESP Easy: Software
Topic: Get value from reply of a http request to thingspeak
Replies: 18
Views: 2809

Re: Get value from reply of a http request to thingspeak

causing it to crash & reset (even very possible on ESP32 ). This i understand very well. That´s why the reply in the log is cut off after a certain amount of characters i guess? Why not keeping that limitation for an event? (I personally only need this for max 32bit numbers) It would be a compr...
by chromo23
23 Oct 2023, 16:00
Forum: ESP Easy: Software
Topic: Get value from reply of a http request to thingspeak
Replies: 18
Views: 2809

Get value from reply of a http request to thingspeak

I can receive the latest value of a thingspeak channel via an http request: api.thingspeak.com/channels/<channel_id>/fields/<field_id>/last.<format> when <format> is txt you´ll get just the number as reply. In ESPeasy the log output is: HTTP: sendToHTTP,api.thingspeak.com,80,/channels/1637928/fields...
by chromo23
23 Oct 2023, 10:15
Forum: ESP Easy: Hardware
Topic: battery powered sensor
Replies: 4
Views: 1435

Re: battery powered sensor

What else can I do to reduce wake time (and power usage)? I can show you how my code works to reduce uptime when reading a sensor and sending its data to thingspeak. Basically i wait for WiFi and sensordata to become available and send it to thingspeak. I don't use the sleep options in the /config ...
by chromo23
13 Oct 2023, 18:19
Forum: ESP Easy: General Discussion
Topic: gpio14 esp12f always value 0 ??
Replies: 15
Views: 1811

Re: gpio14 esp12f always value 0 ??

This module seems to have a transistor rather than a optocoupler if you look closely... @bledad could you post a picture of your setup? The plain relay-module seems to demand ~65 mA of current at 5V to switch the relay, but the ESP can only deliver max. ~20 mA for a high/1 output, so that won't work...
by chromo23
07 Oct 2023, 22:52
Forum: ESP Easy: Hardware
Topic: Display temp from my ds18b20 in browser
Replies: 7
Views: 1603

Re: Display temp from my ds18b20 in browser

SendToHTTP sitename.com,80,/sensors/?ID=123&Temperature= What should i put in "Temperature="? Where can i get the value i need to send? SendToHTTP sitename.com,80,/sensors/?ID=123&Temperature=[NAME_OF_THE_DEVICE#VALUE_NAME] e.g.: SendToHTTP sitename.com,80,/sensors/?ID=123&Tem...
by chromo23
07 Oct 2023, 22:47
Forum: ESP Easy: Hardware
Topic: Display temp from my ds18b20 in browser
Replies: 7
Views: 1603

Re: Display temp from my ds18b20 in browser

And how the rule should looks like to send an info, for example, once in 1 minute? 1. possibility Loop timer (https://espeasy.readthedocs.io/en/latest/Rules/Rules.html?highlight=rules%20timer#timer) On System#Boot Do LoopTimerSet,1,60 // set loop timer #1 to 60 seconds Endon On Rules#Timer=1 Do Sen...
by chromo23
07 Oct 2023, 22:35
Forum: ESP Easy: Hardware
Topic: Display temp from my ds18b20 in browser
Replies: 7
Views: 1603

Re: Display temp from my ds18b20 in browser

Maybe easyfetch is something for you. (Follow the link in my signature) If you need the data outside the LAN i can recommend thingspeak (https://thingspeak.com/) Edit: thingspeak example: SendToHTTP,api.thingspeak.com,80,/update?api_key=XXXXXXXXXXXXXXX&field1=[sensor#Temperature]&field2=[sen...
by chromo23
29 Sep 2023, 15:53
Forum: ESP Easy: General Discussion
Topic: Get internal temperature sensor value with EspEasy
Replies: 49
Views: 13158

Re: Get internal temperature sensor value with EspEasy

TD-er wrote: 29 Sep 2023, 15:47 That logentry command seems to be using unicode characters, or at least not the default 7-bit ASCII.
That's never been tested.
Well, i use unicode characters as devices/value names and in rules for quiet some time now. I surprisingly never had any issues...
by chromo23
27 Sep 2023, 14:56
Forum: ESP Easy: General Discussion
Topic: Power the nodemcu dev board
Replies: 11
Views: 1819

Re: Power the nodemcu dev board

Ah found a nice blog post about this: https://iotips.tech/ldo-linear-regulator-ht7333-performance-in-a-to-92-package/ I am not sure these measurements are completely true...It would mean, that with an input of 2.6 volts from the battery the voltage after the regulator would be lower than 2.3 assumi...
by chromo23
27 Sep 2023, 14:47
Forum: ESP Easy: General Discussion
Topic: Power the nodemcu dev board
Replies: 11
Views: 1819

Re: Power the nodemcu dev board

TD-er wrote: 27 Sep 2023, 14:44 So does this chip simply send out the input voltage when its input voltage gets below the target 3V3?
So it seems :)
by chromo23
27 Sep 2023, 14:41
Forum: ESP Easy: General Discussion
Topic: Power the nodemcu dev board
Replies: 11
Views: 1819

Re: Power the nodemcu dev board

TD-er wrote: 27 Sep 2023, 13:53 However I can't find what the minimum voltage drop is.
Any idea how low this one can go and still output a stable voltage?
I don´t know... but i measure the battery voltage (single Lithiumbattery) and log it.

Here the result:
Bildschirmfoto 2023-09-27 um 14.38.58.png
Bildschirmfoto 2023-09-27 um 14.38.58.png (54.31 KiB) Viewed 1743 times
by chromo23
27 Sep 2023, 12:27
Forum: ESP Easy: General Discussion
Topic: Power the nodemcu dev board
Replies: 11
Views: 1819

Re: Power the nodemcu dev board

I can recommend the HT7333. I use it for all my battery powered projects. It only has a maximum output current of 250mA but i personally had never issues with it. It´s quiescent current is only 3.5µA....
by chromo23
12 Sep 2023, 14:59
Forum: ESP Easy: Software
Topic: Push button switch with multiple pushed combinations providing multiple commands
Replies: 2
Views: 933

Re: Push button switch with multiple pushed combinations providing multiple commands

Is it possible? There are many ways to accomplish that. For example: On System#Boot do TimerSet,1,3 //set timer #1 to 3 seconds Endon On Rules#Timer=1 Do Let,1,1 //set variable 1 to 1 after the 3 seconds of the timer Endon On Sw#State Do //on push button press If %eventvalue%=1 And [var#1]=1 If [va...
by chromo23
07 Sep 2023, 09:12
Forum: ESP Easy: Software
Topic: Get PWM value in any way
Replies: 15
Views: 8101

Re: Get PWM value in any way

Cdzn wrote: 07 Sep 2023, 05:00 2nd for triggering pwm:
...
3rd when the PWM changing duty this should store in memory last value:
...
Why not combining these two?

Like:

Code: Select all

On pwm Do
  PWM,5,%eventvalue1%
  TaskValueSet,TestMemory,Dummy,%eventvalue1%
  //Publish %sysname%/GPIO/GPIO5,%eventvalue1%
Endon
by chromo23
05 Sep 2023, 18:08
Forum: ESP Easy: Software
Topic: Get PWM value in any way
Replies: 15
Views: 8101

Re: Get PWM value in any way

How to store adn read PWM to/from Dummy values? To put a value in a dummy device use taskvalueset: https://espeasy.readthedocs.io/en/latest/Rules/Rules.html?highlight=taskvalueset#taskvalueset The pwm value you would get with: [Plugin#GPIO#Pinstate#12] ...assuming your GPIO is 12 As also discussed ...
by chromo23
05 Sep 2023, 17:50
Forum: ESP Easy: Software
Topic: [SOLVED] Help with Rules for Toggle push button switch with alternate commands to drive rolling shutter
Replies: 12
Views: 1608

Re: Help with Rules for Toggle push button switch with alternate commands

In other words, wait 2 second before to consider to take acre about the push button. in order to wait 2 sec before input is processed you could use a variable: On System#Boot do TimerSet,1,2 //set timer #1 to 2 seconds Endon On Rules#Timer=1 Do Let,1,1 //set variable 1 to 1 Endon On Button#Input Do...
by chromo23
05 Sep 2023, 14:06
Forum: ESP Easy: Software
Topic: [SOLVED] Help with Rules for Toggle push button switch with alternate commands to drive rolling shutter
Replies: 12
Views: 1608

Re: Help with Rules for Toggle push button switch with alternate commands

Is there some software solution like apply the Rules for that GPO only after 2 seconds after the boot? I mean, I can wait that Rule is applied some seconds after the boot. Thanks. Yes, you could set a timer for that: On System#Boot do TimerSet,1,2 //set timer #1 to 2 seconds Endon On Rules#Timer=1 ...
by chromo23
18 Jul 2023, 22:12
Forum: ESP Easy: Hardware
Topic: Switch State On Boot
Replies: 10
Views: 1738

Re: Switch State On Boot

Ath wrote: 18 Jul 2023, 22:07 That improvement was merged well over 2 years ago :lol:
:shock:
by chromo23
18 Jul 2023, 22:02
Forum: ESP Easy: Hardware
Topic: Switch State On Boot
Replies: 10
Views: 1738

Re: Switch State On Boot

Ath wrote: 18 Jul 2023, 21:59 You mean TaskRun,Pump ?
Wow, is this a thing now? :) Things are changing fast here....
by chromo23
18 Jul 2023, 21:52
Forum: ESP Easy: Hardware
Topic: Switch State On Boot
Replies: 10
Views: 1738

Re: Switch State On Boot

Have you tried TaskRun?

Code: Select all

On System#Boot do  
  TaskRun,1 //(or whatever the number of the switch plugin is)
Endon

On Pump#State do
 If %eventvalue%=1
           7dtext,On
 Else
           7dtext,Off
 Endif
Endon
by chromo23
06 Jul 2023, 09:34
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4864

Re: PID control thermostat.

How did you tune the PID values? Trial and error... you have to find the right values for you. Therefore it is highly recommended to plot the temperature curve somehow. (I send the data to thingspeak to get a diagram) My values are P=1 I=0 D=20. I also determine if a shot was pulled (temperature si...
by chromo23
06 Jul 2023, 09:17
Forum: ESP Easy: General Discussion
Topic: Remote Access
Replies: 13
Views: 7006

Re: Remote Access

Smotek7 wrote: 05 Jul 2023, 23:17 As an example, I will mention the cottage when I need to check the temperature there, how much water is in the tank, how the battery is charged.
For this i created easy2ntfy.
See the thread here: viewtopic.php?p=63516
by chromo23
02 Jul 2023, 20:06
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4864

Re: PID control thermostat.

I finished my little project of adding to a coffee machine I actually never wanted PID. Sometimes i see something broken and its cheap and i have the urge to buy it, repair it and make it even better than it originally was. But actually i don´t really need it (I already have three coffee machines :r...
by chromo23
30 Jun 2023, 11:35
Forum: ESP Easy: Hardware
Topic: PT1000 difficulties on TinyESP wifi controler
Replies: 4
Views: 846

Re: PT1000 difficulties on TinyESP wifi controler

Ok... i looked closer. You could connect to SPI with the Pins i marked in the screenshot but GPIO15 is also connected to the Buzzer. Maybe its a good idea to disconnect the buzzer for that. EDIT: and you´ll loose the OLED since one of the SPI pins is assigned to I2C Bildschirmfoto 2023-06-30 um 11.3...
by chromo23
30 Jun 2023, 11:25
Forum: ESP Easy: Hardware
Topic: PT1000 difficulties on TinyESP wifi controler
Replies: 4
Views: 846

Re: PT1000 difficulties on TinyESP wifi controler

TD-er wrote: 30 Jun 2023, 10:46 Anyway for resistive sensors like the PT1000, but also thermocouple sensors you need a separate chip.
But then @janzilka is out of luck i guess. There is no SPI support on this board as far as i can see.
by chromo23
22 Jun 2023, 12:24
Forum: ESP Easy: Projects / Applications
Topic: ESP32: Port to dimming via PWM?
Replies: 16
Views: 4120

Re: ESP32: Port to dimming via PWM?

such a heavy flywheel does have quite a lot of inertia. I can tell you from experience (i was also 4 or 5) that getting with the finger between the belt and the flywheel make you feel physics in a very physical way. I still have this litte reminder when looking at my middle finger... BTW: If you've...
by chromo23
20 Jun 2023, 21:53
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4864

Re: PID control thermostat.

Hello chromo23 ! From what immediately catches your eye, it is that your reworking of the code has the wrong direction to the side. I´m not sure what you mean by that but maybe you can elaborate when you find the time for that... for now it really works absolutely great. I never expected that.... :...
by chromo23
20 Jun 2023, 15:56
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4864

Re: PID control thermostat.

maybe i found a bug?

this:

Code: Select all

 Let,14,[int#14]+([int#11]*[int#5])/[int#1]
example: Let,14,2+(-160*0)/30
var#14=0.066667


is not the same than this:

Code: Select all

 Let,14,([int#11]*[int#5])/[int#1]+[int#14] 
 
example: Let,14,(-160*0)/30+2
var#14=2

shouldn´t it be the same?
by chromo23
19 Jun 2023, 22:14
Forum: ESP Easy: Software
Topic: PID control thermostat.
Replies: 23
Views: 4864

Re: PID control thermostat.

Ok.. i found some time and also some mistakes in the code (at least i think they are mistakes) 1. constraining "I": your code: if [int#11] < -100 let,11,-100//i_min else if [int#11] > 2000 let,11,2000//i_max endif else Let,14,[var#14#F]+([int#11]*[int#5])/[int#1] //PID_y = PID_y + (PID_i *...
by chromo23
19 Jun 2023, 21:37
Forum: ESP Easy: Projects / Applications
Topic: ESP32: Port to dimming via PWM?
Replies: 16
Views: 4120

Re: ESP32: Port to dimming via PWM?

My first try of making my sewing machine smart was 13 years ago with very little knowledge of programming and electricity. I also used a rectifier and a pwm signal but never got it to work because i almost killed myself before i could finish the project. :o So i decided to use more ready made circui...