From c6ab2c23079d230b8ef142c49ab16be5c9fa1d98 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Sun, 22 May 2022 16:09:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(wc):=20zast=C4=85pienie=20sonoff07=20dzia?= =?UTF-8?q?=C5=82aj=C4=85cym=20sonoff01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.binfix(wc): zastąpienie sonoff07 działającym sonoff01 07 ma problemy z połączeniam z wifi, nawet po sflashowaniu firmwarem ESP_Easy_mega_20220427_normal_ESP8266_1M.bin --- items/wifi.items | 22 ++++++++++------------ rules/salon.lampka-stolowa.rules | 7 ------- rules/wc.rules | 4 ++-- sitemaps/default.sitemap | 2 +- sitemaps/tech.sitemap | 3 +-- 5 files changed, 14 insertions(+), 24 deletions(-) diff --git a/items/wifi.items b/items/wifi.items index 93f63b4..4cc0e8e 100644 --- a/items/wifi.items +++ b/items/wifi.items @@ -11,13 +11,13 @@ pulses, pwms, etc : https://www.letscontrolit.com/wiki/index.php/GPIO spis treści -sonoff01 +sonoff01 - wiatrak wc sonoff02 - lampka stół sonoff03 - łazienka wiatrak sonoff04 - sonoff05 - lampki sufitowe sonoff06 - przedpokój touch przy drzwiach -sonoff07 - wc wiatrak +sonoff07 - sonoff08 - dual sypialnia sonoff09 - dual kanapowe d1mini01 - okap @@ -32,11 +32,9 @@ shelly01 - oświetlenie balkonu /* moc sygnalu */ Group wifi -Switch sSONOFF01 "Lampki kanapowe" { mqtt=">[motherqtt:/sonoff01/gpio/12:command:ON:1],>[motherqtt:/sonoff01/gpio/12:command:OFF:0]" } -Number dSONOFF01LED "Lampki kanapowe LED [%s]" { mqtt=">[motherqtt:/sonoff01/pwm/13:command:*:default]" } -Number wSONOFF01 "Wifi s01 kanapa [%d dB]" (wifi) { mqtt="<[motherqtt:/sonoff01/wifi/:state:default]" } -Switch rSONOFF01 "Conn s01 kanapa [%s]" { mqtt="<[motherqtt:/sonoff01/status:state:MAP(espeasy_lwt.map)]" } - +Switch sSONOFF01 "Wiatrak WC" { mqtt=">[motherqtt:/sonoff01/gpio/12:command:ON:1],>[motherqtt:/sonoff01/gpio/12:command:OFF:0]" } +Number wSONOFF01 "Wifi s01 wiatrak wc [%d dB]" (wifi) { mqtt="<[motherqtt:/sonoff01/wifi/:state:default]" } +Switch rSONOFF01 "Conn s01 wiatrak wc [%s]" { mqtt="<[motherqtt:/sonoff01/status:state:MAP(espeasy_lwt.map)]" } Switch sSONOFF02 "Lampka nad stołem" { mqtt=">[motherqtt:/sonoff02/gpio/12:command:ON:1],>[motherqtt:/sonoff02/gpio/12:command:OFF:0]" } Switch sSONOFF02_expected "Lampka nad stołem spodziewana" @@ -68,11 +66,11 @@ Number wSONOFF06 "Wifi s06 przedpokój wejście [%d dB]" (wifi) { mqtt="< Switch rSONOFF06 "Conn s06 przedpokój wejście [%s]" { mqtt="<[motherqtt:/sonoff06/lwt:state:MAP(espeasy_lwt.map)]" } /* do czasu wymiany firmware */ -/* Switch sSONOFF07 "Wiatrak WC" { mqtt=">[motherqtt:/sonoff07/gpio/12:command:ON:1],>[motherqtt:/sonoff07/gpio/12:command:OFF:0]" }*/ -Switch sSONOFF07 "Wiatrak WC" { http=">[ON:GET:http://sonoff07.pipebreaker.pl/?cmd=GPIO,12,1] >[OFF:GET:http://sonoff07.pipebreaker.pl/?cmd=GPIO,12,0]" } -/*Number dSONOFF07LED "Wiatrak LED [%s]" { mqtt=">[motherqtt:/sonoff07/pwm/13:command:*:default]" } */ -Number wSONOFF07 "Wifi s07 wiatrak wc [%d dB]" (wifi) { mqtt="<[motherqtt:/sonoff07/sysinfo/wifi:state:default]" } -Switch rSONOFF07 "Conn s07 wiatrak wc [%s]" { mqtt="<[motherqtt:/sonoff07/lwt:state:MAP(espeasy_lwt.map)]" } +/* Switch sSONOFF07 "unused" { mqtt=">[motherqtt:/sonoff07/gpio/12:command:ON:1],>[motherqtt:/sonoff07/gpio/12:command:OFF:0]" }*/ +Switch sSONOFF07 "unused" { http=">[ON:GET:http://sonoff07.pipebreaker.pl/?cmd=GPIO,12,1] >[OFF:GET:http://sonoff07.pipebreaker.pl/?cmd=GPIO,12,0]" } +/*Number dSONOFF07LED "unused [%s]" { mqtt=">[motherqtt:/sonoff07/pwm/13:command:*:default]" } */ +Number wSONOFF07 "Wifi s07 unused [%d dB]" (wifi) { mqtt="<[motherqtt:/sonoff07/sysinfo/wifi:state:default]" } +Switch rSONOFF07 "Conn s07 unused [%s]" { mqtt="<[motherqtt:/sonoff07/lwt:state:MAP(espeasy_lwt.map)]" } /* dual przycisk zewnetrzny gpio10 diff --git a/rules/salon.lampka-stolowa.rules b/rules/salon.lampka-stolowa.rules index d3cc794..63d65fe 100644 --- a/rules/salon.lampka-stolowa.rules +++ b/rules/salon.lampka-stolowa.rules @@ -86,24 +86,18 @@ then return; } - dSONOFF01LED.sendCommand(0) dSONOFF02LED.sendCommand(0) Thread::sleep(500) - dSONOFF01LED.sendCommand(1023) dSONOFF02LED.sendCommand(1023) Thread::sleep(500) - dSONOFF01LED.sendCommand(0) dSONOFF02LED.sendCommand(0) Thread::sleep(500) - dSONOFF01LED.sendCommand(1023) dSONOFF02LED.sendCommand(1023) Thread::sleep(500) - dSONOFF01LED.sendCommand(0) dSONOFF02LED.sendCommand(0) Thread::sleep(500) - dSONOFF01LED.sendCommand(1023) dSONOFF02LED.sendCommand(1023) Thread::sleep(500) @@ -122,7 +116,6 @@ rule "Przedzgaś stółlampkę wieczorem" when Time cron "0 12 22 * * ?" then - dSONOFF01LED.sendCommand(0) dSONOFF02LED.sendCommand(0) end diff --git a/rules/wc.rules b/rules/wc.rules index 155cf13..3ad9f62 100644 --- a/rules/wc.rules +++ b/rules/wc.rules @@ -35,7 +35,7 @@ then return; } - sSONOFF07.sendCommand(OFF) + sSONOFF01.sendCommand(OFF) end rule "Włączaj wiatrak rano " @@ -48,7 +48,7 @@ then return; } - sSONOFF07.sendCommand(ON) + sSONOFF01.sendCommand(ON) end diff --git a/sitemaps/default.sitemap b/sitemaps/default.sitemap index a17da12..968ceb2 100644 --- a/sitemaps/default.sitemap +++ b/sitemaps/default.sitemap @@ -51,7 +51,7 @@ sitemap pbrk label="Domek" Text item=h_lazienka Switch item=sSONOFF03 Switch item=sD1MINI04_refresh - Switch item=sSONOFF07 + Switch item=sSONOFF01 } /* okap usunięty po 237e6cf41d5271fd88693f551381228958c767b8 */ diff --git a/sitemaps/tech.sitemap b/sitemaps/tech.sitemap index 206abe0..79806e1 100644 --- a/sitemaps/tech.sitemap +++ b/sitemaps/tech.sitemap @@ -9,7 +9,7 @@ sitemap pbrk label="Szczegóły techniczne" Group label="Łączność" { Frame label="Połączenie (LWT)" { -/* Switch item=rSONOFF01 */ + Switch item=rSONOFF01 Switch item=rSONOFF02 Switch item=rSONOFF03 Switch item=rSONOFF05 @@ -82,7 +82,6 @@ sitemap pbrk label="Szczegóły techniczne" Switch item=sWC_occupied Text item=wD1MINI04 Switch item=rD1MINI04 - Switch item=rSONOFF07 } Frame label="D1MINI06 - przedpokój przy salonie" {