Najretep wrote: ↑01 Mar 2023, 20:27
Hej .
Jag har ändrat alla ljudnivåer till 20,30,10,90% men tänder ändå ledlist 80%
första gången jag körde den nya scenen då släkte den kokrumslampa men inte ledlist
nu släcker den inget
01.03.2023] [19:17:35] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":false,"id":1366,"value":true,"type":"device"}
[01.03.2023] [19:17:35] [DEBUG] [QUICKAPP1342]: [true]>>'Rule:5[Koksensor:breached =>...]'
[01.03.2023] [19:17:35] [TRACE] [QUICKAPP1342]: Kokrums lampan,flaktlampa tänd %50
[01.03.2023] [19:17:35] [DEBUG] [QUICKAPP1342]: fibaro.call(1204,"setValue",50) => nil
[01.03.2023] [19:17:35] [DEBUG] [QUICKAPP1342]: fibaro.call(1203,"setValue",50) => nil
[01.03.2023] [19:17:35] [DEBUG] [QUICKAPP1342]: fibaro.call(1420,"turnOn") => nil
[01.03.2023] [19:17:36] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":80,"id":1420,"value":255,"type":"device"}
[01.03.2023] [19:17:38] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":255,"id":1420,"value":80,"type":"device"}
[01.03.2023] [19:17:46] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"power","old":44.7,"id":1200,"value":44.5,"type":"device"}
[01.03.2023] [19:17:53] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":true,"id":1366,"value":false,"type":"device"}
[01.03.2023] [19:17:53] [DEBUG] [QUICKAPP1342]: [false]>>'Rule:5[Koksensor:breached =>...]'
[01.03.2023] [19:18:16] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"power","old":44.5,"id":1200,"value":44.7,"type":"device"}
[01.03.2023] [19:18:52] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"lastBreached","old":1677694655,"id":1366,"value":1677694731,"type":"device"}
[01.03.2023] [19:18:52] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":false,"id":1366,"value":true,"type":"device"}
[01.03.2023] [19:18:52] [DEBUG] [QUICKAPP1342]: [true]>>'Rule:5[Koksensor:breached =>...]'
[01.03.2023] [19:18:52] [TRACE] [QUICKAPP1342]: Kokrums lampan,flaktlampa tänd %50
[01.03.2023] [19:18:52] [DEBUG] [QUICKAPP1342]: fibaro.call(1204,"setValue",50) => nil
[01.03.2023] [19:18:52] [DEBUG] [QUICKAPP1342]: fibaro.call(1203,"setValue",50) => nil
[01.03.2023] [19:18:52] [DEBUG] [QUICKAPP1342]: fibaro.call(1420,"turnOn") => nil
[01.03.2023] [19:18:53] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":80,"id":1420,"value":255,"type":"device"}
[01.03.2023] [19:18:55] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":255,"id":1420,"value":80,"type":"device"}
[01.03.2023] [19:19:02] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":true,"id":1366,"value":false,"type":"device"}
[01.03.2023] [19:19:02] [DEBUG] [QUICKAPP1342]: [false]>>'Rule:5[Koksensor:breached =>...]'
[01.03.2023] [19:19:05] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"lastBreached","old":1677694731,"id":1366,"value":1677694745,"type":"device"}
[01.03.2023] [19:19:05] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":false,"id":1366,"value":true,"type":"device"}
[01.03.2023] [19:19:05] [DEBUG] [QUICKAPP1342]: [true]>>'Rule:5[Koksensor:breached =>...]'
[01.03.2023] [19:19:05] [TRACE] [QUICKAPP1342]: Kokrums lampan,flaktlampa tänd %50
[01.03.2023] [19:19:05] [DEBUG] [QUICKAPP1342]: fibaro.call(1204,"setValue",50) => nil
[01.03.2023] [19:19:05] [DEBUG] [QUICKAPP1342]: fibaro.call(1203,"setValue",50) => nil
[01.03.2023] [19:19:05] [DEBUG] [QUICKAPP1342]: fibaro.call(1420,"turnOn") => nil
[01.03.2023] [19:19:06] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":80,"id":1420,"value":255,"type":"device"}
[01.03.2023] [19:19:08] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":255,"id":1420,"value":80,"type":"device"}
[01.03.2023] [19:19:11] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"value","old":true,"id":1366,"value":false,"type":"device"}
[01.03.2023] [19:19:11] [DEBUG] [QUICKAPP1342]: [false]>>'Rule:5[Koksensor:breached =>...]'
[01.03.2023] [19:19:27] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"power","old":56.1,"id":1418,"value":56.2,"type":"device"}
[01.03.2023] [19:19:46] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"power","old":44.7,"id":1200,"value":44.5,"type":"device"}
[01.03.2023] [19:19:57] [DEBUG] [QUICKAPP1342]: Incoming trigger:{"property":"power","old":56.2,"id":1418,"value":56.1,"type":"device"}
Kokrumslampa = {1204,1203} Koksensor = 1366 Koklux = 1368 Ledlist = 1420
--Tänder belysningen i Kök
rule([[Koksensor:breached =>
|| Koklux:value < 150 & 06:00..10:00 >> log('Kokrums lampan,flaktlampa tänd %20 ');Kokrumslampa:value=20; Ledlist:on ;
|| Koklux:value < 150 & 10:00..16:00 >> log('Kokrums lampan,flaktlampa tänd %50 ');Kokrumslampa:value=50; Ledlist:on;
|| Koklux:value < 150 & 16:00..21:00 >> log('Kokrums lampan,flaktlampa tänd %50 ');Kokrumslampa:value=50; Ledlist:on;
|| Koklux:value < 150 & 21:00..23:00 >> log('Kokrums lampan,flaktlampa tänd %30 ');Kokrumslampa:value=30; Ledlist:on;
|| Koklux:value < 150 & 23:00..06:00 >> log('Kokrums lampan,flaktlampa tänd %30 ');Kokrumslampa:value=30; Ledlist:on;
]])
--Ska dämpa din led list din led list från 100 % till annat value
rule([[trueFor(00:00:05{Koksensor}:safe =>
|| Koklux:value < 150 & 06:00..10:00 >> log('Ledlist tänd %30 ');Ledlist:value=30 ;
|| Koklux:value < 150 & 10:00..16:00 >> log('Ledlist tänd %30 ');Ledlist:value=30 ;
|| Koklux:value < 150 & 16:00..21:00 >> log('Ledlist tänd %30 ');Ledlist:value=30 ;
|| Koklux:value < 150 & 21:00..23:00 >> log('Ledlist tänd %90 ');Ledlist:value=90 ;
|| Koklux:value < 150 & 23:00..06:00 >> log('Ledlist tänd %30 ');Ledlist:value=10 ;
]])
--Släcker belysningen Kokrummet om ingen rörelse på 20 sekunder
--rule("trueFor(00:00:05,Koksensor:safe) => log('Belysningen är nu släkt i Kokrummet.') ;Kokrumslampa:off ") -- Släcker lampan
rule("trueFor(00:00:05,Koksensor:safe) => log('Belysningen är nu släckt i Kokrummet.');Kokrumslampa:off ") -- Släcker lampan