SHELLY02 w lampce stołowej, w zamian za SONOFF02 który zdechł

SHELLY nie ma osobnej kontrolki LED, więc wywalone.
This commit is contained in:
2023-11-18 16:24:08 +01:00
parent 5ed01b298a
commit 4af668cb9d
4 changed files with 20 additions and 39 deletions

View File

@@ -37,6 +37,7 @@ Switch sSONOFF01 "Wiatrak WC" <fan> { mqtt=">[motherqtt:/sonoff01/gpio/12:comman
Number wSONOFF01 "Wifi s01 wiatrak wc [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff01/wifi/:state:default]" }
Switch rSONOFF01 "Conn s01 wiatrak wc [%s]" { mqtt="<[motherqtt:/sonoff01/status:state:MAP(espeasy_lwt.map)]" }
/* zdechł */
Switch sSONOFF02 "Lampka nad stołem" <whites> { mqtt=">[motherqtt:/sonoff02/gpio/12:command:ON:1],>[motherqtt:/sonoff02/gpio/12:command:OFF:0]" }
Switch sSONOFF02_expected "Lampka nad stołem spodziewana"
Number dSONOFF02LED "Lampka stół LED [%s]" { mqtt=">[motherqtt:/sonoff02/pwm/13:command:*:default]" }
@@ -179,6 +180,8 @@ Switch rSHELLY01 "Conn sh01 balkon [%s]" { mqtt="<[motherqtt:/shelly01/lwt:state
/* lwt: https://shelly-api-docs.shelly.cloud/gen2/ComponentsAndServices/Mqtt#step-7-subscribe-for-messages-on-connecting-and-disconnecting-over-mqtt */
Switch rSHELLY02 "Conn sh02 stół [%s]" { mqtt="<[motherqtt:/shelly02/online:state:MAP(shelly_lwt.map)]" }
Switch sSHELLY02_expected "Lampka nad stołem spodziewana"
Switch sSHELLY02 "Lampka stołowa" <whites> { mqtt=">[motherqtt:/shelly02/command/switch\\:0:command:ON:on],>[motherqtt:/shelly02/command/switch\\:0:command:OFF:off]" }