Beginnen Sie nicht mit Skript

Ich bin ziemlich neu in IP Symcon und PHP-Programmierung.

Es tut uns leid Deutsch. Norwegian hier und Google translate :slight_smile:

Hoffe jemand kann meine Frage beantworten. Ich habe ein einfaches Skript, wo das „Haus“ geht heute Abend Modus (Licht gedimmt und mehr) erstellt. Mein Problem ist, dass das Skript nicht gestartet, wenn ich weg bin. Ich habe eine Alarmanlage, die aktiviert wird, wenn ich weg bin damit boolean „true“ ist. Wie bekomme ich das Skript und nicht weiter, wenn der Alarm aktiviert ist?

Hi Dice,

Wlecome to the forum and our community :slight_smile:

I would propose to write in english - most people here understand it and there is an english forum. Google translate is not too good, when it comes to translating technical stuff :wink:

As I understand, your script does not get started when the boolean variable switches to „true“ - correct ? Did you put an event on the script, triggering it when the variable goes true ? The script itself does work ? Can you post a screenshot of your event ?

Cheers
Martin

Hi Martin

No it was not quite the way I meant it.
I want the script to check the status of the Boolean variable.
If the variable is „true“ so I do not want the script to start.
Not so good that the script turns on the lights at home when we are away.

Cheers
Dice :slight_smile:


if(!GetValue(12345))
  return; //just bail out

Use this snippet at the top of your script. And change the ID to the one from your boolean variable.

paresy

thank you paresy, that simple but yet so hard :slight_smile: