NEWS
[gelöst] Skript Frage - 2tes Gerät 10 Minuten später
-
hmm, nun ist das Innenlicht an. sollte ab 22:00 dunkel sein
> javascript.0 2017-07-18 22:11:00.364 info script.js.common.Hühnerstall: Innenlicht: true
! ````
var idTemp = "fhem.0.ESP03_Temperatur.Temperature"/ESP03_Temperatur Temperature/;
var idAktor_Innenlicht = "fhem.0.ESP03_Innenlicht.state"/ESP03_Innenlicht state/;
var idAktor_Notlicht = "fhem.0.ESP03_Notlicht.state"/ESP03_Notlicht state/;
var idAktor_Heizung = "fhem.0.ESP03_Heizung.state"/ESP03_Heizung state/;
! var temp = getState(idTemp).val;
var aktor_Innenlicht = getState(idAktor_Innenlicht).val;
var aktor_Notlicht = getState(idAktor_Notlicht).val;
var aktor_Heizung = getState(idAktor_Heizung).val;
var timer = null;
! function Zeitschaltung()
{
var nacht = compareTime('22:00', '06:00', 'between');
log('User-Log: Innenlicht: ' + aktor_Innenlicht);
log('User-Log: Nacht: ' + nacht);
if(nacht && !isAstroDay())
{
if(!aktor_Innenlicht) setState(idAktor_Innenlicht, true);
}
else if(aktor_Innenlicht) setState(idAktor_Innenlicht, false);
}
! function heizung()
{
if (temp < 1)
{
if (!aktor_Heizung) setState(idAktor_Heizung, true);
}
else if (aktor_Heizung) setState(idAktor_Heizung, false);
}
! schedule('* * * * *', Zeitschaltung);
! on(idTemp, function(dp) {
temp = dp.state.val;
heizung();
});
! on(idAktor_Innenlicht, function(dp) {
aktor_Innenlicht = dp.state.val;
if(timer) clearTimeout(timer);
if(!aktor_Innenlicht) { // schaltet aus
setState(idAktor_Notlicht, true); // Notlicht ein
timer = setTimeout(function() {
setState(idAktor_Notlicht, false);
}, 600000); // nach 10 Minuten aus
}
});
! on(idAktor_Notlicht, function(dp) {
aktor_Notlicht = dp.state.val;
});
! on(idAktor_Heizung, function(dp) {
aktor_Heizung = dp.state.val;
});22:16:00.542 [info] javascript.0 script.js.common.Hühnerstall: User-Log: Innenlicht: true
22:16:00.544 [info] javascript.0 script.js.common.Hühnerstall: User-Log: Nacht: trueEDIT Habs mal umgedreht, nun gehts wie es soll (hoffe ich) var nacht = compareTime('06:00', '22:00', 'between');
-
Ach so, vor 22:00 soll das Licht einschalten, wenn es draußen dunkel wird. Dann so:
var tag = compareTime('06:00', '22:00', 'between'); if(tag && !isAstroDay())
-
das Astroscript spinnt aber wohl rum
javascript.0 2017-07-18 21:28:34.135 warn Cannot calculate "night" for 53.0000, 7.0000
javascript.0 2017-07-18 21:28:34.122 warn Cannot calculate "nightEnd" for 53.0000, 7.0000
javascript.0 2017-07-18 21:28:34.117 warn Cannot calculate "night" for 53.0000, 7.0000 `
Bei 53° nördlicher Breite sollte es funktionieren (habe es damit gerade getestet). Weiter nördlich kann es im Sommer zu solchen Warnungen kommen. -
change: 'ne', ack: true gleichzeitig zu verwenden, ist wohl eher unproduktiv (triggert nie), da die Wertänderung Folge von setState() ist und ack = true Folge der Rückmeldung des Aktors (FHEM) bei unverändertem Wert. Außerdem sollte bei der Heizung eine Hysterese verwendet werden, da sonst zu häufig ein- und ausgeschaltet wird. So sollte es funktionieren:
var idTemp = "fhem.0.ESP03_Temperatur.Temperature"/*ESP03_Temperatur Temperature*/; var idAktor_Innenlicht = "fhem.0.ESP03_Innenlicht.state"/*ESP03_Innenlicht state*/; var idAktor_Notlicht = "fhem.0.ESP03_Notlicht.state"/*ESP03_Notlicht state*/; var idAktor_Heizung = "fhem.0.ESP03_Heizung.state"/*ESP03_Heizung state*/; var temp = getState(idTemp).val; var aktor_Innenlicht = getState(idAktor_Innenlicht).val; var aktor_Notlicht = getState(idAktor_Notlicht).val; var aktor_Heizung = getState(idAktor_Heizung).val; var timer = null; function Zeitschaltung() { var tag = compareTime('06:00', '22:00', 'between'); if(tag && !isAstroDay()) { if(!aktor_Innenlicht) setState(idAktor_Innenlicht, true); } else if(aktor_Innenlicht) setState(idAktor_Innenlicht, false); } function heizung() { if (temp < 0 && !aktor_Heizung) setState(idAktor_Heizung, true); else if (temp > 1 && aktor_Heizung) setState(idAktor_Heizung, false); } schedule('* * * * *', Zeitschaltung); on(idTemp, function(dp) { temp = dp.state.val; heizung(); }); on({id: idAktor_Innenlicht, ack: true}, function(dp) { aktor_Innenlicht = dp.state.val; if(!aktor_Innenlicht) setState(idAktor_Notlicht, true); // Notlicht ein }); on({id: idAktor_Notlicht, ack: true}, function(dp) { aktor_Notlicht = dp.state.val; if(aktor_Notlicht) { // hat eingeschaltet if(timer) clearTimeout(timer); timer = setTimeout(function() { setState(idAktor_Notlicht, false); }, 600000); // nach 10 Minuten aus } }); on({id: idAktor_Heizung, ack: true}, function(dp) { aktor_Heizung = dp.state.val; });
-
danke, aber habe dann wieder das Problem, das die Notlampe dauer leuchtet.
-
habe dann wieder das Problem, das die Notlampe dauer leuchtet. `
Wie sieht der Zustand (Wert, Bestätigt) des Aktors Notlicht im Reiter Zustände aus, wenn die Notlampe leuchtet ? -
Notlicht An:
! ````
fhem.0.ESP03_Notlicht.off ESP03_Notlicht off ESP03_Notlicht off
fhem.0.ESP03_Notlicht.on ESP03_Notlicht on ESP03_Notlicht on
fhem.0.ESP03_Notlicht.check ESP03_Notlicht check ESP03_Notlicht check
fhem.0.ESP03_Notlicht.buzzer ESP03_Notlicht buzzer ESP03_Notlicht buzzer
fhem.0.ESP03_Notlicht.candle ESP03_Notlicht candle ESP03_Notlicht candle
fhem.0.ESP03_Notlicht.clearreadings ESP03_Notlicht clearreadings ESP03_Notlicht clearreadings
fhem.0.ESP03_Notlicht.dmx ESP03_Notlicht dmx ESP03_Notlicht dmx
fhem.0.ESP03_Notlicht.dots ESP03_Notlicht dots ESP03_Notlicht dots
fhem.0.ESP03_Notlicht.erase ESP03_Notlicht erase ESP03_Notlicht erase
fhem.0.ESP03_Notlicht.event ESP03_Notlicht event ESP03_Notlicht event
fhem.0.ESP03_Notlicht.gpio ESP03_Notlicht gpio ESP03_Notlicht gpio
fhem.0.ESP03_Notlicht.help ESP03_Notlicht help ESP03_Notlicht help
fhem.0.ESP03_Notlicht.inputswitchstate ESP03_Notlicht inputswitchstate ESP03_Notlicht inputswitchstate
fhem.0.ESP03_Notlicht.irsend ESP03_Notlicht irsend ESP03_Notlicht irsend
fhem.0.ESP03_Notlicht.lcd ESP03_Notlicht lcd ESP03_Notlicht lcd
fhem.0.ESP03_Notlicht.lcdcmd ESP03_Notlicht lcdcmd ESP03_Notlicht lcdcmd
fhem.0.ESP03_Notlicht.lights ESP03_Notlicht lights ESP03_Notlicht lights
fhem.0.ESP03_Notlicht.longpulse ESP03_Notlicht longpulse ESP03_Notlicht longpulse
fhem.0.ESP03_Notlicht.mcpgpio ESP03_Notlicht mcpgpio ESP03_Notlicht mcpgpio
fhem.0.ESP03_Notlicht.motorshieldcmd ESP03_Notlicht motorshieldcmd ESP03_Notlicht motorshieldcmd
fhem.0.ESP03_Notlicht.neopixel ESP03_Notlicht neopixel ESP03_Notlicht neopixel
fhem.0.ESP03_Notlicht.neopixelall ESP03_Notlicht neopixelall ESP03_Notlicht neopixelall
fhem.0.ESP03_Notlicht.neopixelfx ESP03_Notlicht neopixelfx ESP03_Notlicht neopixelfx
fhem.0.ESP03_Notlicht.neopixelline ESP03_Notlicht neopixelline ESP03_Notlicht neopixelline
fhem.0.ESP03_Notlicht.oled ESP03_Notlicht oled ESP03_Notlicht oled
fhem.0.ESP03_Notlicht.oledcmd ESP03_Notlicht oledcmd ESP03_Notlicht oledcmd
fhem.0.ESP03_Notlicht.oledframedcmd ESP03_Notlicht oledframedcmd ESP03_Notlicht oledframedcmd
fhem.0.ESP03_Notlicht.pcapwm ESP03_Notlicht pcapwm ESP03_Notlicht pcapwm
fhem.0.ESP03_Notlicht.pcfgpio ESP03_Notlicht pcfgpio ESP03_Notlicht pcfgpio
fhem.0.ESP03_Notlicht.pcflongpulse ESP03_Notlicht pcflongpulse ESP03_Notlicht pcflongpulse
fhem.0.ESP03_Notlicht.pcfpulse ESP03_Notlicht pcfpulse ESP03_Notlicht pcfpulse
fhem.0.ESP03_Notlicht.pulse ESP03_Notlicht pulse ESP03_Notlicht pulse
fhem.0.ESP03_Notlicht.pwm ESP03_Notlicht pwm ESP03_Notlicht pwm
fhem.0.ESP03_Notlicht.pwmfade ESP03_Notlicht pwmfade ESP03_Notlicht pwmfade
fhem.0.ESP03_Notlicht.raw ESP03_Notlicht raw ESP03_Notlicht raw false admin.0 2017-07-18 21:19:21.723 2017-07-18 21:19:21.723
fhem.0.ESP03_Notlicht.reboot ESP03_Notlicht reboot ESP03_Notlicht reboot
fhem.0.ESP03_Notlicht.reset ESP03_Notlicht reset ESP03_Notlicht reset
fhem.0.ESP03_Notlicht.rtttl ESP03_Notlicht rtttl ESP03_Notlicht rtttl
fhem.0.ESP03_Notlicht.serialsend ESP03_Notlicht serialsend ESP03_Notlicht serialsend
fhem.0.ESP03_Notlicht.servo ESP03_Notlicht servo ESP03_Notlicht servo
fhem.0.ESP03_Notlicht.status ESP03_Notlicht status ESP03_Notlicht status
fhem.0.ESP03_Notlicht.statusrequest ESP03_Notlicht statusrequest ESP03_Notlicht statusrequest
fhem.0.ESP03_Notlicht.tone ESP03_Notlicht tone ESP03_Notlicht tone
fhem.0.ESP03_Notlicht.Switch ESP03_Notlicht Switch ESP03_Notlicht Switch true true fhem.0 2017-07-20 22:01:02.155 2017-07-18 21:17:38.590
fhem.0.ESP03_Notlicht.presence ESP03_Notlicht presence ESP03_Notlicht presence present true fhem.0 2017-07-20 21:59:53.648 2017-07-18 21:21:56.434
fhem.0.ESP03_Notlicht.state ESP03_Notlicht state ESP03_Notlicht state true true fhem.0 2017-07-20 22:01:02.163 2017-07-20 21:59:43.319Notlicht Aus: >! ```` fhem.0.ESP03_Notlicht.off ESP03_Notlicht off ESP03_Notlicht off fhem.0.ESP03_Notlicht.on ESP03_Notlicht on ESP03_Notlicht on fhem.0.ESP03_Notlicht.check ESP03_Notlicht check ESP03_Notlicht check fhem.0.ESP03_Notlicht.buzzer ESP03_Notlicht buzzer ESP03_Notlicht buzzer fhem.0.ESP03_Notlicht.candle ESP03_Notlicht candle ESP03_Notlicht candle fhem.0.ESP03_Notlicht.clearreadings ESP03_Notlicht clearreadings ESP03_Notlicht clearreadings fhem.0.ESP03_Notlicht.dmx ESP03_Notlicht dmx ESP03_Notlicht dmx fhem.0.ESP03_Notlicht.dots ESP03_Notlicht dots ESP03_Notlicht dots fhem.0.ESP03_Notlicht.erase ESP03_Notlicht erase ESP03_Notlicht erase fhem.0.ESP03_Notlicht.event ESP03_Notlicht event ESP03_Notlicht event fhem.0.ESP03_Notlicht.gpio ESP03_Notlicht gpio ESP03_Notlicht gpio fhem.0.ESP03_Notlicht.help ESP03_Notlicht help ESP03_Notlicht help fhem.0.ESP03_Notlicht.inputswitchstate ESP03_Notlicht inputswitchstate ESP03_Notlicht inputswitchstate fhem.0.ESP03_Notlicht.irsend ESP03_Notlicht irsend ESP03_Notlicht irsend fhem.0.ESP03_Notlicht.lcd ESP03_Notlicht lcd ESP03_Notlicht lcd fhem.0.ESP03_Notlicht.lcdcmd ESP03_Notlicht lcdcmd ESP03_Notlicht lcdcmd fhem.0.ESP03_Notlicht.lights ESP03_Notlicht lights ESP03_Notlicht lights fhem.0.ESP03_Notlicht.longpulse ESP03_Notlicht longpulse ESP03_Notlicht longpulse fhem.0.ESP03_Notlicht.mcpgpio ESP03_Notlicht mcpgpio ESP03_Notlicht mcpgpio fhem.0.ESP03_Notlicht.motorshieldcmd ESP03_Notlicht motorshieldcmd ESP03_Notlicht motorshieldcmd fhem.0.ESP03_Notlicht.neopixel ESP03_Notlicht neopixel ESP03_Notlicht neopixel fhem.0.ESP03_Notlicht.neopixelall ESP03_Notlicht neopixelall ESP03_Notlicht neopixelall fhem.0.ESP03_Notlicht.neopixelfx ESP03_Notlicht neopixelfx ESP03_Notlicht neopixelfx fhem.0.ESP03_Notlicht.neopixelline ESP03_Notlicht neopixelline ESP03_Notlicht neopixelline fhem.0.ESP03_Notlicht.oled ESP03_Notlicht oled ESP03_Notlicht oled fhem.0.ESP03_Notlicht.oledcmd ESP03_Notlicht oledcmd ESP03_Notlicht oledcmd fhem.0.ESP03_Notlicht.oledframedcmd ESP03_Notlicht oledframedcmd ESP03_Notlicht oledframedcmd fhem.0.ESP03_Notlicht.pcapwm ESP03_Notlicht pcapwm ESP03_Notlicht pcapwm fhem.0.ESP03_Notlicht.pcfgpio ESP03_Notlicht pcfgpio ESP03_Notlicht pcfgpio fhem.0.ESP03_Notlicht.pcflongpulse ESP03_Notlicht pcflongpulse ESP03_Notlicht pcflongpulse fhem.0.ESP03_Notlicht.pcfpulse ESP03_Notlicht pcfpulse ESP03_Notlicht pcfpulse fhem.0.ESP03_Notlicht.pulse ESP03_Notlicht pulse ESP03_Notlicht pulse fhem.0.ESP03_Notlicht.pwm ESP03_Notlicht pwm ESP03_Notlicht pwm fhem.0.ESP03_Notlicht.pwmfade ESP03_Notlicht pwmfade ESP03_Notlicht pwmfade fhem.0.ESP03_Notlicht.raw ESP03_Notlicht raw ESP03_Notlicht raw false admin.0 2017-07-18 21:19:21.723 2017-07-18 21:19:21.723 fhem.0.ESP03_Notlicht.reboot ESP03_Notlicht reboot ESP03_Notlicht reboot fhem.0.ESP03_Notlicht.reset ESP03_Notlicht reset ESP03_Notlicht reset fhem.0.ESP03_Notlicht.rtttl ESP03_Notlicht rtttl ESP03_Notlicht rtttl fhem.0.ESP03_Notlicht.serialsend ESP03_Notlicht serialsend ESP03_Notlicht serialsend fhem.0.ESP03_Notlicht.servo ESP03_Notlicht servo ESP03_Notlicht servo fhem.0.ESP03_Notlicht.status ESP03_Notlicht status ESP03_Notlicht status fhem.0.ESP03_Notlicht.statusrequest ESP03_Notlicht statusrequest ESP03_Notlicht statusrequest fhem.0.ESP03_Notlicht.tone ESP03_Notlicht tone ESP03_Notlicht tone fhem.0.ESP03_Notlicht.Switch ESP03_Notlicht Switch ESP03_Notlicht Switch true true fhem.0 2017-07-20 22:02:21.741 2017-07-18 21:17:38.590 fhem.0.ESP03_Notlicht.presence ESP03_Notlicht presence ESP03_Notlicht presence present true fhem.0 2017-07-20 21:59:53.648 2017-07-18 21:21:56.434 fhem.0.ESP03_Notlicht.state ESP03_Notlicht state ESP03_Notlicht state false true fhem.0 2017-07-20 22:02:21.754 2017-07-20 22:02:21.583
-
Wenn Wert und Bestätigt true sind, müsste das Notlicht nach 10 Minuten ausschalten. Bau mal zum Testen Logs ein:
on({id: idAktor_Notlicht, ack: true}, function(dp) { aktor_Notlicht = dp.state.val; log('Notlicht: ' + aktor_Notlicht + ' bestätigt: ' + dp.state.ack); if(aktor_Notlicht) { // hat eingeschaltet if(timer) clearTimeout(timer); timer = setTimeout(function() { log('10 Minuten sind um'); setState(idAktor_Notlicht, false); }, 600000); // nach 10 Minuten aus } });
-
ok, läuft. mich wunder das das Notlicht mit dem Skript immer
sofort nach speichern anspringt.
-
geht nicht wieder aus
22:31:42.612 [info] javascript.0 Stop script script.js.common.Hühnerstall 22:31:42.955 [info] javascript.0 Start javascript script.js.common.Hühnerstall 22:31:42.956 [info] javascript.0 script.js.common.Hühnerstall: registered 4 subscriptions and 1 schedule 22:31:59.131 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:32:00.110 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:32:04.182 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:32:59.288 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:33:04.255 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:33:59.351 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:34:04.313 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:34:59.423 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:35:04.370 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:35:10.564 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:35:17.336 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:35:59.466 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:36:04.439 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:36:59.598 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:37:04.513 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:37:59.660 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:38:04.566 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:38:59.683 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:39:04.620 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:39:59.822 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:40:04.686 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:40:13.793 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:40:18.375 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:41:00.026 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:41:04.742 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:42:00.022 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:42:04.801 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:42:59.943 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:43:04.858 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:43:59.993 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 22:44:04.939 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true
-
dachte der Timer hat auch einen Wert
23:00:27.773 [info] javascript.0 script.js.common.Hühnerstall: Timer: [object Object] 23:00:27.978 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true bestätigt: true 23:00:27.979 [info] javascript.0 script.js.common.Hühnerstall: Timer: [object Object]
on({id: idAktor_Notlicht, ack: true}, function(dp) { aktor_Notlicht = dp.state.val; log('Notlicht: ' + aktor_Notlicht + ' bestätigt: ' + dp.state.ack); if(aktor_Notlicht) { // hat eingeschaltet if(timer) clearTimeout(timer); log('Timer: ' + timer); timer = setTimeout(function() { log('10 Minuten sind um'); setState(idAktor_Notlicht, false); }, 600000); // nach 10 Minuten aus } });
-
Es wird jede Minute 2 mal ausgelöst. Dann funktioniert dies nicht wie es soll:
else if(aktor_Innenlicht) setState(idAktor_Innenlicht, false);
Ergänze mal:
else if(aktor_Innenlicht) { setState(idAktor_Innenlicht, false); log('Innenlicht: ' + aktor_Innenlicht); }
oder schreib es mal so:
function Zeitschaltung() { var tag = compareTime('06:00', '22:00', 'between'); if(tag && !isAstroDay()) { if(!aktor_Innenlicht) setState(idAktor_Innenlicht, true); } else { if(aktor_Innenlicht) setState(idAktor_Innenlicht, false); } }
-
Ich habe das Skript mal bei mir getestet (mit Testdatenpunkten): Es läuft wie es soll. Kopiere einfach mal das folgende Skript komplett in Dein Javascript-Fenster und beobachte:
var debug = true; // nach Test auf false setzen ! var idTemp = "fhem.0.ESP03_Temperatur.Temperature"/*ESP03_Temperatur Temperature*/; var idAktor_Innenlicht = "fhem.0.ESP03_Innenlicht.state"/*ESP03_Innenlicht state*/; var idAktor_Notlicht = "fhem.0.ESP03_Notlicht.state"/*ESP03_Notlicht state*/; var idAktor_Heizung = "fhem.0.ESP03_Heizung.state"/*ESP03_Heizung state*/; var temp = getState(idTemp).val; var aktor_Innenlicht = getState(idAktor_Innenlicht).val; var aktor_Notlicht = getState(idAktor_Notlicht).val; var aktor_Heizung = getState(idAktor_Heizung).val; var timer = null; function Zeitschaltung() { var tag = compareTime('06:00', '22:00', 'between'); if(tag && !isAstroDay()) { if(!aktor_Innenlicht) setState(idAktor_Innenlicht, true); } else if(aktor_Innenlicht) setState(idAktor_Innenlicht, false); } function heizung() { if (temp < 0 && !aktor_Heizung) setState(idAktor_Heizung, true); else if (temp > 1 && aktor_Heizung) setState(idAktor_Heizung, false); } schedule('* * * * *', Zeitschaltung); on(idTemp, function(dp) { temp = dp.state.val; heizung(); }); on({id: idAktor_Innenlicht, ack: true}, function(dp) { aktor_Innenlicht = dp.state.val; if(debug) log('Innenlicht: ' + aktor_Innenlicht); if(!aktor_Innenlicht) setState(idAktor_Notlicht, true); // Notlicht ein }); on({id: idAktor_Notlicht, ack: true}, function(dp) { aktor_Notlicht = dp.state.val; if(debug) log('Notlicht: ' + aktor_Notlicht); if(aktor_Notlicht) { // hat eingeschaltet if(timer) clearTimeout(timer); timer = setTimeout(function() { setState(idAktor_Notlicht, false); }, 600000); // nach 10 Minuten aus } }); on({id: idAktor_Heizung, ack: true}, function(dp) { aktor_Heizung = dp.state.val; if(debug) log('Heizung: ' + aktor_Heizung); });
-
habs nun noch keine 10 Minuten am laufen, aber auch hier geht Notlicht sofort an.
in 10 Minuten mehr….
! ````
18:26:14.134 [info] javascript.0 Stop script script.js.common.Hühnerstall
18:26:14.499 [info] javascript.0 Start javascript script.js.common.Hühnerstall
18:26:14.501 [info] javascript.0 script.js.common.Hühnerstall: registered 4 subscriptions and 1 schedule
18:26:14.859 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:26:18.976 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:26:23.951 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:27:14.103 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:27:14.198 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:27:18.999 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:27:23.994 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:28:14.129 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:28:14.162 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:28:19.065 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:28:24.075 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:29:14.240 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:29:14.288 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:29:19.114 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:29:24.113 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false -
Unverständlich ! Sogar der Heizungsaktor, der mit der Zeitschaltung nichts zu tun hat, wird jede Minute geloggt. Da ist etwas faul, aber was ?
-
ich weiß es leider nicht, auch nach 12 Minuten keine Änderung:
! ````
18:26:14.134 [info] javascript.0 Stop script script.js.common.Hühnerstall
18:26:14.499 [info] javascript.0 Start javascript script.js.common.Hühnerstall
18:26:14.501 [info] javascript.0 script.js.common.Hühnerstall: registered 4 subscriptions and 1 schedule
18:26:14.859 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:26:18.976 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:26:23.951 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:27:14.103 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:27:14.198 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:27:18.999 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:27:23.994 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:28:14.129 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:28:14.162 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:28:19.065 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:28:24.075 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:29:14.240 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:29:14.288 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:29:19.114 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:29:24.113 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:29:58.085 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:30:14.206 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:30:14.246 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:30:14.742 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:30:14.785 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:30:19.180 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:30:24.179 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:30:30.354 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:31:14.231 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:31:14.270 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:31:19.239 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:31:24.231 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:32:14.290 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:32:14.337 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:32:19.295 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:32:24.290 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:33:14.347 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:33:14.389 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:33:19.366 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:33:24.363 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:34:14.410 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:34:14.451 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:34:19.422 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:34:24.422 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:35:01.657 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:35:14.478 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:35:14.562 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:35:16.894 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:35:16.939 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:35:19.484 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:35:24.477 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:35:32.418 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:36:14.545 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:36:14.570 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:36:19.541 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:36:24.535 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:37:14.590 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:37:14.635 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:37:19.599 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:37:24.601 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false
18:38:14.654 [info] javascript.0 script.js.common.Hühnerstall: Innenlicht: false
18:38:14.689 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:38:19.665 [info] javascript.0 script.js.common.Hühnerstall: Notlicht: true
18:38:24.666 [info] javascript.0 script.js.common.Hühnerstall: Heizung: false -
Das kann nur mit FHEM bzw. dem Adapter zutun haben. Dann tausche mal in allen on() das
ack: true
gegen
change: 'ne'
-
Das kann nur mit FHEM bzw. dem Adapter zutun haben. `
Um das zu checken, setze mal die Log Stufe der FHEM-Adapter-Instanz auf debug. -
Also, Notlicht bleibt erstmal aus, gut.
Mal gucken, ob das auch um 21:45 (Sonnenuntergang) was angeht.
Hier Ausschnitt aus FHEM Log:
! ````
fhem.0 2017-07-21 20:38:11.320 info Synchronised!
fhem.0 2017-07-21 20:38:07.641 info starting. Version 0.4.1 in /opt/iobroker/node_modules/iobroker.fhem, node: v6.11.1
fhem.0 2017-07-21 20:38:01.866 info terminating
fhem.0 2017-07-21 20:38:01.858 debug inMem message fhem.0.* fhem.0.info.connection val=false, ack=true, ts=1500662281850, q=0, from=system.adapter.fhem.0, lc=1500662281850
fhem.0 2017-07-21 20:37:33.322 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.state val=Cou: 0.00, ack=true, ts=1500662253312, q=0, from=system.adapter.fhem.0, lc=1500482337771
fhem.0 2017-07-21 20:37:33.315 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.Count val=0, ack=true, ts=1500662253301, q=0, from=system.adapter.fhem.0, lc=1500482337761
fhem.0 2017-07-21 20:37:33.303 debug >>> "fhem.0.ESP04_Gaszaehler.state.Cou: 0.00"
fhem.0 2017-07-21 20:37:33.300 debug Event: "ESPEasy ESP04_Gaszaehler Cou: 0.00"
fhem.0 2017-07-21 20:37:33.298 debug === "fhem.0.ESP04_Gaszaehler.Count.0"
fhem.0 2017-07-21 20:37:33.297 debug Event: "ESPEasy ESP04_Gaszaehler Count: 0.00"
fhem.0 2017-07-21 20:37:32.302 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.state val=false, ack=true, ts=1500662252290, q=0, from=system.adapter.fhem.0, lc=1500405519651
fhem.0 2017-07-21 20:37:32.294 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.Switch val=true, ack=true, ts=1500662252280, q=0, from=system.adapter.fhem.0, lc=1500662132153
fhem.0 2017-07-21 20:37:32.281 debug s== "fhem.0.ESP03_Heizung.state.off"
fhem.0 2017-07-21 20:37:32.280 debug Event: "ESPEasy ESP03_Heizung off"
fhem.0 2017-07-21 20:37:32.278 debug === "fhem.0.ESP03_Heizung.Switch.true"
fhem.0 2017-07-21 20:37:32.277 debug Event: "ESPEasy ESP03_Heizung Switch: off"
fhem.0 2017-07-21 20:37:27.294 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.state val=false, ack=true, ts=1500662247283, q=0, from=system.adapter.fhem.0, lc=1500657101725
fhem.0 2017-07-21 20:37:27.278 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.Switch val=true, ack=true, ts=1500662247267, q=0, from=system.adapter.fhem.0, lc=1500662187197
fhem.0 2017-07-21 20:37:27.265 debug s== "fhem.0.ESP03_Notlicht.state.off"
fhem.0 2017-07-21 20:37:27.264 debug Event: "ESPEasy ESP03_Notlicht off"
fhem.0 2017-07-21 20:37:27.262 debug === "fhem.0.ESP03_Notlicht.Switch.true"
fhem.0 2017-07-21 20:37:27.260 debug Event: "ESPEasy ESP03_Notlicht Switch: off"
fhem.0 2017-07-21 20:37:22.396 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.state val=false, ack=true, ts=1500662242386, q=0, from=system.adapter.fhem.0, lc=1500584280330
fhem.0 2017-07-21 20:37:22.383 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.Switch val=true, ack=true, ts=1500662242373, q=0, from=system.adapter.fhem.0, lc=1500662182263
fhem.0 2017-07-21 20:37:22.369 debug s== "fhem.0.ESP03_Innenlicht.state.off"
fhem.0 2017-07-21 20:37:22.368 debug Event: "ESPEasy ESP03_Innenlicht off"
fhem.0 2017-07-21 20:37:22.366 debug === "fhem.0.ESP03_Innenlicht.Switch.true"
fhem.0 2017-07-21 20:37:22.365 debug Event: "ESPEasy ESP03_Innenlicht Switch: off"
fhem.0 2017-07-21 20:37:16.305 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.state val=false, ack=true, ts=1500662236288, q=0, from=system.adapter.fhem.0, lc=1500578786261
fhem.0 2017-07-21 20:37:16.293 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.Switch val=true, ack=true, ts=1500662236272, q=0, from=system.adapter.fhem.0, lc=1500662176202
fhem.0 2017-07-21 20:37:16.275 debug s== "fhem.0.ESP03_Aussenlicht.state.off"
fhem.0 2017-07-21 20:37:16.272 debug Event: "ESPEasy ESP03_Aussenlicht off"
fhem.0 2017-07-21 20:37:16.258 debug === "fhem.0.ESP03_Aussenlicht.Switch.true"
fhem.0 2017-07-21 20:37:16.253 debug Event: "ESPEasy ESP03_Aussenlicht Switch: off"
fhem.0 2017-07-21 20:37:10.083 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.state val=Tem: 23.50, ack=true, ts=1500662230074, q=0, from=system.adapter.fhem.0, lc=1500661749580
fhem.0 2017-07-21 20:37:10.075 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.Temperature val=23.5, ack=true, ts=1500662230063, q=0, from=system.adapter.fhem.0, lc=1500661749570
fhem.0 2017-07-21 20:37:10.059 debug >>> "fhem.0.ESP03_Temperatur.state.Tem: 23.50"
fhem.0 2017-07-21 20:37:10.058 debug Event: "ESPEasy ESP03_Temperatur Tem: 23.50"
fhem.0 2017-07-21 20:37:10.056 debug === "fhem.0.ESP03_Temperatur.Temperature.23.5"
fhem.0 2017-07-21 20:37:10.054 debug Event: "ESPEasy ESP03_Temperatur Temperature: 23.50"
fhem.0 2017-07-21 20:37:03.289 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.state val=Cou: 0.00, ack=true, ts=1500662223279, q=0, from=system.adapter.fhem.0, lc=1500482337771
fhem.0 2017-07-21 20:37:03.280 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.Count val=0, ack=true, ts=1500662223268, q=0, from=system.adapter.fhem.0, lc=1500482337761
fhem.0 2017-07-21 20:37:03.269 debug >>> "fhem.0.ESP04_Gaszaehler.state.Cou: 0.00"
fhem.0 2017-07-21 20:37:03.267 debug Event: "ESPEasy ESP04_Gaszaehler Cou: 0.00"
fhem.0 2017-07-21 20:37:03.265 debug === "fhem.0.ESP04_Gaszaehler.Count.0"
fhem.0 2017-07-21 20:37:03.264 debug Event: "ESPEasy ESP04_Gaszaehler Count: 0.00"
fhem.0 2017-07-21 20:36:33.264 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.state val=Cou: 0.00, ack=true, ts=1500662193251, q=0, from=system.adapter.fhem.0, lc=1500482337771
fhem.0 2017-07-21 20:36:33.251 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.Count val=0, ack=true, ts=1500662193238, q=0, from=system.adapter.fhem.0, lc=1500482337761
fhem.0 2017-07-21 20:36:33.247 debug >>> "fhem.0.ESP04_Gaszaehler.state.Cou: 0.00"
fhem.0 2017-07-21 20:36:33.246 debug Event: "ESPEasy ESP04_Gaszaehler Cou: 0.00"
fhem.0 2017-07-21 20:36:33.236 debug === "fhem.0.ESP04_Gaszaehler.Count.0"
fhem.0 2017-07-21 20:36:33.235 debug Event: "ESPEasy ESP04_Gaszaehler Count: 0.00"
fhem.0 2017-07-21 20:36:32.285 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.state val=false, ack=true, ts=1500662192263, q=0, from=system.adapter.fhem.0, lc=1500405519651
fhem.0 2017-07-21 20:36:32.267 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.Switch val=true, ack=true, ts=1500662192255, q=0, from=system.adapter.fhem.0, lc=1500662132153
fhem.0 2017-07-21 20:36:32.220 debug s== "fhem.0.ESP03_Heizung.state.off"
fhem.0 2017-07-21 20:36:32.218 debug Event: "ESPEasy ESP03_Heizung off"
fhem.0 2017-07-21 20:36:32.215 debug === "fhem.0.ESP03_Heizung.Switch.true"
fhem.0 2017-07-21 20:36:32.214 debug Event: "ESPEasy ESP03_Heizung Switch: off"
fhem.0 2017-07-21 20:36:27.223 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.state val=false, ack=true, ts=1500662187204, q=0, from=system.adapter.fhem.0, lc=1500657101725
fhem.0 2017-07-21 20:36:27.213 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.Switch val=true, ack=true, ts=1500662187197, q=0, from=system.adapter.fhem.0, lc=1500662187197
fhem.0 2017-07-21 20:36:27.197 debug s== "fhem.0.ESP03_Notlicht.state.off"
fhem.0 2017-07-21 20:36:27.196 debug Event: "ESPEasy ESP03_Notlicht off"
fhem.0 2017-07-21 20:36:27.194 debug === "fhem.0.ESP03_Notlicht.Switch.true"
fhem.0 2017-07-21 20:36:27.193 debug Event: "ESPEasy ESP03_Notlicht Switch: off"
fhem.0 2017-07-21 20:36:26.745 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.state val=false, ack=true, ts=1500662186731, q=0, from=system.adapter.fhem.0, lc=1500657101725
fhem.0 2017-07-21 20:36:26.741 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.presence val=present, ack=true, ts=1500662186718, q=0, from=system.adapter.fhem.0, lc=1500405716434
fhem.0 2017-07-21 20:36:26.728 debug s== "fhem.0.ESP03_Notlicht.state.off"
fhem.0 2017-07-21 20:36:26.726 debug Event: "ESPEasy ESP03_Notlicht off"
fhem.0 2017-07-21 20:36:26.715 debug === "fhem.0.ESP03_Notlicht.presence.present"
fhem.0 2017-07-21 20:36:26.714 debug Event: "ESPEasy ESP03_Notlicht presence: present"
fhem.0 2017-07-21 20:36:22.288 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.state val=false, ack=true, ts=1500662182278, q=0, from=system.adapter.fhem.0, lc=1500584280330
fhem.0 2017-07-21 20:36:22.274 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.Switch val=true, ack=true, ts=1500662182263, q=0, from=system.adapter.fhem.0, lc=1500662182263
fhem.0 2017-07-21 20:36:22.263 debug s== "fhem.0.ESP03_Innenlicht.state.off"
fhem.0 2017-07-21 20:36:22.262 debug Event: "ESPEasy ESP03_Innenlicht off"
fhem.0 2017-07-21 20:36:22.260 debug === "fhem.0.ESP03_Innenlicht.Switch.true"
fhem.0 2017-07-21 20:36:22.259 debug Event: "ESPEasy ESP03_Innenlicht Switch: off"
fhem.0 2017-07-21 20:36:16.229 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.state val=false, ack=true, ts=1500662176210, q=0, from=system.adapter.fhem.0, lc=1500578786261
fhem.0 2017-07-21 20:36:16.226 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.Switch val=true, ack=true, ts=1500662176202, q=0, from=system.adapter.fhem.0, lc=1500662176202
fhem.0 2017-07-21 20:36:16.197 debug s== "fhem.0.ESP03_Aussenlicht.state.off"
fhem.0 2017-07-21 20:36:16.196 debug Event: "ESPEasy ESP03_Aussenlicht off"
fhem.0 2017-07-21 20:36:16.193 debug === "fhem.0.ESP03_Aussenlicht.Switch.true"
fhem.0 2017-07-21 20:36:16.191 debug Event: "ESPEasy ESP03_Aussenlicht Switch: off"
fhem.0 2017-07-21 20:36:15.079 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.state val=false, ack=true, ts=1500662175064, q=0, from=system.adapter.fhem.0, lc=1500584280330
fhem.0 2017-07-21 20:36:15.065 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.presence val=present, ack=true, ts=1500662175045, q=0, from=system.adapter.fhem.0, lc=1500405631077
fhem.0 2017-07-21 20:36:15.046 debug s== "fhem.0.ESP03_Innenlicht.state.off"
fhem.0 2017-07-21 20:36:15.044 debug Event: "ESPEasy ESP03_Innenlicht off"
fhem.0 2017-07-21 20:36:15.042 debug === "fhem.0.ESP03_Innenlicht.presence.present"
fhem.0 2017-07-21 20:36:15.041 debug Event: "ESPEasy ESP03_Innenlicht presence: present"
fhem.0 2017-07-21 20:36:10.106 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.state val=Tem: 23.50, ack=true, ts=1500662170002, q=0, from=system.adapter.fhem.0, lc=1500661749580
fhem.0 2017-07-21 20:36:10.059 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.Temperature val=23.5, ack=true, ts=1500662169994, q=0, from=system.adapter.fhem.0, lc=1500661749570
fhem.0 2017-07-21 20:36:09.996 debug >>> "fhem.0.ESP03_Temperatur.state.Tem: 23.50"
fhem.0 2017-07-21 20:36:09.993 debug Event: "ESPEasy ESP03_Temperatur Tem: 23.50"
fhem.0 2017-07-21 20:36:09.991 debug === "fhem.0.ESP03_Temperatur.Temperature.23.5"
fhem.0 2017-07-21 20:36:09.990 debug Event: "ESPEasy ESP03_Temperatur Temperature: 23.50"
fhem.0 2017-07-21 20:36:07.791 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.state val=false, ack=true, ts=1500662167778, q=0, from=system.adapter.fhem.0, lc=1500405519651
fhem.0 2017-07-21 20:36:07.775 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.presence val=present, ack=true, ts=1500662167757, q=0, from=system.adapter.fhem.0, lc=1500405638636
fhem.0 2017-07-21 20:36:07.757 debug s== "fhem.0.ESP03_Heizung.state.off"
fhem.0 2017-07-21 20:36:07.756 debug Event: "ESPEasy ESP03_Heizung off"
fhem.0 2017-07-21 20:36:07.752 debug === "fhem.0.ESP03_Heizung.presence.present"
fhem.0 2017-07-21 20:36:07.750 debug Event: "ESPEasy ESP03_Heizung presence: present"
fhem.0 2017-07-21 20:36:03.244 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.state val=Cou: 0.00, ack=true, ts=1500662163227, q=0, from=system.adapter.fhem.0, lc=1500482337771
fhem.0 2017-07-21 20:36:03.232 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.Count val=0, ack=true, ts=1500662163221, q=0, from=system.adapter.fhem.0, lc=1500482337761
fhem.0 2017-07-21 20:36:03.209 debug >>> "fhem.0.ESP04_Gaszaehler.state.Cou: 0.00"
fhem.0 2017-07-21 20:36:03.208 debug Event: "ESPEasy ESP04_Gaszaehler Cou: 0.00"
fhem.0 2017-07-21 20:36:03.206 debug === "fhem.0.ESP04_Gaszaehler.Count.0"
fhem.0 2017-07-21 20:36:03.205 debug Event: "ESPEasy ESP04_Gaszaehler Count: 0.00"
fhem.0 2017-07-21 20:35:39.854 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.state val=Cou: 0.00, ack=true, ts=1500662139844, q=0, from=system.adapter.fhem.0, lc=1500482337771
fhem.0 2017-07-21 20:35:39.848 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.Count val=0, ack=true, ts=1500662139833, q=0, from=system.adapter.fhem.0, lc=1500482337761
fhem.0 2017-07-21 20:35:39.834 debug >>> "fhem.0.ESP04_Gaszaehler.state.Cou: 0.00"
fhem.0 2017-07-21 20:35:39.832 debug Event: "ESPEasy ESP04_Gaszaehler Cou: 0.00"
fhem.0 2017-07-21 20:35:39.831 debug === "fhem.0.ESP04_Gaszaehler.Count.0"
fhem.0 2017-07-21 20:35:39.829 debug Event: "ESPEasy ESP04_Gaszaehler Count: 0.00"
fhem.0 2017-07-21 20:35:35.029 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.state val=Tem: 23.50, ack=true, ts=1500662135007, q=0, from=system.adapter.fhem.0, lc=1500661749580
fhem.0 2017-07-21 20:35:35.015 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.presence val=present, ack=true, ts=1500662134992, q=0, from=system.adapter.fhem.0, lc=1500405677854
fhem.0 2017-07-21 20:35:34.988 debug >>> "fhem.0.ESP03_Temperatur.state.Tem: 23.50"
fhem.0 2017-07-21 20:35:34.985 debug Event: "ESPEasy ESP03_Temperatur Tem: 23.50"
fhem.0 2017-07-21 20:35:34.982 debug === "fhem.0.ESP03_Temperatur.presence.present"
fhem.0 2017-07-21 20:35:34.981 debug Event: "ESPEasy ESP03_Temperatur presence: present"
fhem.0 2017-07-21 20:35:32.180 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.state val=false, ack=true, ts=1500662132161, q=0, from=system.adapter.fhem.0, lc=1500405519651
fhem.0 2017-07-21 20:35:32.172 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.Switch val=true, ack=true, ts=1500662132153, q=0, from=system.adapter.fhem.0, lc=1500662132153
fhem.0 2017-07-21 20:35:32.155 debug s== "fhem.0.ESP03_Heizung.state.off"
fhem.0 2017-07-21 20:35:32.153 debug Event: "ESPEasy ESP03_Heizung off"
fhem.0 2017-07-21 20:35:32.150 debug === "fhem.0.ESP03_Heizung.Switch.true"
fhem.0 2017-07-21 20:35:32.147 debug Event: "ESPEasy ESP03_Heizung Switch: off"
fhem.0 2017-07-21 20:35:32.004 info Synchronised!
fhem.0 2017-07-21 20:35:31.996 debug inMem message fhem.0.* fhem.0.initialUsbCheck.state val=active, ack=true, ts=1500492734000, q=0, from=system.adapter.fhem.0, lc=1500308822000
fhem.0 2017-07-21 20:35:31.972 debug inMem message fhem.0.* fhem.0.espBridge.state val=initialized, ack=true, ts=1500492734000, q=0, from=system.adapter.fhem.0, lc=1500492734000
fhem.0 2017-07-21 20:35:31.921 debug inMem message fhem.0.* fhem.0.Logfile.linesInTheFile val=0, ack=true, ts=1500105434000, q=0, from=system.adapter.fhem.0, lc=1500105434000
fhem.0 2017-07-21 20:35:31.905 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.state val=Cou: 0.00, ack=true, ts=1500662118000, q=0, from=system.adapter.fhem.0, lc=1500482337771
fhem.0 2017-07-21 20:35:31.874 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.presence val=present, ack=true, ts=1500662118000, q=0, from=system.adapter.fhem.0, lc=1500405627279
fhem.0 2017-07-21 20:35:31.814 debug inMem message fhem.0.* fhem.0.ESP04_Gaszaehler.Count val=0, ack=true, ts=1500662102000, q=0, from=system.adapter.fhem.0, lc=1500482337761
fhem.0 2017-07-21 20:35:31.764 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.state val=Tem: 23.50, ack=true, ts=1500662109000, q=0, from=system.adapter.fhem.0, lc=1500661749580
fhem.0 2017-07-21 20:35:31.729 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.presence val=present, ack=true, ts=1500661833000, q=0, from=system.adapter.fhem.0, lc=1500405677854
fhem.0 2017-07-21 20:35:31.709 debug inMem message fhem.0.* fhem.0.ESP03_Temperatur.Temperature val=23.5, ack=true, ts=1500662109000, q=0, from=system.adapter.fhem.0, lc=1500661749570
fhem.0 2017-07-21 20:35:31.692 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.state val=false, ack=true, ts=1500662127000, q=0, from=system.adapter.fhem.0, lc=1500657101725
fhem.0 2017-07-21 20:35:31.674 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.presence val=present, ack=true, ts=1500661885000, q=0, from=system.adapter.fhem.0, lc=1500405716434
fhem.0 2017-07-21 20:35:31.652 debug inMem message fhem.0.* fhem.0.ESP03_Notlicht.Switch val=false, ack=true, ts=1500662127000, q=0, from=system.adapter.fhem.0, lc=1500662127000
fhem.0 2017-07-21 20:35:31.635 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.state val=false, ack=true, ts=1500662122000, q=0, from=system.adapter.fhem.0, lc=1500584280330
fhem.0 2017-07-21 20:35:31.618 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.presence val=present, ack=true, ts=1500661871000, q=0, from=system.adapter.fhem.0, lc=1500405631077
fhem.0 2017-07-21 20:35:31.601 debug inMem message fhem.0.* fhem.0.ESP03_Innenlicht.Switch val=false, ack=true, ts=1500662122000, q=0, from=system.adapter.fhem.0, lc=1500662122000
fhem.0 2017-07-21 20:35:31.584 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.state val=false, ack=true, ts=1500662072000, q=0, from=system.adapter.fhem.0, lc=1500405519651
fhem.0 2017-07-21 20:35:31.552 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.presence val=present, ack=true, ts=1500661862000, q=0, from=system.adapter.fhem.0, lc=1500405638636
fhem.0 2017-07-21 20:35:31.534 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.Switch val=false, ack=true, ts=1500662072000, q=0, from=system.adapter.fhem.0, lc=1500662072000
fhem.0 2017-07-21 20:35:31.490 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.GPIO14_mode val=input, ack=true, ts=1500105390000, q=0, from=system.adapter.fhem.0, lc=1500105390000
fhem.0 2017-07-21 20:35:31.465 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.GPIO14 val=false, ack=true, ts=1500105390000, q=0, from=system.adapter.fhem.0, lc=1500105390000
fhem.0 2017-07-21 20:35:31.447 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.state val=false, ack=true, ts=1500662119000, q=0, from=system.adapter.fhem.0, lc=1500578786261
fhem.0 2017-07-21 20:35:31.427 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.presence val=present, ack=true, ts=1500662119000, q=0, from=system.adapter.fhem.0, lc=1500405637142
fhem.0 2017-07-21 20:35:31.408 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.Switch val=false, ack=true, ts=1500662116000, q=0, from=system.adapter.fhem.0, lc=1500662116000
fhem.0 2017-07-21 20:35:31.389 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.GPIO5_mode val=input, ack=true, ts=1500105591000, q=0, from=system.adapter.fhem.0, lc=1500105591000
fhem.0 2017-07-21 20:35:31.370 debug inMem message fhem.0.* fhem.0.ESP03_Aussenlicht.GPIO5 val=false, ack=true, ts=1500105591000, q=0, from=system.adapter.fhem.0, lc=1500105591000
fhem.0 2017-07-21 20:35:31.320 debug Update "fhem.0.telnetPort"
fhem.0 2017-07-21 20:35:31.166 debug Update "fhem.0.espBridge"
fhem.0 2017-07-21 20:35:31.010 debug Update "fhem.0.WEB"
fhem.0 2017-07-21 20:35:30.615 debug Update "fhem.0.ESP04_Gaszaehler"
fhem.0 2017-07-21 20:35:30.197 debug Update "fhem.0.ESP03_Temperatur"
fhem.0 2017-07-21 20:35:29.823 debug Update "fhem.0.ESP03_Notlicht"
fhem.0 2017-07-21 20:35:29.300 debug Update "fhem.0.ESP03_Innenlicht"
fhem.0 2017-07-21 20:35:28.793 debug Update "fhem.0.ESP03_Heizung"
fhem.0 2017-07-21 20:35:28.303 debug Update "fhem.0.ESP03_Aussenlicht"
fhem.0 2017-07-21 20:35:28.278 debug inMem message fhem.0.* fhem.0.info.connection val=true, ack=true, ts=1500662128219, q=0, from=system.adapter.fhem.0, lc=1500662128219
fhem.0 2017-07-21 20:35:28.214 debug Connected
fhem.0 2017-07-21 20:35:28.050 info starting. Version 0.4.1 in /opt/iobroker/node_modules/iobroker.fhem, node: v6.11.1
fhem.0 2017-07-21 20:35:27.953 debug statesDB connected
fhem.0 2017-07-21 20:35:27.807 debug objectDB connected
fhem.0 2017-07-21 20:35:22.314 info terminatingLog vom Script bleibt leer, bisher
20:46:13.216 [info] javascript.0 Stop script script.js.common.Hühnerstall
20:46:13.608 [info] javascript.0 Start javascript script.js.common.Hühnerstall
20:46:13.610 [info] javascript.0 script.js.common.Hühnerstall: registered 4 subscriptions and 1 schedule -
fhem.0 2017-07-21 20:35:32.153 debug Event: "ESPEasy ESP03_Heizung off" fhem.0 2017-07-21 20:36:07.756 debug Event: "ESPEasy ESP03_Heizung off" fhem.0 2017-07-21 20:36:32.218 debug Event: "ESPEasy ESP03_Heizung off" fhem.0 2017-07-21 20:37:32.280 debug Event: "ESPEasy ESP03_Heizung off"
Habe mal die Events "ESPEasy ESP03_Heizung off" gefiltert: Werden ca. jede Minute erzeugt und deshalb verändert sich auch der Zeitstempel des Datenpunkts in ioBroker jedesmal, was zum Triggern bei ack: true führt. Ist das bei FHEM generell so, dass zyklisch aktualisiert wird, oder ist das eine Konfigurations-Option ?
EDIT: Was mich allerdings wundert, sind solche aufeinanderfolge Log-Einträge:
fhem.0 2017-07-21 20:37:32.302 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.state val=false, ack=true, ts=1500662252290, q=0, from=system.adapter.fhem.0, lc=1500405519651 fhem.0 2017-07-21 20:37:32.294 debug inMem message fhem.0.* fhem.0.ESP03_Heizung.Switch val=true, ack=true, ts=1500662252280, q=0, from=system.adapter.fhem.0, lc=1500662132153
.Switch mit val = true und .state mit val = false ??