Search found 15 matches

by borre
28 Jan 2023, 13:14
Forum: ESP Easy: General Discussion
Topic: EspEasy sensor data to Tuya Platform
Replies: 7
Views: 1960

EspEasy sensor data to Tuya Platform

I have a espeasy device with a temp/humanity sensor.
It works fine.

But I was wondering can I send this data to Tuya platform so I can use it to controll my tuya controlled heating and airconditioning?

I already have a tuya temp/hum sensor but it updates to slow ( one time per hour)
by borre
23 Jun 2022, 09:30
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

Ah oke, It TIMER 2 gets restarted over and over again. Now I understand, a timer cannot be trigger twice and get 2 times the output, it wil only run the output once. Because the second time you trigger it, it cancel the first trigger and triggers it again, am I right? ?? correct.... but it is in yo...
by borre
22 Jun 2022, 14:11
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

Can anyone explain why timer 1 does NOT get triggered and why timer 2 gets triggered [/code] because every 5 second it gets retriggered by the switch intervall and so it never finishes? the intervall of the switch needs to be at least 9secs if your timer1 is set to 8secs this is your "run time...
by borre
22 Jun 2022, 10:53
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

Having both the timer and the Interval at 5 seconds is making it very hard to debug/test, please try with the Interval set to 7 seconds, so there is at least a chance they don't coincide. Tested it with different intervals and timerSet values but the result stays the same. Can anyone explain why ti...
by borre
21 Jun 2022, 14:58
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

since the timer fires independent of Dummy#MachineState in the working example i assume that the condition if [Dummy#MachineState] = 1 is never met.... I dont understand, in the working example else if [Dummy#MachineState] = 1 // set timmer to shutdown fan after 5 sec. timerSet,1,5 // set variable ...
by borre
21 Jun 2022, 14:12
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

hmmm have created some kind of work around but do not know why this works :? interval of the STATE is still set to 5 sec on System#Boot do //fan off GPIO,4,0 // set variable MachineState to 0 TaskValueSet 11,4,0 endon on switch#state do if [switch#state]=1 //fan on GPIO,4,1 // set variable MachineSt...
by borre
21 Jun 2022, 13:56
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

yes I know its a older version, I got 7 of these devices running here and like to have them on the same software/fireware. bit afraid of breaking stuff with updating. also found the fault, there is indeed a interval on the status switch (5 sec) but I kind of need this. I have 5 laser machines, each ...
by borre
20 Jun 2022, 15:32
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

this is not your switch in the screenshot. i´m just asking because if your switch would have set an intervall < 5 sek your rule would not work because your timer would be set every intervall new and it will never finish... I am sorry, this is my switch https://i.postimg.cc/z3fVCJ5B/Capture.png
by borre
20 Jun 2022, 15:18
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

Re: [rules] problems with timer, not working as expected

chromo23 wrote: 20 Jun 2022, 14:58 does your switch have an intervall set in the device setting?
otherwise it should work..

(a look at the log is also often helpful...)
yes it has a interval set to 60 seconds.
but we I set it to 0 and save it, it goes back to 60
Image
by borre
20 Jun 2022, 14:10
Forum: ESP Easy: Software
Topic: [rules] problems with timer, not working as expected
Replies: 26
Views: 4822

[rules] problems with timer, not working as expected

Hello I have a machine that give high or low output ([switch#state]) to my esp. when the machine turns on, a fan must blow. when the machine turns off the fan most blow for 5 more seconds en than turn off (if the machine is still off). In the rules I have problems with the timer in the code below it...
by borre
09 Oct 2021, 09:16
Forum: ESP Easy: Software
Topic: How to calculate rpm (50 - 120 rpm) fast refresh rate.
Replies: 5
Views: 4682

Re: How to calculate rpm (50 - 120 rpm) fast refresh rate.

Better use the pulsecounter for this, as rules parsing does take quite some time. The pulsecounter can be set to send an event once a second, which is doable for rules parsing. Also to tune it, place the most frequently occuring event at the start of the 1st rules file. ah plusecounter works much f...
by borre
07 Oct 2021, 22:04
Forum: ESP Easy: Software
Topic: How to calculate rpm (50 - 120 rpm) fast refresh rate.
Replies: 5
Views: 4682

Re: How to calculate rpm (50 - 120 rpm) fast refresh rate.

about getting a more stable RPM and still get a decent update rate, you can try to store the last 3 values in a variable and average over them. ah I try to average it over 3 pules and that goes beter. but if I am over 50/60 rpm the reading gets terrible. Could it be that a esp is to slow to do the ...
by borre
05 Oct 2021, 20:15
Forum: ESP Easy: Software
Topic: How to calculate rpm (50 - 120 rpm) fast refresh rate.
Replies: 5
Views: 4682

How to calculate rpm (50 - 120 rpm) fast refresh rate.

Hello This is my second project with esp easy. I have a old spinning bike with a display which shows the rpm of cranks/peddels. The display hardware is broken (corrosion of sweat) The sensor on the wheel looks like it stil works. So I like to use this to calculate the rpm. When I put gnd and D7 to s...
by borre
04 Jun 2020, 15:53
Forum: ESP Easy: General Discussion
Topic: P2P networking node monitoring?
Replies: 7
Views: 16577

Re: P2P networking node monitoring?

But what is the remote/client sensors dont report on frequent time? If they are battery powered then I can understand why they don't report very often. But if they are mains powered then simply create a timer rule to periodically report to the host. How can a client report the state to a host? Do y...
by borre
27 Feb 2020, 15:22
Forum: ESP Easy: General Discussion
Topic: P2P networking node monitoring?
Replies: 7
Views: 16577

Re: P2P networking node monitoring?

The typical way is to use timer rules on the host. One timer for each temperature sensor. The sensor data would be configured to report periodically, for example once every 30 secs. When the temperature data is received from a sensor its assigned timer is re-initialized to a period that is 2X longe...