Jag har inte gjort någon kod ändring i eventRunner 4 helt plötsligt slutar detta script bara fungera. Har fungerat klockrent fram tills ja jag tror i morse eller nått..
-------------- Badrums styrningen -----------------------
Badrumslampa = 78 Badsensor = 81 Duschsensor = 86 Badlux = 83
--Tänder belysningen i badrummet
rule([[{Badsensor,Duschsensor}:breached =>
|| Badlux:value < 39 & 06:00..10:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80; -- lampan 80%
|| Badlux:value < 20 & 10:00..16:00 >> log('Badrums lampan tänd %50 ');Badrumslampa:value=50 -- lampan 50%
|| Badlux:value < 36 & 16:00..21:00 >> log('Badrums lampan tänd %60 ');Badrumslampa:value=80 -- lampan 60%
|| Badlux:value < 35 & 21:00..23:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80 -- lampan 80%
|| Badlux:value < 10 & 23:00..06:00 >> log('Badrums lampan tänd %30 ');Badrumslampa:value=30 -- lampan 30%
|| 81:breached >> log("Badrums Sensor Main är aktiverad!")
|| 86:breached >> log("Badrums Sensor Dusch aktiverad")
]])
--Släcker belysningen badrummet
rule("trueFor(00:02,{Badsensor,Duschsensor}:safe) => log('Belysningen är nu släckt i badrummet.');Badrumslampa:off") -- Släcker lampan
------------------------------Badrums scen slut -----------------------------------------
Får denna fel kod och bokstavligt talat är att det mesta inte fungerar i eventRunner 4 just nu
Code: Select all
[2021-05-05] [15:35:49] [ERROR] [QUICKAPP61]: Error in '{Badsensor,Duschsensor}:breached =>
|| Badlux:value < 39 & 06:00..10:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80; -- lampan 80%
|| Badlux:value < 20 & 10:00..16:00 >> log('Badrums lampan tänd %50 ');Badrumslampa:value=50 -- lampan 50%
|| Badlux:value < 36 & 16:00..21:00 >> log('Badrums lampan tänd %60 ');Badrumslampa:value=80 -- lampan 60%
|| Badlux:value < 35 & 21:00..23:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80 -- lampan 80%
|| Badlux:value < 10 & 23:00..06:00 >> log('Badrums lampan tänd %30 ');Badrumslampa:value=30 -- lampan 30%
|| 81:breached >> log("Badrums Sensor Main är aktiverad!")
|| 86:breached >> log("Badrums Sensor Dusch aktiverad")
': ./include/EventRunner.lua:1277: Parser error char 143 (';') in expression '{Badsensor,Duschsensor}:breached =>
|| Badlux:value < 39 & 06:00..10:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80; -- lampan 80%
|| Badlux:value < 20 & 10:00..16:00 >> log('Badrums lampan tänd %50 ');Badrumslampa:value=50 -- lampan 50%
|| Badlux:value < 36 & 16:00..21:00 >> log('Badrums lampan tänd %60 ');Badrumslampa:value=80 -- lampan 60%
|| Badlux:value < 35 & 21:00..23:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80 -- lampan 80%
|| Badlux:value < 10 & 23:00..06:00 >> log('Badrums lampan tänd %30 ');Badrumslampa:value=30 -- lampan 30%
|| 81:breached >> log("Badrums Sensor Main är aktiverad!")
|| 86:breached >> log("Badrums Sensor Dusch aktiverad")
' (./include/EventRunner.lua:1071: Bad expression)[2021-05-05] [15:35:49] [ERROR] [QUICKAPP61]: main() error:./include/EventRunner.lua:2250: Main() ERROR:./include/EventRunner.lua:2094: ./include/EventRunner.lua:1277: Parser error char 143 (';') in expression '{Badsensor,Duschsensor}:breached => || Badlux:value < 39 & 06:00..10:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80; -- lampan 80% || Badlux:value < 20 & 10:00..16:00 >> log('Badrums lampan tänd %50 ');Badrumslampa:value=50 -- lampan 50% || Badlux:value < 36 & 16:00..21:00 >> log('Badrums lampan tänd %60 ');Badrumslampa:value=80 -- lampan 60% || Badlux:value < 35 & 21:00..23:00 >> log('Badrums lampan tänd %80 ');Badrumslampa:value=80 -- lampan 80% || Badlux:value < 10 & 23:00..06:00 >> log('Badrums lampan tänd %30 ');Badrumslampa:value=30 -- lampan 30% || 81:breached >> log("Badrums Sensor Main är aktiverad!") || 86:breached >> log("Badrums Sensor Dusch aktiverad") ' (./include/EventRunner.lua:1071: Bad expression)