Definiera en GV baserad på andra GV'n

http://automagucally.weebly.com

Moderators: davka003, Telldus

Post Reply
jimmy927
Posts: 27
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm
Contact:

Definiera en GV baserad på andra GV'n

Post by jimmy927 »

Hej,

Följande problem.
Jag vill visualisera Verkningsgrad på min FTX i automagically.

t1 = Utsug Toa
t2 = Inluft Sovrum
t3 = utetemp

Jag vill nu visualisera tx som är = ( t2 - t3 ) / ( t1 - t3 )

t1 och t2 är redan GV i AM och kommer från mina givare
t3 är också en GV men kommer från temperatur.nu

Kan jag definiera GV'n med utgångspunkt från redan existerande GV'n på ett enkelt sätt ?
KHolm
Posts: 163
Joined: Fri Mar 17, 2023 9:45 am

Re: Definiera en GV baserad på andra GV'n

Post by KHolm »

Hi,

I would've done this as a EVAL in a signal transform. Assuming that t1, t2 and t3 are Global variables defined as float in Automagically.
At some trigger (you never mentioned when) in a Signal transform I would send out this:

Code: Select all

$EVAL:"efficiency_ftx:" + str(( $t2$ - $t3$ ) / ( $t1$ - $t3$ ))
And then capture this into a new variable by capturing this signal: "efficiency_ftx:%f"
If you add this to a remote you can visualize on the remote as a graph by adding the variable.
Or, you can always feed to Xively
http://www.telldus.com/forum/viewtopic.php?f=25&t=4220

/Marcus
jimmy927
Posts: 27
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm
Contact:

Re: Definiera en GV baserad på andra GV'n

Post by jimmy927 »

KHolm wrote:Hi,

At some trigger (you never mentioned when) in a Signal transform I would send out this:

Code: Select all

$EVAL:"efficiency_ftx:" + str(( $t2$ - $t3$ ) / ( $t1$ - $t3$ ))
UPDATE 3:

I got it working now, thanks!
"t1" e.t.c. being the name of the GV's
Post Reply