Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

If Statements

If you have a question or need help, this is the place to be.
Post Reply
kamsvag
Posts: 8
Joined: Mon Aug 24, 2015 10:48 am

If Statements

Post by kamsvag »

Hi!
How do I create 'If Statements' in EventGhost?
I use eventGhost 0.4.1.r1700 on Windows 10.

I have this rawData from Tellstick plugin;
TellStickDuo.RawEvent: class:sensor;protocol:mandolyn;id:11;model:temperaturehumidity;temp:21.2;humidity:44;Duo_ID:6

I want to make 'If statements' based on the temp value:
If temp > 14, activate event tellstick.garage.heat.off
If temp < 12, activate event tellstick.garage.heat.on

If Python is the way to go I'd appreciate an syntax sample. I haven't played with python for years.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: If Statements

Post by krambriw »

I have earlier created similar samples, they are published here somewhere in the forum. I have not had time yet to search for you. Maybe try searching my posts with word 'temperature' as input
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: If Statements

Post by kkl »

Post Reply