ESP Easy V2.0.0 Dev12; Rules not updating field

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Bert'Ridder
Normal user
Posts: 11
Joined: 08 Jan 2018, 13:15

ESP Easy V2.0.0 Dev12; Rules not updating field

#1 Post by Bert'Ridder » 13 Jan 2018, 17:47

For the check of the Central Heating is working, I want to calculate tyhe Temperature-Difference between the water out of the heater and the water coming back.
Yhis data I want to send to the Domoticz.

The temperatur of the water is measured wit DS18B20 Sensors. The difference will be calculated as a dummy_device.
What ever I try the Difference stays 0.

I made a small Rule:

Code: Select all

on  Temp_2#Temperature_2 do
  TaskValueSet,5,1,([Temp_2#Temperature_2] - [Temp_3#Temperature_3])
endon


What ever I try, the value of Device 5 stays 0. The output send to Domotics as JSON:

System
Build 20000
Unit 2
Uptime 1134
Free RAM 19408
Sensors
0
TaskName "Temp_1"
Temperature_1 20.62
1
TaskName "Temp_2"
Temperature_2 37.13
2
TaskName "Temp_3"
Temperature_3 34.81
3
TaskName "Temp_4"
Tapwater_4 28.25
4
TaskName "CV_Delta"
Delta_T 0
0




What is wrong?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy V2.0.0 Dev12; Rules not updating field

#2 Post by grovkillen » 13 Jan 2018, 18:17

Try another browser when you edit the rules.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Bert'Ridder
Normal user
Posts: 11
Joined: 08 Jan 2018, 13:15

Re: ESP Easy V2.0.0 Dev12; Rules not updating field

#3 Post by Bert'Ridder » 14 Jan 2018, 20:16

I've don that, but without result.
Nothing seems to work.

Changend the code a bit:

Code: Select all

On  Temp_2#Temperature_2 Do

  TaskValueSet, 5,1,([Temp_2#Temperature_2] - [Temp_3#Temperature_3])

Endon

On Temp_2#Temperature_2 Do
   If [Temp_2#Temperature_2] > 55   // When Watertemp > 53 degrees  LED on
     GPIO,2,0
   Else
      GPIO,2,1 
   Endif
Endon
to check. Then the LED responds on the temperature.
So the rule-File is working,

Then i changed the condition of the IF to:

Code: Select all

On Temp_2#Temperature_2 Do
   If ([Temp_2#Temperature_2] - [Temp_3#Temperature_3]) > 5   
          // When Delta Watertemp > 5 degrees  LED on
     GPIO,2,0
   Else
      GPIO,2,1 
   Endif
Endon
But then nothing happens.
It seems that the calculation (subtraction) is not working.

Even:

Code: Select all

TaskValueSet, 5,1,[Temp_2#Temperature_2] 
is not giving any value to task 5 (CV_Delta.

wim16
Normal user
Posts: 88
Joined: 01 May 2017, 20:35

Re: ESP Easy V2.0.0 Dev12; Rules not updating field

#4 Post by wim16 » 14 Jan 2018, 22:34

I noticed that a dummy device is not updated when it's not enabled.
Do not know if that is as designed but maybe this is the cause of your problem too.

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: ESP Easy V2.0.0 Dev12; Rules not updating field

#5 Post by vader » 16 Jan 2018, 22:19

I have checked the source code now and could not find the check for a entered square bracket. So I assume that only numbers (0-1) and operators (+-*/^) are allowed. NO task values!

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests