Ich mache das auch ganz simpel über die Events:
on({id: "ical.0.events.0.now.ferien", val: true}, function() { setState("hm-rega.0.7475", false); sendTo("pushover.0", { message: 'beginnen und Schule ist aus', // mandatory - your text message title: 'Ferien', // optional - your message's title, otherwise your app's name is used priority: -1, }); }); on({id: "ical.0.events.0.now.ferien", val: false}, function() { setState("hm-rega.0.7475", true); sendTo("pushover.0", { message: 'enden und Schule geht weiter', // mandatory - your text message title: 'Ferien', // optional - your message's title, otherwise your app's name is used priority: -1, }); });Funktioniert absolut zuverlässig. "hm-rega.0.7475" ist dabei die Variable "Schulzeit".
Grüße
Brati