lampki sufitowe: przełączone na sonoffa05
Wcześniej były pod sterownik okapu podłączone, ale zmieniliśmy okap i już nie ma tego sterownika.
This commit is contained in:
@@ -15,7 +15,7 @@ sonoff01
|
|||||||
sonoff02 - lampka stół
|
sonoff02 - lampka stół
|
||||||
sonoff03 - łazienka wiatrak
|
sonoff03 - łazienka wiatrak
|
||||||
sonoff04 -
|
sonoff04 -
|
||||||
sonoff05 -
|
sonoff05 - lampki sufitowe
|
||||||
sonoff06 - przedpokój touch przy drzwiach
|
sonoff06 - przedpokój touch przy drzwiach
|
||||||
sonoff07 - wc wiatrak
|
sonoff07 - wc wiatrak
|
||||||
d1mini01 - okap
|
d1mini01 - okap
|
||||||
@@ -51,9 +51,9 @@ Number wSONOFF03 "Wifi s03 wiatrak łazienka [%d dB]" <wifi> (wifi) { mqtt="<[mo
|
|||||||
Switch rSONOFF03 "Conn s03 wiatrak łazienka [%s]" { mqtt="<[motherqtt:/sonoff03/status:state:MAP(espeasy_lwt.map)]" }
|
Switch rSONOFF03 "Conn s03 wiatrak łazienka [%s]" { mqtt="<[motherqtt:/sonoff03/status:state:MAP(espeasy_lwt.map)]" }
|
||||||
|
|
||||||
|
|
||||||
Switch sSONOFF05 "sonoff5" <whites> { mqtt=">[motherqtt:/sonoff05/gpio/12:command:ON:1],>[motherqtt:/sonoff05/gpio/12:command:OFF:0]" }
|
Switch sSONOFF05 "Lampki sufitowe" <whites> { mqtt=">[motherqtt:/sonoff05/gpio/12:command:ON:1],>[motherqtt:/sonoff05/gpio/12:command:OFF:0]" }
|
||||||
Number wSONOFF05 "Wifi s05 [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff05/sysinfo/wifi:state:default]" }
|
Number wSONOFF05 "Wifi sufit s05 [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff05/sysinfo/wifi:state:default]" }
|
||||||
Switch rSONOFF05 "Conn s05 [%s]" { mqtt="<[motherqtt:/sonoff05/lwt:state:MAP(espeasy_lwt.map)]" }
|
Switch rSONOFF05 "Conn sufit s05 [%s]" { mqtt="<[motherqtt:/sonoff05/lwt:state:MAP(espeasy_lwt.map)]" }
|
||||||
|
|
||||||
/* przedpokój - sonoff przy drzwiach wejściowych */
|
/* przedpokój - sonoff przy drzwiach wejściowych */
|
||||||
/* LED podpięta jako status */
|
/* LED podpięta jako status */
|
||||||
@@ -94,7 +94,7 @@ Switch sD1MINI01_bieg3 "Okap bieg 3 [%s]" <fan> { mqtt=">[motherqtt:/d1mini01/gp
|
|||||||
Switch sD1MINI01_swiatlo "Okap światło [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/gpio/4:command:ON:1],>[motherqtt:/d1mini01/gpio/4:command:OFF:0]" }
|
Switch sD1MINI01_swiatlo "Okap światło [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/gpio/4:command:ON:1],>[motherqtt:/d1mini01/gpio/4:command:OFF:0]" }
|
||||||
Number dD1MINI01_swiatlo "Okap światło jasność [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/pwm/4:command:*:default]" }
|
Number dD1MINI01_swiatlo "Okap światło jasność [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/pwm/4:command:*:default]" }
|
||||||
|
|
||||||
Switch sD1MINI01_lampki_sufitowe "Lampki sufitowe [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/gpio/5:command:ON:0],>[motherqtt:/d1mini01/gpio/5:command:OFF:1]" } /* reversed here */
|
/* Switch sD1MINI01_lampki_sufitowe "Lampki sufitowe [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/gpio/5:command:ON:0],>[motherqtt:/d1mini01/gpio/5:command:OFF:1]" } */ /* reversed here */
|
||||||
/*Number dD1MINI01_swiatlo "Okap światło jasność [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/pwm/5:command:*:default]" } */
|
/*Number dD1MINI01_swiatlo "Okap światło jasność [%s]" <whites> { mqtt=">[motherqtt:/d1mini01/pwm/5:command:*:default]" } */
|
||||||
/* command motherqtt:/d1mini01/cmd , .sendCommand("pwm,2,128,500") */
|
/* command motherqtt:/d1mini01/cmd , .sendCommand("pwm,2,128,500") */
|
||||||
|
|
||||||
|
|||||||
@@ -31,10 +31,11 @@ when
|
|||||||
then
|
then
|
||||||
/* HOLIDAY */
|
/* HOLIDAY */
|
||||||
|
|
||||||
sD1MINI01_lampki_sufitowe.sendCommand(ON)
|
sSONOFF05.sendCommand(ON)
|
||||||
|
|
||||||
/* balkon */
|
/* balkon */
|
||||||
sSHELLY01.sendCommand(ON)
|
sSHELLY01.sendCommand(ON)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
/* HOLIDAY */
|
/* HOLIDAY */
|
||||||
@@ -108,14 +109,21 @@ rule "Zgaś stółlampkę, sufitowe i nablatowe wieczorem"
|
|||||||
when
|
when
|
||||||
Time cron "0 15 22 * * ?"
|
Time cron "0 15 22 * * ?"
|
||||||
then
|
then
|
||||||
|
/* lampka nad stołem */
|
||||||
sSONOFF02.sendCommand(OFF)
|
sSONOFF02.sendCommand(OFF)
|
||||||
sSONOFF02_expected.postUpdate(OFF)
|
sSONOFF02_expected.postUpdate(OFF)
|
||||||
dSONOFF02LED.sendCommand(1023)
|
dSONOFF02LED.sendCommand(1023)
|
||||||
|
|
||||||
sD1MINI01_lampki_sufitowe.sendCommand(OFF)
|
/* sufitowe gasimy tylko jak nikogo nie ma w domu */
|
||||||
|
if (sHolidayVacancy.state == ON) {
|
||||||
|
sSONOFF05.sendCommand(OFF)
|
||||||
|
}
|
||||||
|
|
||||||
sD1MINI02MOS.sendCommand(OFF)
|
sD1MINI02MOS.sendCommand(OFF)
|
||||||
|
|
||||||
|
/* kanapowe */
|
||||||
|
sSONOFF01.sendCommand(OFF)
|
||||||
|
|
||||||
/* balkon */
|
/* balkon */
|
||||||
sSHELLY01.sendCommand(OFF)
|
sSHELLY01.sendCommand(OFF)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ sitemap pbrk label="Domek"
|
|||||||
Switch item=sOWFS01
|
Switch item=sOWFS01
|
||||||
Switch item=sOWFS02
|
Switch item=sOWFS02
|
||||||
Switch item=sSONOFF02
|
Switch item=sSONOFF02
|
||||||
Switch item=sD1MINI01_lampki_sufitowe
|
Switch item=sSONOFF05
|
||||||
Switch item=sSONOFF01
|
Switch item=sSONOFF01
|
||||||
Switch item=sSONOFF06
|
Switch item=sSONOFF06
|
||||||
Switch item=sSHELLY01
|
Switch item=sSHELLY01
|
||||||
|
|||||||
Reference in New Issue
Block a user