dodanie nowego kontrollera shelly02 (Shelly Plus1PMMini 6055F999FDAC)

This commit is contained in:
2023-11-17 20:07:01 +01:00
parent 0614838bbc
commit 5ed01b298a
4 changed files with 23 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
spis treści
sonoff01 - wiatrak wc
sonoff02 - lampka stół
sonoff02 -
sonoff03 - łazienka wiatrak
sonoff04 - podgrzewacz kota
sonoff05 - lampki sufitowe
@@ -27,6 +27,7 @@ d1mini04 - odświeżacz
d1mini05 - wskazówka interneu
d1mini06 - schodowy przy salonie
shelly01 - oświetlenie balkonu
shelly02 - lampka stół
*/
/* moc sygnalu */
@@ -173,4 +174,11 @@ Switch sSHELLY01 "Lampki balkonowe" <whites> { mqtt=">[motherqtt:/shelly01/gpio/
Number wSHELLY01 "Wifi sh01 balkon [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/shelly01/wifi/:state:default]" }
Switch rSHELLY01 "Conn sh01 balkon [%s]" { mqtt="<[motherqtt:/shelly01/lwt:state:MAP(espeasy_lwt.map)]" }
/* lampka stół */
/* /shelly02/command/switch:0 -m on */
/* 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 "Lampka stołowa" <whites> { mqtt=">[motherqtt:/shelly02/command/switch\\:0:command:ON:on],>[motherqtt:/shelly02/command/switch\\:0:command:OFF:off]" }

View File

@@ -9,7 +9,7 @@ sitemap pbrk label="Domek"
Switch item=sSONOFF04MASTER /* cat heater */
Switch item=sSONOFF09a /* kanapa Asia */
Switch item=sSONOFF09b /* kanapa Tomek */
Switch item=sSONOFF02 /* lampka nad stołem */
Switch item=sSHELLY02 /* lampka nad stołem */
Switch item=sSONOFF05 /* lampki sufitowe */
Switch item=sSHELLY01 /* balkon */
Switch item=sD1MINI02MOS /* blat w kuchni */
@@ -24,7 +24,6 @@ sitemap pbrk label="Domek"
Frame label="Media" {
Switch item=samsungtv
Switch item=sOWFS03 /* głośniki */
Switch item=Mpd_quodlibet_StartStop icon="audio" mappings=[OFF="Pause", ON="Play"]
/*Switch item=Mpd_quodlibet_StartStop label="Kontrola" icon="play" mappings=[ON="Play"] visibility=[Mpd_quodlibet_StartStop==OFF]
@@ -34,6 +33,8 @@ sitemap pbrk label="Domek"
Slider item=Mpd_quodlibet_VolumeControl visibility=[Mpd_quodlibet_StartStop==ON]
Text item=Mpd_ConcatInfo visibility=[Mpd_quodlibet_StartStop==ON]
Switch item=sOWFS03 /* głośniki */
}
/*

View File

@@ -18,6 +18,8 @@ sitemap pbrk label="Szczegóły techniczne"
Switch item=rSONOFF07
Switch item=rSONOFF08
Switch item=rSONOFF09
Switch item=rSHELLY01
Switch item=rSHELLY02
Switch item=rD1MINI01
Switch item=rD1MINI02
Switch item=rD1MINI03
@@ -100,5 +102,12 @@ sitemap pbrk label="Szczegóły techniczne"
Switch item=rD1MINI06
}
Frame label="SHELLY01 lampki balkonowe" {
Switch item=rSHELLY01
}
Frame label="SHELLY02 lampka stołowa" {
Switch item=rSHELLY02
}
}

2
transform/shelly_lwt.map Normal file
View File

@@ -0,0 +1,2 @@
true=ON
false=OFF