2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
/* vim: set filetype=cpp
|
|
|
|
|
|
|
|
|
|
IN
|
|
|
|
|
Item myItem {mqtt="<direction>[<broker>:<topic>:<type>:<transformer>], <direction>[<broker>:<topic>:<type>:<transformation>], ..."}
|
|
|
|
|
Item myItem {mqtt="<direction>[<broker>:<topic>:<type>:<transformer>:<regex_filter>], <direction>[<broker>:<topic>:<type>:<transformation>], ..."}
|
|
|
|
|
|
|
|
|
|
OUT
|
|
|
|
|
Item itemName { mqtt="<direction>[<broker>:<topic>:<type>:<trigger>:<transformation>]" }
|
|
|
|
|
|
|
|
|
|
pulses, pwms, etc : https://www.letscontrolit.com/wiki/index.php/GPIO
|
|
|
|
|
|
|
|
|
|
spis treści
|
2022-05-22 16:09:24 +02:00
|
|
|
sonoff01 - wiatrak wc
|
2018-07-01 21:48:05 +02:00
|
|
|
sonoff02 - lampka stół
|
2018-12-09 18:52:55 +01:00
|
|
|
sonoff03 - łazienka wiatrak
|
|
|
|
|
sonoff04 -
|
2020-12-02 19:56:59 +01:00
|
|
|
sonoff05 - lampki sufitowe
|
2018-12-09 18:52:55 +01:00
|
|
|
sonoff06 - przedpokój touch przy drzwiach
|
2022-05-22 16:09:24 +02:00
|
|
|
sonoff07 -
|
2021-04-10 15:23:23 +02:00
|
|
|
sonoff08 - dual sypialnia
|
|
|
|
|
sonoff09 - dual kanapowe
|
2018-07-01 21:48:05 +02:00
|
|
|
d1mini01 - okap
|
|
|
|
|
d1mini02 - blat ledki
|
|
|
|
|
d1mini03 - prototyp / pilot na kanapie
|
|
|
|
|
d1mini04 - odświeżacz
|
|
|
|
|
d1mini05 - wskazówka interneu
|
|
|
|
|
d1mini06 - schodowy przy salonie
|
2019-11-21 19:02:01 +01:00
|
|
|
shelly01 - oświetlenie balkonu
|
2018-07-01 21:48:05 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* moc sygnalu */
|
|
|
|
|
Group wifi
|
|
|
|
|
|
2022-05-22 16:09:24 +02:00
|
|
|
Switch sSONOFF01 "Wiatrak WC" <fan> { mqtt=">[motherqtt:/sonoff01/gpio/12:command:ON:1],>[motherqtt:/sonoff01/gpio/12:command:OFF:0]" }
|
|
|
|
|
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)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
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]" }
|
|
|
|
|
Number wSONOFF02 "Wifi s02 stół [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff02/wifi/:state:default]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Switch rSONOFF02 "Conn s02 stół [%s]" { mqtt="<[motherqtt:/sonoff02/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
|
2018-12-09 18:52:55 +01:00
|
|
|
Switch sSONOFF03 "Wiatrak łazienka" <fan> { mqtt=">[motherqtt:/sonoff03/gpio/12:command:ON:1],>[motherqtt:/sonoff03/gpio/12:command:OFF:0]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
Number dSONOFF03LED "Wiatrak LED [%s]" { mqtt=">[motherqtt:/sonoff03/pwm/13:command:*:default]" }
|
|
|
|
|
Number h_lazienka "Wilgotność [%.1f %%]" <cistern> { mqtt="<[motherqtt:/sonoff03/dht22/humidity:state:default]" }
|
|
|
|
|
Number t_lazienka "Temperatura [%.1f °C]" <temperature> (temperatury) { mqtt="<[motherqtt:/sonoff03/dht22/temperature:state:default]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Number wSONOFF03 "Wifi s03 wiatrak łazienka [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff03/wifi/:state:default]" }
|
|
|
|
|
Switch rSONOFF03 "Conn s03 wiatrak łazienka [%s]" { mqtt="<[motherqtt:/sonoff03/status:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
|
2020-12-02 19:56:59 +01:00
|
|
|
Switch sSONOFF05 "Lampki sufitowe" <whites> { mqtt=">[motherqtt:/sonoff05/gpio/12:command:ON:1],>[motherqtt:/sonoff05/gpio/12:command:OFF:0]" }
|
|
|
|
|
Number wSONOFF05 "Wifi sufit s05 [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff05/sysinfo/wifi:state:default]" }
|
|
|
|
|
Switch rSONOFF05 "Conn sufit s05 [%s]" { mqtt="<[motherqtt:/sonoff05/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-12-09 18:54:04 +01:00
|
|
|
|
2018-07-01 21:48:05 +02:00
|
|
|
/* przedpokój - sonoff przy drzwiach wejściowych */
|
|
|
|
|
/* LED podpięta jako status */
|
|
|
|
|
Switch sSONOFF06 "Przedpokój" <whites> { mqtt=">[motherqtt:/sonoff06/gpio/12:command:ON:1],>[motherqtt:/sonoff06/gpio/12:command:OFF:0]" }
|
|
|
|
|
Number dSONOFF06LED "Przedpokój sonoff LED [%s]" { mqtt=">[motherqtt:/sonoff06/pwm/13:command:*:default]" }
|
|
|
|
|
Switch sSONOFF06LED "Przedpokój LED" <whites> { mqtt=">[motherqtt:/sonoff06/gpio/13:command:ON:1],>[motherqtt:/sonoff06/gpio/13:command:OFF:0]" }
|
2018-07-18 14:19:08 +02:00
|
|
|
Switch sSONOFF06LEDtouch "Przedpokój LED dotykowy" <whites> { mqtt=">[motherqtt:/sonoff06/gpio/4:command:ON:1],>[motherqtt:/sonoff06/gpio/4:command:OFF:0]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
Switch sSONOFF06KEY "Włącznik hall przy drzwiach wejściowych [%s]" { mqtt="<[motherqtt:/sonoff06/touch/wejscie:state:MAP(espeasy_onoff.map)]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Number wSONOFF06 "Wifi s06 przedpokój wejście [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff06/wifi/:state:default]" }
|
|
|
|
|
Switch rSONOFF06 "Conn s06 przedpokój wejście [%s]" { mqtt="<[motherqtt:/sonoff06/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
2020-11-26 07:10:58 +01:00
|
|
|
/* do czasu wymiany firmware */
|
2022-05-22 16:09:24 +02:00
|
|
|
/* Switch sSONOFF07 "unused" <fan> { mqtt=">[motherqtt:/sonoff07/gpio/12:command:ON:1],>[motherqtt:/sonoff07/gpio/12:command:OFF:0]" }*/
|
|
|
|
|
Switch sSONOFF07 "unused" <fan> { 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> (wifi) { mqtt="<[motherqtt:/sonoff07/sysinfo/wifi:state:default]" }
|
|
|
|
|
Switch rSONOFF07 "Conn s07 unused [%s]" { mqtt="<[motherqtt:/sonoff07/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-12-09 18:52:55 +01:00
|
|
|
|
2018-12-22 21:52:36 +01:00
|
|
|
/* dual
|
|
|
|
|
przycisk zewnetrzny gpio10
|
|
|
|
|
przycisk 0 gpio0
|
|
|
|
|
przycisk 1 gpio9
|
|
|
|
|
relay 1 gpio12
|
|
|
|
|
relay 2 gpio5
|
|
|
|
|
*/
|
|
|
|
|
Switch sSONOFF08a "Sypialnia cottonballs" <whites> { mqtt=">[motherqtt:/sonoff08/gpio/12:command:ON:1],>[motherqtt:/sonoff08/gpio/12:command:OFF:0]" }
|
2021-11-03 20:10:34 +01:00
|
|
|
Switch sSONOFF08b "Sypialnia gwiazdki" <whites> { mqtt=">[motherqtt:/sonoff08/gpio/5:command:ON:1],>[motherqtt:/sonoff08/gpio/5:command:OFF:0]" }
|
2018-12-22 21:52:36 +01:00
|
|
|
Switch sSONOFF08_ext "Sypialnia przycisk" { mqtt="<[motherqtt:/sonoff08/button/ext:state:MAP(espeasy_onoff.map)]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Number wSONOFF08 "Wifi s08 sypialnia [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff08/sysinfo/wifi:state:default]" }
|
|
|
|
|
Switch rSONOFF08 "Conn s08 sypialnia [%s]" { mqtt="<[motherqtt:/sonoff08/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
2021-04-10 15:23:23 +02:00
|
|
|
/* MQTT chwilowo ma problemy jakies */
|
2021-04-10 16:59:37 +02:00
|
|
|
Switch sSONOFF09a "Kanapa Asia" <whites> { mqtt=">[motherqtt:/sonoff09/gpio/12:command:ON:1],>[motherqtt:/sonoff09/gpio/12:command:OFF:0]" }
|
2021-04-10 15:23:23 +02:00
|
|
|
Switch sSONOFF09b "Kanapa Tomek" <whites> { mqtt=">[motherqtt:/sonoff09/gpio/5:command:ON:1],>[motherqtt:/sonoff09/gpio/5:command:OFF:0]" }
|
|
|
|
|
Switch sSONOFF09b_expected "Kanapa Tomek spodziewana"
|
|
|
|
|
Switch sSONOFF09_ext "Kanapa przycisk" { mqtt="<[motherqtt:/sonoff09/button/ext:state:MAP(espeasy_onoff.map)]" }
|
|
|
|
|
Number wSONOFF09 "Wifi s09 kanapa [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/sonoff09/sysinfo/wifi:state:default]" }
|
|
|
|
|
Switch rSONOFF09 "Conn s09 kanapa [%s]" { mqtt="<[motherqtt:/sonoff09/lwt:state:MAP(espeasy_lwt.map)]" }
|
|
|
|
|
|
|
|
|
|
|
2018-07-01 21:48:05 +02:00
|
|
|
/* d1mini w okapie */
|
2018-11-09 21:02:58 +01:00
|
|
|
Dimmer dOKAP_speed <fan>
|
2018-12-02 18:34:50 +01:00
|
|
|
Number vOKAP_speed <fan> /* wirtualny przelacznik na potrzeby HomeHabit */
|
2018-07-01 21:48:05 +02:00
|
|
|
Switch sD1MINI01_bieg1 "Okap bieg 1 [%s]" <fan> { mqtt=">[motherqtt:/d1mini01/gpio/12:command:ON:1],>[motherqtt:/d1mini01/gpio/12:command:OFF:0]" }
|
|
|
|
|
Switch sD1MINI01_bieg2 "Okap bieg 2 [%s]" <fan> { mqtt=">[motherqtt:/d1mini01/gpio/15:command:ON:1],>[motherqtt:/d1mini01/gpio/15:command:OFF:0]" }
|
|
|
|
|
Switch sD1MINI01_bieg3 "Okap bieg 3 [%s]" <fan> { mqtt=">[motherqtt:/d1mini01/gpio/16:command:ON:1],>[motherqtt:/d1mini01/gpio/16: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]" }
|
|
|
|
|
|
2020-12-02 19:56:59 +01:00
|
|
|
/* 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 */
|
2018-07-01 21:48:05 +02:00
|
|
|
/*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") */
|
|
|
|
|
|
|
|
|
|
Number wD1MINI01 "Wifi d1m01 okap [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/d1mini01/wifi/:state:default]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Switch rD1MINI01 "Conn d1m01 okap [%s]" { mqtt="<[motherqtt:/d1mini01/status:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* lampki LED nad blatem */
|
|
|
|
|
/* Switch sD1MINI02MOS "Lampki nad blatem [%s]" <whites> { mqtt=">[motherqtt:/d1mini02/gpio/5:command:ON:1],>[motherqtt:/d1mini02/gpio/5:command:OFF:0]" } */
|
|
|
|
|
/* włączanie - fade w 200ms, wyłączanie - fade w 600ms */
|
|
|
|
|
Switch sD1MINI02MOS "Lampki nad blatem [%s]" <whites> { mqtt=">[motherqtt:/d1mini02/cmd:command:ON:PWM,5,1023,200],>[motherqtt:/d1mini02/cmd:command:OFF:PWM,5,0,600]" }
|
|
|
|
|
Number dD1MINI02MOS "Lampki nad blatem śc [%s]" <whites> { mqtt=">[motherqtt:/d1mini02/pwm/5:command:*:1]" }
|
|
|
|
|
Switch sD1MINI02LEDS "Włącznik nad blatem [%s]" { mqtt="<[motherqtt:/d1mini02/switch/leds:state:MAP(espeasy_onoff.map)]" }
|
|
|
|
|
Number wD1MINI02 "Wifi d1m02 blat [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/d1mini02/wifi/:state:default]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Switch rD1MINI02 "Conn d1m02 blat [%s]" { mqtt="<[motherqtt:/d1mini02/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* prototyp */
|
|
|
|
|
Switch sD1MINI03_button_green "Podświetlany przycisk zielony [%s]" { mqtt="<[motherqtt:/d1mini03/button/green:state:MAP(espeasy_onoff.map)]" }
|
|
|
|
|
Switch sD1MINI03_button_yellow "Podświetlany przycisk żółty [%s]" { mqtt="<[motherqtt:/d1mini03/button/yellow:state:MAP(espeasy_onoff.map)]" }
|
|
|
|
|
Switch sD1MINI03_button_red "Podświetlany przycisk czerwony [%s]" { mqtt="<[motherqtt:/d1mini03/button/red:state:MAP(espeasy_onoff.map)]" }
|
|
|
|
|
/* wylaczony - lekkie podswietlenie (1000), wlaczony - full bright (pwm 0) */
|
|
|
|
|
Switch sD1MINI03_light_green "d1m03 light green [%s]" { mqtt=">[motherqtt:/d1mini03/pwm/14:command:ON:900],>[motherqtt:/d1mini03/pwm/14:command:OFF:1021]" }
|
|
|
|
|
Switch sD1MINI03_light_yellow "d1m03 light yellow [%s]" { mqtt=">[motherqtt:/d1mini03/pwm/13:command:ON:900],>[motherqtt:/d1mini03/pwm/13:command:OFF:1021]" }
|
|
|
|
|
Switch sD1MINI03_light_red "d1m03 light red [%s]" { mqtt=">[motherqtt:/d1mini03/pwm/5:command:ON:900],>[motherqtt:/d1mini03/pwm/5:command:OFF:1021]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Number wD1MINI03 "Wifi d1m03 prototyp kanapa [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/d1mini03/wifi/:state:default]" }
|
|
|
|
|
Switch rD1MINI03 "Conn d1m03 prototyp kanapa [%s]" { mqtt="<[motherqtt:/d1mini03/status:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* odświeżacz */
|
|
|
|
|
Switch sWC_occupied "WC zajęte" <present>
|
|
|
|
|
Number lWC_lux "WC jasność [%.1f lux]" { mqtt="<[motherqtt:/d1mini04/BH1750/lux:state:default]" }
|
|
|
|
|
Switch sD1MINI04_refresh "Odświeżenie WC" <wifi> {
|
|
|
|
|
mqtt=">[motherqtt:/d1mini04/gpio/14:command:ON:1],>[motherqtt:/d1mini04/gpio/14:command:OFF:0]",
|
|
|
|
|
expire="6s,command=OFF"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Number wD1MINI04 "Wifi d1m04 WC [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/d1mini04/wifi/:state:default]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Switch rD1MINI04 "Conn d1m04 WC [%s]" { mqtt="<[motherqtt:/d1mini04/lwt:state:MAP(espeasy_lwt.map)]" }
|
2018-07-01 21:48:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* przedpokój włącznik przy salonie */
|
|
|
|
|
|
|
|
|
|
/* diodka teraz jako status działa
|
|
|
|
|
Number dD1MINI06LED "Przedpokój d1mini LED [%s]" { mqtt=">[motherqtt:/sonoff06/pwm/13:command:*:default]" }
|
|
|
|
|
Switch sD1MINI06LED "Przedpokój LED" <whites> { mqtt=">[motherqtt:/d1mini06/gpio/13:command:ON:1],>[motherqtt:/sonoff06/gpio/13:command:OFF:0]" }
|
|
|
|
|
*/
|
|
|
|
|
Switch sD1MINI06KEY "Włącznik hall przy salonie [%s]" { mqtt="<[motherqtt:/d1mini06/salon/switch:state:MAP(espeasy_onoff.map)]" } /* GPIO14 */
|
2020-10-06 20:29:02 +02:00
|
|
|
Number wD1MINI06 "Wifi d1m06 przedpokój salon [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/d1mini06/wifi/:state:default]" }
|
|
|
|
|
Switch rD1MINI06 "Conn d1m06 przedpokój salon [%s]" { mqtt="<[motherqtt:/d1mini06/lwt:state:MAP(espeasy_lwt.map)]" }
|
2019-11-21 19:02:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* lampki balkonowe */
|
|
|
|
|
Switch sSHELLY01 "Lampki balkonowe" <whites> { mqtt=">[motherqtt:/shelly01/gpio/4:command:ON:1],>[motherqtt:/shelly01/gpio/4:command:OFF:0]" }
|
|
|
|
|
/*Switch sSHELLY01KEY "Włącznik hall przy drzwiach wejściowych [%s]" { mqtt="<[motherqtt:/shelly01/gpio/5:state:MAP(espeasy_onoff.map)]" }*/
|
|
|
|
|
Number wSHELLY01 "Wifi sh01 balkon [%d dB]" <wifi> (wifi) { mqtt="<[motherqtt:/shelly01/wifi/:state:default]" }
|
2020-10-06 20:29:02 +02:00
|
|
|
Switch rSHELLY01 "Conn sh01 balkon [%s]" { mqtt="<[motherqtt:/shelly01/lwt:state:MAP(espeasy_lwt.map)]" }
|
2019-11-21 19:02:01 +01:00
|
|
|
|
|
|
|
|
|