Gentleman,
4h later and after reading this thread a gazilion times, I solved the problem. For the ones struggling with this topic, do yourself a favor, go on your device page and check the Full Topic (%prefix%/%topic%/) and check what value you have there. All of the thread examples are %prefix%/%topic%/ but my devices are different, Don’t know why.
Mines are configured for Full Topic (%topic%/%prefix%/) instead of Full Topic (%prefix%/%topic%/). I tried to change it but always goes to the same one.
== Several Hours later ==
Now, the fully awaken me will correct the sleepy and angry me.
After checking the tasmota commands page, if you look at the setOption19, it says that it will change the full topic. So, if you have setOption19 active, remember that the examples above need to be corrected.
One will post the final files for your delight
== bridge.things ==
Bridge mqtt:broker:mosquitto "MQTT Broker Bridge" [ host="192.168.1.200", port=1883, secure=false, username="openhabian", password="supersecretpass", clientID="openHAB2" ]
{
//SALA
Thing topic tomadasala "Tomada da Sala" @ "Sala" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-tomada-sala/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-tomada-sala/stat/POWER", commandTopic="sonoff-tomada-sala/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-tomada-sala/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-tomada-sala/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-tomada-sala/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-tomada-sala/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-tomada-sala/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-tomada-sala/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic sonoffrf2 "RF Bridge 2" @ "Sala" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-rf-bridge2/tele/LWT" ]
Type string : recieveddata "Received Data" [ stateTopic="sonoff-rf-bridge2/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.Data"]
Type string : recievedsync "Received Sync" [ stateTopic="sonoff-rf-bridge2/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.Sync"]
Type string : recievedlow "Received Low" [ stateTopic="sonoff-rf-bridge2/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.Low"]
Type string : recievedhigh "Received High" [ stateTopic="sonoff-rf-bridge2/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.High"]
Type string : recievedrfkey "Received RfKey" [ stateTopic="sonoff-rf-bridge2/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.RfKey"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-rf-bridge2/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic sonoffrf "RF Bridge" @ "Entrada" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-rf-bridge/tele/LWT" ]
Type string : recieveddata "Received Data" [ stateTopic="sonoff-rf-bridge/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.Data"]
Type string : recievedsync "Received Sync" [ stateTopic="sonoff-rf-bridge/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.Sync"]
Type string : recievedlow "Received Low" [ stateTopic="sonoff-rf-bridge/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.Low"]
Type string : recievedhigh "Received High" [ stateTopic="sonoff-rf-bridge/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.High"]
Type string : recievedrfkey "Received RfKey" [ stateTopic="sonoff-rf-bridge/tele/RESULT", transformationPattern="JSONPATH:$.RfReceived.RfKey"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-rf-bridge/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
//ESCRITÓRIO
Thing topic maquinasecar "Máquina Secar" @ "Escritório" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-maquina-secar/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-maquina-secar/stat/POWER", commandTopic="sonoff-maquina-secar/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-maquina-secar/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-maquina-secar/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-maquina-secar/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-maquina-secar/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-maquina-secar/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-maquina-secar/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic caldeira "Caldeira" @ "Escritório" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-caldeira/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-caldeira/stat/POWER", commandTopic="sonoff-caldeira/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-caldeira/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-caldeira/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-caldeira/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-caldeira/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-caldeira/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-caldeira/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic pcpais "PC Pais" @ "Escritório" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-pc-pais/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-pc-pais/stat/POWER", commandTopic="sonoff-pc-pais/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-pc-pais/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-pc-pais/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-pc-pais/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-pc-pais/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-pc-pais/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-pc-pais/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic pcfilhos "PC Filhos" @ "Escritório" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-pc-filhos/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-pc-filhos/stat/POWER", commandTopic="sonoff-pc-filhos/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-pc-filhos/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-pc-filhos/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-pc-filhos/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-pc-filhos/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-pc-filhos/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-pc-filhos/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic switchrouter "Router" @ "Escritório" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-switch-escritorio/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-switch-escritorio/stat/POWER", commandTopic="sonoff-switch-escritorio/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-switch-escritorio/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-switch-escritorio/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-switch-escritorio/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-switch-escritorio/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-switch-escritorio/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-switch-escritorio/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic impressora "Impressora" @ "Escritório" {
Channels:
Type switch : power "Power" [ stateTopic="sonoff-impressora/stat/POWER", commandTopic="sonoff-impressora/cmnd/POWER" ]
}
Thing topic servidor "Servidor" @ "Escritório" {
Channels:
Type switch : power "Power" [ stateTopic="sonoff-servidor/stat/POWER", commandTopic="sonoff-servidor/cmnd/POWER" ]
}
Thing topic luzpresecamaria "Luz Presença" @ "Quarto Maria" {
Channels:
Type switch : power "Power" [ stateTopic="sonoff-luz-presenca-quarto-maria/stat/POWER", commandTopic="sonoff-luz-presenca-quarto-maria/cmnd/POWER" ]
}
//COZINHA
Thing topic cafeteira "Cafeteira" @ "Cozinha" {
Channels:
Type switch : power "Power" [ stateTopic="sonoff-cafeteira/stat/POWER", commandTopic="sonoff-cafeteira/cmnd/POWER" ]
}
Thing topic placainducao "Placa de Indução" @ "Cozinha" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-placa-inducao/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-placa-inducao/stat/POWER", commandTopic="sonoff-placa-inducao/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-placa-inducao/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-placa-inducao/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-placa-inducao/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-placa-inducao/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-placa-inducao/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-placa-inducao/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic frigorifico "Frigorifico" @ "Cozinha" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-frigorifico/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-frigorifico/stat/POWER", commandTopic="sonoff-frigorifico/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-frigorifico/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-frigorifico/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-frigorifico/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-frigorifico/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-frigorifico/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-frigorifico/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic exaustor "Exaustor" @ "Cozinha" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-exaustor/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-exaustor/stat/POWER", commandTopic="sonoff-exaustor/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-exaustor/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-exaustor/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-exaustor/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-exaustor/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-exaustor/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-exaustor/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic maquinaloica "Máquina da Loiça" @ "Cozinha" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-maquina-loica/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-maquina-loica/stat/POWER", commandTopic="sonoff-maquina-loica/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-maquina-loica/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-maquina-loica/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-maquina-loica/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-maquina-loica/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-maquina-loica/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-maquina-loica/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
//QUARTO
Thing topic carregadorpai "Carregador Pai" @ "Quarto" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-carregador-pai/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-carregador-pai/stat/POWER", commandTopic="sonoff-carregador-pai/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-carregador-pai/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-carregador-pai/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-carregador-pai/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-carregador-pai/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-carregador-pai/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-carregador-pai/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
Thing topic tvquarto "TV" @ "Quarto" {
Channels:
Type string : reachable "Reachable" [ stateTopic="sonoff-tv-quarto/tele/LWT" ]
Type switch : power "Power" [ stateTopic="sonoff-tv-quarto/stat/POWER", commandTopic="sonoff-tv-quarto/cmnd/POWER"]
Type number : powerload "Power load" [ stateTopic="sonoff-tv-quarto/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : voltage "Line voltage" [ stateTopic="sonoff-tv-quarto/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Line current" [ stateTopic="sonoff-tv-quarto/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Type number : total "Total energy today" [ stateTopic="sonoff-tv-quarto/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : totalyest "Total energy yesterday" [ stateTopic="sonoff-tv-quarto/tele/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : rssi "WiFi Signal Strength" [ stateTopic="sonoff-tv-quarto/tele/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
}
}
== stuff.items ==
// Main group
Group gHome
//Groups - Location
Group gQuarto4 (gHome)
Group gSala (gHome)
Group gCozinha (gHome)
Group gChartTVSamsung (gHome)
Group gChartTVLG (gHome)
Group gChartCaldeira (gHome)
Group gChartFrigorifico (gHome)
Group gMovimento (gHome)
Group:Number:SUM gPowerSala "Sala [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gPowerQuarto4 "Quarto Exterior [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gPowerEscritorio "Escritório [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gPowerCaldeira "Caldeira [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gPowerCozinha "Cozinha [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gChartMaquinaLoica "Máquina da Loiça [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gChartPlacaInducao "Placa de Indução [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gChartMaquinaSecar "Máquina Secar Congeladora [%.3f kWh]" <energy> (gHome)
Group:Number:SUM gPowerAll "Energia [%.2f kWh]" <energy> (gHome)
Group:Number:SUM gPowerAllCorrente "Amps [%.2f A]" <energy> (gHome)
Group:Switch:OR(ON,OFF) gTomadas "Desligar Tomadas" (gHome)
Switch TV_Quarto_Desabilitar_Regras "Desabilitar Regras" <switch>
Switch Tomada_Sala_Desabilitar_Regras "Desabilitar Regras" <switch>
Switch Tomada_Sala_Ferias "Modo Férias" <switch>
Switch Casa_com_gente "Gente em casa" <switch>
Number TV_Quarto_energia "Energia [%.2f kWh]" (gQuarto4, gPowerQuarto4,gPowerAll,gChartTVLG) {channel="mqtt:topic:mosquitto:tvquarto:powerload"}
Number TV_Quarto_voltagem "Voltagem [%.2f V]" (gQuarto4) {channel="mqtt:topic:mosquitto:tvquarto:voltage"}
Number TV_Quarto_corrente "Corrente [%.2f A]" (gQuarto4, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:tvquarto:current"}
Number TV_Quarto_energia_ontem "Energia Consumida Ontem [%.2f W]" (gQuarto4) {channel="mqtt:topic:mosquitto:tvquarto:totalyest"}
Number TV_Quarto_consumo "Energia Consumida Hoje [%.2f W]" (gQuarto4) {channel="mqtt:topic:mosquitto:tvquarto:total"}
Switch TV_Quarto "Tv Quarto" (gQuarto4) {channel="mqtt:topic:mosquitto:tvquarto:power"}
Number Carregador_Pai_energia "Energia [%.2f kWh]" (gQuarto4, gPowerQuarto4,gCarregadorPai, gPowerAll) {channel="mqtt:topic:mosquitto:carregadorpai:powerload"}
Number Carregador_Pai_voltagem "Voltagem [%.2f V]" (gQuarto4) {channel="mqtt:topic:mosquitto:carregadorpai:voltage"}
Number Carregador_Pai_corrente "Corrente [%.2f A]" (gQuarto4, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:carregadorpai:current"}
Number Carregador_Pai_energia_ontem "Energia Consumida Ontem [%.2f W]" (gQuarto4) {channel="mqtt:topic:mosquitto:carregadorpai:totalyest"}
Number Carregador_Pai_energia_hoje "Energia Consumida Hoje [%.2f W]" (gQuarto4) {channel="mqtt:topic:mosquitto:carregadorpai:total"}
Switch Carregador_Pai "Carregador Pai" (gQuarto4) {channel="mqtt:topic:mosquitto:carregadorpai:power"}
Number Caldeira_energia "Energia [%.2f kWh]" (gEscritorio, gPowerCaldeira, gPowerEscritorio, gPowerAll, gChartCaldeira) {channel="mqtt:topic:mosquitto:caldeira:powerload"}
Number Caldeira_voltagem "Voltagem [%.2f V]" (gEscritorio) {channel="mqtt:topic:mosquitto:caldeira:voltage"}
Number Caldeira_corrente "Corrente [%.2f A]" (gEscritorio, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:caldeira:current"}
Number Caldeira_energia_ontem "Energia Consumida Ontem [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:caldeira:totalyest"}
Number Caldeira_energia_hoje "Energia Consumida Hoje [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:caldeira:total"}
Switch Caldeira "Caldeira" (gEscritorio) {channel="mqtt:topic:mosquitto:caldeira:power"}
Number Frigorifico_energia "Energia [%.2f kWh]" (gCozinha, gPowerFrigorifico, gPowerCozinha, gPowerAll, gChartFrigorifico) {channel="mqtt:topic:mosquitto:frigorifico:powerload"}
Number Frigorifico_voltagem "Voltagem [%.2f V]" (gCozinha) {channel="mqtt:topic:mosquitto:frigorifico:voltage"}
Number Frigorifico_corrente "Corrente [%.2f A]" (gCozinha, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:frigorifico:current"}
Number Frigorifico_energia_ontem "Energia Consumida Ontem [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:frigorifico:totalyest"}
Number Frigorifico_energia_hoje "Energia Consumida Hoje [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:frigorifico:total"}
Switch Frigorifico "Frigorífico" (gCozinha) {channel="mqtt:topic:mosquitto:frigorifico:power"}
Number Maquina_Loica_energia "Energia [%.2f kWh]" (gCozinha, gPowerMaquinaLoica, gPowerCozinha, gPowerAll, gChartMaquinaLoica) {channel="mqtt:topic:mosquitto:maquinaloica:powerload"}
Number Maquina_Loica_voltagem "Voltagem [%.2f V]" (gCozinha) {channel="mqtt:topic:mosquitto:maquinaloica:voltage"}
Number Maquina_Loica_corrente "Corrente [%.2f A]" (gCozinha, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:maquinaloica:current"}
Number Maquina_Loica_energia_ontem "Energia Consumida Ontem [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:maquinaloica:totalyest"}
Number Maquina_Loica_energia_hoje "Energia Consumida Hoje [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:maquinaloica:total"}
Switch Maquina_Loica "Máquina da Loiça" (gCozinha) {channel="mqtt:topic:mosquitto:maquinaloica:power"}
Number Tomada_Sala_energia "Energia [%.2f kWh]" (gSala, gPowerSala, gPowerAll) {channel="mqtt:topic:mosquitto:tomadasala:powerload"}
Number Tomada_Sala_voltagem "Voltagem [%.2f V]" (gSala) {channel="mqtt:topic:mosquitto:tomadasala:voltage"}
Number Tomada_Sala_corrente "Corrente [%.2f A]" (gSala, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:tomadasala:current"}
Number Tomada_Sala_energia_ontem "Energia Consumida Ontem [%.2f W]" (gSala) {channel="mqtt:topic:mosquitto:tomadasala:totalyest"}
Number Tomada_Sala_energia_hoje "Energia Consumida Hoje [%.2f W]" (gSala) {channel="mqtt:topic:mosquitto:tomadasala:total"}
Switch Tomada_Sala "Tomada Sala" (gSala) {channel="mqtt:topic:mosquitto:tomadasala:power"}
Number Placa_Inducao_energia "Energia [%.2f kWh]" (gCozinha, gPowerPlacaInducao, gPowerCozinha, gPowerAll, gChartPlacaInducao) {channel="mqtt:topic:mosquitto:placainducao:powerload"}
Number Placa_Inducao_voltagem "Voltagem [%.2f V]" (gCozinha) {channel="mqtt:topic:mosquitto:placainducao:voltage"}
Number Placa_Inducao_corrente "Corrente [%.2f A]" (gCozinha, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:placainducao:current"}
Number Placa_Inducao_energia_ontem "Energia Consumida Ontem [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:placainducao:totalyest"}
Number Placa_Inducao_energia_hoje "Energia Consumida Hoje [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:placainducao:total"}
Switch Placa_Inducao "Placa de Indução" (gCozinha) {channel="mqtt:topic:mosquitto:placainducao:power"}
Number Exaustor_energia "Energia [%.2f kWh]" (gCozinha, gPowerExaustor, gPowerCozinha, gPowerAll, gChartExaustor) {channel="mqtt:topic:mosquitto:exaustor:powerload"}
Number Exaustor_voltagem "Voltagem [%.2f V]" (gCozinha) {channel="mqtt:topic:mosquitto:exaustor:voltage"}
Number Exaustor_corrente "Corrente [%.2f A]" (gCozinha, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:exaustor:current"}
Number Exaustor_energia_ontem "Energia Consumida Ontem [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:exaustor:totalyest"}
Number Exaustor_energia_hoje "Energia Consumida Hoje [%.2f W]" (gCozinha) {channel="mqtt:topic:mosquitto:exaustor:total"}
Switch Exaustor "Exaustor" (gCozinha) {channel="mqtt:topic:mosquitto:exaustor:power"}
Switch Forno "Forno" (gCozinha, gPowerCozinha, gChartForno) {channel="tplinksmarthome:hs110:F77D1E:switch"}
Switch Forno_led "LED" (gCozinha) {channel="tplinksmarthome:hs110:F77D1E:led"}
Number Forno_energia "Energia" (gCozinha, gPowerCozinha, gChartForno,gPowerAll) {channel="tplinksmarthome:hs110:F77D1E:power"}
Number Forno_consumo "Consumo" (gCozinha, gChartForno) {channel="tplinksmarthome:hs110:F77D1E:energyUsage"}
Number Forno_corrente "Corrente" (gCozinha, gChartForno) {channel="tplinksmarthome:hs110:F77D1E:current"}
Number Forno_voltagem "Voltagem" (gCozinha, gChartForno) {channel="tplinksmarthome:hs110:F77D1E:voltage"}
Number Maquina_Secar_energia "Energia [%.1f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:maquinasecar:powerload"}
Number Maquina_Secar_voltagem "Line voltage [%.1f V]" (gEscritorio) {channel="mqtt:topic:mosquitto:maquinasecar:voltage"}
Number Maquina_Secar_corrente "Line current [%.3f A]" (gEscritorio, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:maquinasecar:current"}
Number Maquina_Secar_energia_hoje "Total energy today [%.3f kWh]" (gEscritorio) {channel="mqtt:topic:mosquitto:maquinasecar:totalyest"}
Number Maquina_Secar_energia_ontem "Total energy yesterday [%.3f kWh]" (gEscritorio) {channel="mqtt:topic:mosquitto:maquinasecar:total"}
Switch Maquina_Secar "Máquina Secar" (gEscritorio, gPowerMaquina_Secar, gPowerEscritorio, gPowerAll, gChartMaquina_Secar) {channel="mqtt:topic:mosquitto:maquinasecar:power"}
Number Tomada_PC_Pai_energia "Energia [%.2f kWh]" (gEscritorio, gPowerTomadaPCPai, gPowerEscritorio, gPowerAll, gChartTomadaPCPai) {channel="mqtt:topic:mosquitto:pcpais:powerload"}
Number Tomada_PC_Pai_voltagem "Voltagem [%.0f V]" (gEscritorio) {channel="mqtt:topic:mosquitto:pcpais:voltage"}
Number Tomada_PC_Pai_corrente "Corrente [%.3f A]" (gEscritorio, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:pcpais:current"}
Number Tomada_PC_Pai_energia_ontem "Energia Consumida Ontem [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:pcpais:totalyest"}
Number Tomada_PC_Pai_energia_hoje "Energia Consumida Hoje [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:pcpais:total"}
Switch Tomada_PC_Pai "PC Pai" (gEscritorio) {channel="mqtt:topic:mosquitto:pcpais:power"}
Number Tomada_PC_Filho_energia "Energia [%.2f kWh]" (gEscritorio, gPowerTomadaPCFilho, gPowerEscritorio, gPowerAll, gChartTomadaPCFilho) {channel="mqtt:topic:mosquitto:pcfilhos:powerload"}
Number Tomada_PC_Filho_voltagem "Voltagem [%.2f V]" (gEscritorio) {channel="mqtt:topic:mosquitto:pcfilhos:voltage"}
Number Tomada_PC_Filho_corrente "Corrente [%.3f A]" (gEscritorio, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:pcfilhos:current"}
Number Tomada_PC_Filho_energia_ontem "Energia Consumida Ontem [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:pcfilhos:totalyest"}
Number Tomada_PC_Filho_energia_hoje "Energia Consumida Hoje [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:pcfilhos:total"}
Switch Tomada_PC_Filho "Tomada_PC_Filho" (gEscritorio) {channel="mqtt:topic:mosquitto:pcfilhos:power"}
Number Tomada_Switch_energia "Energia [%.2f kWh]" (gEscritorio, gPowerTomadaSwitch, gPowerEscritorio, gPowerAll, gChartTomadaSwitch) {channel="mqtt:topic:mosquitto:switchrouter:powerload"}
Number Tomada_Switch_voltagem "Voltagem [%.2f V]" (gEscritorio) {channel="mqtt:topic:mosquitto:switchrouter:voltage"}
Number Tomada_Switch_corrente "Corrente [%.3f A]" (gEscritorio, gPowerAllCorrente) {channel="mqtt:topic:mosquitto:switchrouter:current"}
Number Tomada_Switch_energia_ontem "Energia Consumida Ontem [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:switchrouter:totalyest"}
Number Tomada_Switch_energia_hoje "Energia Consumida Hoje [%.2f W]" (gEscritorio) {channel="mqtt:topic:mosquitto:switchrouter:total"}
Switch Tomada_Switch "Tomada_PC_Filho" (gEscritorio) {channel="mqtt:topic:mosquitto:switchrouter:power"}
//Sonoff S26
Switch Servidor "Servidor" (gEscritorio) {channel="mqtt:topic:mosquitto:servidor:power"}
//Sonoff S20
Switch Cafeteira_Cozinha "Cafeita Cozinha" (gCozinha) {channel="mqtt:topic:mosquitto:cafeteira:power"}
Switch Impressora "Impressora" (gEscritorio) {channel="mqtt:topic:mosquitto:impressora:power"}
Switch Luz_Presenca_Quarto_Maria "Luz Presença" (gQuartoMaria) {channel="mqtt:topic:mosquitto:luzpresecamaria:power"}
//RF Bridge
Group GF_Sonoff_RF "RF Bridge" <sonoff_rf> (Sonoff_RF)
String GF_Sonoff_RF_Reachable "Reachable: [%s]" <contactable> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:reachable"}
String GF_Sonoff_RF_Received_Data "Received Data: [%s]" <none> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:recieveddata"}
String GF_Sonoff_RF_Received_Sync "Received Sync: [%s]" <none> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:recievedsync"}
String GF_Sonoff_RF_Received_Low "Received Low: [%s]" <none> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:recievedlow"}
String GF_Sonoff_RF_Received_High "Received High: [%s]" <none> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:recievedhigh"}
String GF_Sonoff_RF_Received_RfKey "Received RfKey: [%s]" <none> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:recievedrfkey"}
Number GF_Sonoff_RF_RSSI "WiFi Signal Strength [%d %%]" <wifi> (GF_Sonoff_RF) {channel="mqtt:topic:mosquitto:sonoffrf:rssi"}
Group GF_Sonoff_RF2 "RF Bridge" <sonoff_rf> (Sonoff_RF2)
String GF_Sonoff_RF2_Reachable "Reachable: [%s]" <contactable> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:reachable"}
String GF_Sonoff_RF2_Received_Data "Received Data: [%s]" <none> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:recieveddata"}
String GF_Sonoff_RF2_Received_Sync "Received Sync: [%s]" <none> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:recievedsync"}
String GF_Sonoff_RF2_Received_Low "Received Low: [%s]" <none> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:recievedlow"}
String GF_Sonoff_RF2_Received_High "Received High: [%s]" <none> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:recievedhigh"}
String GF_Sonoff_RF2_Received_RfKey "Received RfKey: [%s]" <none> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:recievedrfkey"}
Number GF_Sonoff_RF2_RSSI "WiFi Signal Strength [%d %%]" <wifi> (GF_Sonoff_RF2) {channel="mqtt:topic:mosquitto:sonoffrf2:rssi"}
Switch PortaPrincipalDir "Porta Entrada Direita [MAP(portas.map):%s]"
Switch PortaPrincipalEsq "Porta Entrada Esquerda [MAP(portas.map):%s]"
Switch JanelaEscritorio "Janela Escritório [MAP(portas.map):%s]"
Switch JanelaQuartoExterior "Janela Quarto [MAP(portas.map):%s]"
Switch JanelaCozinha "Janela Cozinha [MAP(portas.map):%s]"
Switch JanelaGatos "Janela Gatos [MAP(portas.map):%s]"
Switch PortaFrigorifico "Porta Frigorifico [MAP(portas.map):%s]" (gMovimento)
Switch MovimentoSala "Movimento Sala [MAP(movimento.map):%s]" (gMovimento)
Switch MovimentoPatamarEntrada "Movimento Patamar Entrada [MAP(movimento.map):%s]" (gMovimento)
Group gTelefonesBT
Group gTelefonesWLAN
Switch Presenca
Switch ONEPLUS2_BT "Telemóvel BT Pedro" (gTelefonesBT) {exec="<[/scripts/bt.sh 2:60000:REGEX((.*?))]"}
Switch ONEPLUS1_BT "Telemóvel BT Sandra" (gTelefonesBT) {exec="<[/scripts/bt.sh 1:60000:REGEX((.*?))]"}
Switch ONEPLUS2_WLAN "Telemóvel WLAN Pedro" (gTelefonesWLAN) {exec="<[/scripts/ping.sh 192.168.1.68:60000:REGEX((.*?))]"}
Switch ONEPLUS1_WLAN "Telemóvel WLAN Sandra" (gTelefonesWLAN) {exec="<[/scripts/ping.sh 192.168.1.101:60000:REGEX((.*?))]"}
Switch ONEPLUS1 "Telemóvel Sandra"
Switch ONEPLUS2 "Telemóvel Pedro"
//Charts
Number Periodo_Dia "Periodo Dia"
String VoiceCommand