change mqtt to new version

This commit is contained in:
2022-09-14 01:57:00 +01:00
parent 848c33d3f7
commit 07373045fc
10 changed files with 547 additions and 688 deletions

View File

@@ -1,164 +1,75 @@
- id: '1589065904158' - id: "1589065904158"
alias: Aquecimento Agua alias: Agua - Aquecimento
description: '' description: ""
trigger: trigger:
- at: 04:00 - at: 06:00:00
platform: time platform: time
- at: 08:00:00 - at: 08:00:00
platform: time platform: time
- at: '18:00:00' - at: "16:00:00"
platform: time platform: time
- at: '22:00' - at: "20:00:00"
platform: time platform: time
action: action:
- data: {} - data: {}
entity_id: switch.aquecimento_agua entity_id: switch.aquecimento_agua
service: switch.toggle service: switch.toggle
mode: single mode: single
- id: '1589067784246' - id: "1578994958446"
alias: Aquario
description: ''
trigger:
- at: '15:00:00'
platform: time
condition: []
action:
- data: {}
entity_id: light.luz_aquario
service: light.turn_on
- delay:
hours: 4
minutes: 0
seconds: 0
milliseconds: 0
- data: {}
entity_id: light.luz_aquario
service: light.turn_off
mode: single
- id: '1578994958446'
alias: Garagem - Warn gate Open alias: Garagem - Warn gate Open
description: '' description: ""
trigger: trigger:
- entity_id: binary_sensor.portao_garagem_input - entity_id: binary_sensor.portao_garagem_input
from: 'on' from: "on"
platform: state platform: state
to: 'off' to: "off"
condition: [] condition: []
action: action:
- data: - data:
message: O portao da garagem foi aberto message: O portao da garagem foi aberto
title: '*Portao da garagem*' title: "*Portao da garagem*"
service: notify.buttler service: notify.buttler
- id: '1579542436595' - id: "1579542436595"
alias: Garagem - warn gate closed alias: Garagem - warn gate closed
description: '' description: ""
trigger: trigger:
- entity_id: binary_sensor.portao_garagem_input - entity_id: binary_sensor.portao_garagem_input
from: 'off' from: "off"
platform: state platform: state
to: 'on' to: "on"
condition: [] condition: []
action: action:
- data: - data:
message: O portao da garagem foi fechado message: O portao da garagem foi fechado
title: '*Portao da garagem*' title: "*Portao da garagem*"
service: notify.buttler service: notify.buttler
- id: '1583841493592' - id: "1583841493592"
alias: Notify when hacs needs update alias: System - Notify when hacs needs update
description: '' description: ""
trigger: trigger:
- entity_id: sensor.hacs - entity_id: sensor.hacs
from: '0' from: "0"
platform: state platform: state
to: '1' to: "1"
action: action:
- data: - data:
message: System HACS needs updating message: System HACS needs updating
title: '*HACS*' title: "*HACS*"
service: notify.buttler service: notify.buttler
- id: '1590057590266' - id: "1598985491596"
alias: Sistema Rega Valvula 1 - 22h
description: ''
trigger:
- at: '23:30:00'
platform: time
condition: []
action:
- service: notify.whatsapp
data:
message: Sistema de rega a iniciar
title: inicio rega
- data: {}
entity_id: switch.valvula_jardim_1
service: switch.turn_on
- delay: 00:10:00
- data: {}
entity_id: switch.valvula_jardim_1
service: switch.turn_off
mode: single
- id: sisRega2
alias: Sistema Rega Valvula 2 - 22h
description: ''
trigger:
- at: '23:40:00'
platform: time
condition: []
action:
- data: {}
entity_id: switch.valvula_jardim_2
service: switch.turn_on
- delay: 00:10:00
- data: {}
entity_id: switch.valvula_jardim_2
service: switch.turn_off
mode: single
- id: sisRega3
alias: Sistema Rega Valvula 3 - 22h
description: ''
trigger:
- at: '23:50:00'
platform: time
condition: []
action:
- data: {}
entity_id: switch.valvula_jardim_3
service: switch.turn_on
- delay: 00:10:00
- data: {}
entity_id: switch.valvula_jardim_3
service: switch.turn_off
mode: single
- id: '1590425966320'
alias: Watering Garden Manual cycle
description: ''
trigger: []
condition: []
action:
- data: {}
entity_id: automation.sistema_rega_valvula_1
service: automation.trigger
- delay: 00:10:00
- data: {}
entity_id: automation.sistema_rega_valvula_2
service: automation.trigger
- delay: 00:10:00
- data: {}
entity_id: automation.sistema_rega_valvula_3
service: automation.trigger
- id: '1598985491596'
alias: WC Red luz demasiado tempo ligada +10' alias: WC Red luz demasiado tempo ligada +10'
description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos
trigger: trigger:
- entity_id: light.luz_wc_vermelha - entity_id: light.luz_wc_vermelha
for: 00:10:00 for: 00:10:00
from: 'off' from: "off"
platform: state platform: state
to: 'on' to: "on"
condition: [] condition: []
action: action:
- data: - data:
message: Wc Vermelha luz acesa message: Wc Vermelha luz acesa
title: '*Luz WC Vermelha*' title: "*Luz WC Vermelha*"
service: notify.buttler service: notify.buttler
- service: notify.whatsapp - service: notify.whatsapp
data: data:
@@ -167,20 +78,20 @@
data: data:
message: Wc Vermelha luz acesa message: Wc Vermelha luz acesa
mode: single mode: single
- id: '1603375184553' - id: "1603375184553"
alias: 'Garagem luz 1 demasiado tempo ligada +10'' ' alias: "Garagem - Luz 1 demasiado tempo ligada +10' "
description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos
trigger: trigger:
- entity_id: light.luz_garagem_1 - entity_id: light.luz_garagem_1
for: 00:10:00 for: 00:10:00
from: 'off' from: "off"
platform: state platform: state
to: 'on' to: "on"
condition: [] condition: []
action: action:
- data: - data:
message: Luz garagem 1 acesa message: Luz garagem 1 acesa
title: '*Luz garagem 1*' title: "*Luz garagem 1*"
service: notify.buttler service: notify.buttler
- service: notify.whatsapp - service: notify.whatsapp
data: data:
@@ -189,20 +100,20 @@
data: data:
message: Luz garagem 1 acesa message: Luz garagem 1 acesa
mode: single mode: single
- id: '1603375213791' - id: "1603375213791"
alias: Garagem luz 2 demasiado tempo ligada +10' alias: Garagem - Luz 2 demasiado tempo ligada +10'
description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos
trigger: trigger:
- entity_id: light.luz_garagem_2 - entity_id: light.luz_garagem_2
for: 00:10:00 for: 00:10:00
from: 'off' from: "off"
platform: state platform: state
to: 'on' to: "on"
condition: [] condition: []
action: action:
- data: - data:
message: Luz garagem 2 acesa message: Luz garagem 2 acesa
title: '*Luz garagem 2*' title: "*Luz garagem 2*"
service: notify.buttler service: notify.buttler
- service: notify.whatsapp - service: notify.whatsapp
data: data:
@@ -211,20 +122,20 @@
data: data:
message: Luz garagem 2 acesa message: Luz garagem 2 acesa
mode: single mode: single
- id: '1604863723383' - id: "1604863723383"
alias: WC Preto luz demasiado tempo ligada +10' alias: WC Preto luz demasiado tempo ligada +10'
description: Avisa se luz Wc Preto acesa por mais de 10 minutos description: Avisa se luz Wc Preto acesa por mais de 10 minutos
trigger: trigger:
- entity_id: light.luz_wc_preto - entity_id: light.luz_wc_preto
for: 00:10:00 for: 00:10:00
from: 'off' from: "off"
platform: state platform: state
to: 'on' to: "on"
condition: [] condition: []
action: action:
- data: - data:
message: Wc Preto luz acesa message: Wc Preto luz acesa
title: '*Luz WC Preto *' title: "*Luz WC Preto *"
service: notify.buttler service: notify.buttler
- service: notify.whatsapp - service: notify.whatsapp
data: data:
@@ -233,13 +144,20 @@
data: data:
message: Luz WC Preto acesa message: Luz WC Preto acesa
mode: single mode: single
- id: '1613783833916' - id: "1613783833916"
alias: BomDiaEstores alias: Blinders - BomDiaEstores - Week
description: '' description: ""
trigger: trigger:
- platform: time - platform: time
at: 07:30 at: 07:30
condition: [] condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
@@ -269,9 +187,9 @@
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
mode: single mode: single
- id: '1614212887668' - id: "1614212887668"
alias: Curious George alias: Blinders - Curious George
description: '' description: ""
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
@@ -305,9 +223,9 @@
data: data:
position: 25 position: 25
mode: single mode: single
- id: '1614212907624' - id: "1614212907624"
alias: Close Covers alias: Blinders - Close Covers
description: '' description: ""
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
@@ -335,59 +253,68 @@
- service: cover.close_cover - service: cover.close_cover
target: target:
entity_id: cover.covercozinha entity_id: cover.covercozinha
data: {}
mode: single mode: single
- id: '1614588424982' - id: "1614588424982"
alias: Let There be Light alias: Blinders - Let There be Light - Week
description: '' description: ""
trigger: trigger:
- platform: time - platform: time
at: 08:30:00 at: 08:30:00
condition: [] condition:
- condition: time
weekday:
- fri
- thu
- wed
- tue
- mon
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 90 position: 60
target: target:
entity_id: cover.coverescritorio entity_id: cover.coverescritorio
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 95 position: 60
target: target:
entity_id: cover.coverqprincipal entity_id: cover.coverqprincipal
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 90 position: 60
target: target:
entity_id: entity_id:
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
- cover.covercozinha
mode: single mode: single
- id: '1615401312170' - id: "1615401312170"
alias: Start Aleixo alias: Start Aleixo
description: '' description: ""
trigger: trigger:
- platform: time - platform: time
at: '10:00' at: "10:00"
condition: [] condition: []
action: action:
- service: vacuum.start - service: vacuum.start
target: target:
entity_id: vacuum.aleixo_s5_max entity_id: vacuum.aleixo_s5_max
mode: single mode: single
- id: '1621620922521' - id: "1621620922521"
alias: WC castanho luz demasiado tempo ligada +10' alias: WC castanho luz demasiado tempo ligada +10'
description: Avisa se luz Wc Castanho acesa por mais de 10 minutos description: Avisa se luz Wc Castanho acesa por mais de 10 minutos
trigger: trigger:
- entity_id: switch.luzwccast - entity_id: switch.luzwccast
for: 00:10:00 for: 00:10:00
from: 'off' from: "off"
platform: state platform: state
to: 'on' to: "on"
condition: [] condition: []
action: action:
- data: - data:
message: Wc Castanho luz acesa message: Wc Castanho luz acesa
title: '*Luz WC Castanho *' title: "*Luz WC Castanho *"
service: notify.buttler service: notify.buttler
- service: notify.whatsapp - service: notify.whatsapp
data: data:
@@ -396,12 +323,12 @@
data: data:
message: Luz WC Castanho acesa message: Luz WC Castanho acesa
mode: single mode: single
- id: '1640114920854' - id: "1640114920854"
alias: Garagem - Turn light on at night alias: Garagem - Turn light on at night
description: '' description: ""
trigger: trigger:
- entity_id: cover.garage_door - entity_id: binary_sensor.portao_garagem_input
from: closed from: "on"
platform: state platform: state
condition: condition:
- condition: or - condition: or
@@ -432,3 +359,34 @@
data: data:
message: luz desligada message: luz desligada
mode: single mode: single
- id: "1653728289950"
alias: Blinders - Let There be Light - Week End
description: ""
trigger:
- platform: time
at: 09:00:00
condition:
- condition: time
weekday:
- sun
- sat
action:
- service: cover.set_cover_position
data:
position: 90
target:
entity_id: cover.coverescritorio
- service: cover.set_cover_position
data:
position: 100
target:
entity_id: cover.coverqprincipal
- service: cover.set_cover_position
data:
position: 100
target:
entity_id:
- cover.coversaladir
- cover.coversalaesq
- cover.covercozinha
mode: single

View File

@@ -23,6 +23,8 @@ google_assistant:
- switch - switch
- light - light
mqtt: !include mqtt.yaml
notify: notify:
- name: Buttler - name: Buttler
platform: telegram platform: telegram
@@ -42,14 +44,6 @@ notify:
phone: !secret phoneNumberRita phone: !secret phoneNumberRita
apikey: !secret callMeBotAPIKeyRita apikey: !secret callMeBotAPIKeyRita
spotify:
client_id: !secret spotifyClientID
client_secret: !secret spotifyClientSecret
spotcast:
sp_dc: !secret sp_dc
sp_key: !secret sp_key
telegram_bot: telegram_bot:
- platform: polling - platform: polling
api_key: !secret telegram_bot_token api_key: !secret telegram_bot_token

138
light.yaml Executable file → Normal file
View File

@@ -1,138 +0,0 @@
- platform: mqtt
name: "Luz Hall Quarto Principal"
state_topic: "stat/tasmota_BC6546/POWER"
command_topic: "cmnd/tasmota_BC6546/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz WC Vermelha"
state_topic: "stat/Luzwcred/POWER"
command_topic: "cmnd/Luzwcred/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Aquario"
command_topic: "cmnd/SonoffluzAquario/power"
state_topic: "stat/SonoffluzAquario/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Wc Preto"
command_topic: "cmnd/tasmota_FD991E/power"
state_topic: "stat/tasmota_FD991E/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Escritorio"
command_topic: "cmnd/LuzEscritorio/power"
state_topic: "stat/LuzEscritorio/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Jardim Frente Lado"
command_topic: "mqttServer/14031717/light/14031717luzfrentelado/set"
state_topic: "mqttServer/14031717/light/14031717luzfrentelado/state"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Jardim Frente"
command_topic: "mqttServer/14031717/light/14031717luzjardimfrente/set"
state_topic: "mqttServer/14031717/light/14031717luzjardimfrente/state"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Garagem 1"
command_topic: "mqttServer/14029039/light/14029039luzgaragem1/set"
state_topic: "mqttServer/14029039/light/14029039luzgaragem1/set"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Garagem 2"
command_topic: "mqttServer/14029039/light/14029039luzgaragem2/set"
state_topic: "mqttServer/14029039/light/14029039luzgaragem2/state"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Hall Tras Fora"
command_topic: "mqttServer/14049798/light/14049798luzhallforatras1/set"
state_topic: "mqttServer/14049798/light/14049798luzhallforatras1/state"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Luz Muro Tras"
command_topic: "mqttServer/14049798/light/14049798luzmurostras/set"
state_topic: "mqttServer/14049798/light/14049798luzmurostras/state"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
unique_id: luz_varanda_quarto_principal
name: "Luz Varanda Quarto Principal"
state_topic: "shellies/luzVarandaQP/relay/0"
command_topic: "shellies/luzVarandaQP/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1
- platform: mqtt
unique_id: luz_varanda_sala
name: "Luz Varanda Sala"
state_topic: "shellies/luzVarandaSala/relay/0"
command_topic: "shellies/luzVarandaSala/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1
- platform: mqtt
unique_id: luz_wc_castanha
name: "Luz WC Castanha"
state_topic: "shellies/luzWCcast/relay/0"
command_topic: "shellies/luzWCcast/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1
- platform: mqtt
unique_id: luz_hall_tras
name: "Luz Hall Tras"
state_topic: "shellies/luzHallTras/relay/0"
command_topic: "shellies/luzHallTras/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1

3
mqtt.yaml Normal file
View File

@@ -0,0 +1,3 @@
light: !include mqtt_light.yaml
switch: !include mqtt_switch.yaml
sensor: !include mqtt_sensor.yaml

119
mqtt_light.yaml Executable file
View File

@@ -0,0 +1,119 @@
- state_topic: "stat/Luzwcred/POWER"
name: "Luz WC Vermelha"
command_topic: "cmnd/Luzwcred/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "stat/SonoffluzAquario/POWER"
command_topic: "cmnd/SonoffluzAquario/power"
name: "Luz Aquario"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "stat/tasmota_FD991E/POWER"
name: "Luz Wc Preto"
command_topic: "cmnd/tasmota_FD991E/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "stat/tasmota_BC6546/POWER"
command_topic: "cmnd/tasmota_BC6546/POWER"
name: "Luz Hall Quarto Principal"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "stat/LuzEscritorio/POWER"
name: "Luz Escritorio"
command_topic: "cmnd/LuzEscritorio/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "mqttServer/14031717/light/14031717luzfrentelado/state"
name: "Luz Jardim Frente Lado"
command_topic: "mqttServer/14031717/light/14031717luzfrentelado/set"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "mqttServer/14031717/light/14031717luzjardimfrente/state"
name: "Luz Jardim Frente"
command_topic: "mqttServer/14031717/light/14031717luzjardimfrente/set"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "mqttServer/14029039/light/14029039luzgaragem1/set"
name: "Luz Garagem 1"
command_topic: "mqttServer/14029039/light/14029039luzgaragem1/set"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "mqttServer/14029039/light/14029039luzgaragem2/state"
command_topic: "mqttServer/14029039/light/14029039luzgaragem2/set"
name: "Luz Garagem 2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "mqttServer/14049798/light/14049798luzhallforatras1/state"
name: "Luz Hall Tras Fora"
command_topic: "mqttServer/14049798/light/14049798luzhallforatras1/set"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "mqttServer/14049798/light/14049798luzmurostras/state"
name: "Luz Muro Tras"
command_topic: "mqttServer/14049798/light/14049798luzmurostras/set"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "shellies/luzVarandaQP/relay/0"
name: "Luz Varanda Quarto Principal"
command_topic: "shellies/luzVarandaQP/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1
- state_topic: "shellies/luzVarandaSala/relay/0"
name: "Luz Varanda Sala"
command_topic: "shellies/luzVarandaSala/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1
- state_topic: "shellies/luzWCcast/relay/0"
name: "Luz WC Castanha"
command_topic: "shellies/luzWCcast/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1
- state_topic: "shellies/luzHallTras/relay/0"
name: "Luz Hall Tras"
command_topic: "shellies/luzHallTras/relay/0/command"
payload_on: "on"
payload_off: "off"
retain: false
qos: 1

59
mqtt_sensor.yaml Normal file
View File

@@ -0,0 +1,59 @@
- state_topic: "tele/soaquecepiso/SENSOR"
name: "Aquecimento Piso Amperes"
value_template: "{{ value_json['ENERGY'].Current }}"
unit_of_measurement: "A"
- state_topic: "tele/soaquecepiso/SENSOR"
name: "Aquecimento Piso Watts"
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "W"
- state_topic: "tele/soaquecepiso/SENSOR"
name: "Aquecimento Piso Volts"
value_template: "{{ value_json['ENERGY'].Voltage }}"
unit_of_measurement: "V"
- state_topic: "tele/soaquecepiso/SENSOR"
name: "Aquecimento Piso Watts Hoje"
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "W"
- state_topic: "tele/soaquecepiso/SENSOR"
name: "Aquecimento Piso Watts Ontem"
value_template: "{{ value_json['ENERGY'].Yesterday }}"
unit_of_measurement: "W"
- state_topic: "tele/soaquecepiso/SENSOR"
name: "Aquecimento Piso Watts Total"
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "W"
- state_topic: "tele/soaqueceagua/SENSOR"
name: "Aquecimento Agua Amperes"
value_template: "{{ value_json['ENERGY'].Current }}"
unit_of_measurement: "A"
- state_topic: "tele/soaqueceagua/SENSOR"
name: "Aquecimento Agua Watts"
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "W"
- state_topic: "tele/soaqueceagua/SENSOR"
name: "Aquecimento Agua Volts"
value_template: "{{ value_json['ENERGY'].Voltage }}"
unit_of_measurement: "V"
- state_topic: "tele/soaqueceagua/SENSOR"
name: "Aquecimento Agua Watts Hoje"
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "W"
- state_topic: "tele/soaqueceagua/SENSOR"
name: "Aquecimento Agua Watts Ontem"
value_template: "{{ value_json['ENERGY'].Yesterday }}"
unit_of_measurement: "W"
- state_topic: "tele/soaqueceagua/SENSOR"
name: "Aquecimento Agua Watts Total"
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "W"

35
mqtt_switch.yaml Normal file
View File

@@ -0,0 +1,35 @@
- state_topic: "stat/soaquecepiso/POWER"
name: "Aquecimento piso"
command_topic: "cmnd/soaquecepiso/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "stat/soaqueceagua/POWER"
name: "Aquecimento agua"
command_topic: "cmnd/soaqueceagua/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- state_topic: "stat/tasmota_A9A998/POWER"
name: "LTVR1"
command_topic: "cmnd/tasmota_A9A998/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
- state_topic: "stat/tasmota_A924F7/POWER"
name: "LTVR2"
command_topic: "cmnd/tasmota_A924F7/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true

View File

@@ -1,17 +1 @@
'1593471301993':
alias: Acionar Regua
sequence:
- service: automation.trigger
target:
entity_id: automation.sistema_rega_valvula_1_22h
- wait_template: ''
timeout: 00:10:00
- service: automation.trigger
target:
entity_id: automation.sistema_rega_valvula_2_22h
- wait_template: ''
timeout: 00:10:00
- service: automation.trigger
target:
entity_id: automation.sistema_rega_valvula_3_22h
mode: single

View File

@@ -11,78 +11,3 @@
arg: /home arg: /home
- type: memory_free - type: memory_free
- type: last_boot - type: last_boot
- platform: mqtt
name: "sensor aquario"
state_topic: "tele/SonoffluzAquario/SENSOR"
value_template: "{{ value_json['DS18B20'].Temperature }}"
unit_of_measurement: "C"
- platform: mqtt
name: "Temperatura Escritorio"
state_topic: "tele/sonoffEscritorio/SENSOR"
value_template: "{{ value_json['DHT11'].Temperature }}"
unit_of_measurement: "C"
- platform: mqtt
name: "Humidade Escritorio"
state_topic: "tele/sonoffEscritorio/SENSOR"
value_template: "{{ value_json['DHT11'].Humidity }}"
unit_of_measurement: "%"
- platform: mqtt
name: "Aquecimento Piso Amperes"
state_topic: "tele/soaquecepiso/SENSOR"
value_template: "{{ value_json['ENERGY'].Current }}"
unit_of_measurement: "A"
- platform: mqtt
name: "Aquecimento Piso Watts"
state_topic: "tele/soaquecepiso/SENSOR"
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Piso Volts"
state_topic: "tele/soaquecepiso/SENSOR"
value_template: "{{ value_json['ENERGY'].Voltage }}"
unit_of_measurement: "V"
- platform: mqtt
name: "Aquecimento Piso Watts Hoje"
state_topic: "tele/soaquecepiso/SENSOR"
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Piso Watts Ontem"
state_topic: "tele/soaquecepiso/SENSOR"
value_template: "{{ value_json['ENERGY'].Yesterday }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Piso Watts Total"
state_topic: "tele/soaquecepiso/SENSOR"
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Agua Amperes"
state_topic: "tele/soaqueceagua/SENSOR"
value_template: "{{ value_json['ENERGY'].Current }}"
unit_of_measurement: "A"
- platform: mqtt
name: "Aquecimento Agua Watts"
state_topic: "tele/soaqueceagua/SENSOR"
value_template: "{{ value_json['ENERGY'].Power }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Agua Volts"
state_topic: "tele/soaqueceagua/SENSOR"
value_template: "{{ value_json['ENERGY'].Voltage }}"
unit_of_measurement: "V"
- platform: mqtt
name: "Aquecimento Agua Watts Hoje"
state_topic: "tele/soaqueceagua/SENSOR"
value_template: "{{ value_json['ENERGY'].Today }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Agua Watts Ontem"
state_topic: "tele/soaqueceagua/SENSOR"
value_template: "{{ value_json['ENERGY'].Yesterday }}"
unit_of_measurement: "W"
- platform: mqtt
name: "Aquecimento Agua Watts Total"
state_topic: "tele/soaqueceagua/SENSOR"
value_template: "{{ value_json['ENERGY'].Total }}"
unit_of_measurement: "W"

View File

@@ -1,81 +1 @@
- platform: mqtt
name: "Aquecimento piso"
state_topic: "stat/soaquecepiso/POWER"
command_topic: "cmnd/soaquecepiso/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Tomada escritorio"
state_topic: "stat/sonoffEscritorio/POWER"
command_topic: "cmnd/sonoffEscritorio/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Aquecimento agua"
state_topic: "stat/soaqueceagua/POWER"
command_topic: "cmnd/soaqueceagua/power"
qos: 1
payload_on: "ON"
payload_off: "OFF"
retain: true
- platform: mqtt
name: "Valvula jardim 1"
state_topic: "stat/tasmota_8CA4C5/POWER1"
command_topic: "cmnd/tasmota_8CA4C5/POWER1"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
- platform: mqtt
name: "Valvula jardim 2"
state_topic: "stat/tasmota_8CA4C5/POWER2"
command_topic: "cmnd/tasmota_8CA4C5/POWER2"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
- platform: mqtt
name: "Valvula jardim 3"
state_topic: "stat/tasmota_8CA4C5/POWER3"
command_topic: "cmnd/tasmota_8CA4C5/POWER3"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
- platform: mqtt
name: "LTVR1"
state_topic: "stat/tasmota_A9A998/POWER"
command_topic: "cmnd/tasmota_A9A998/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
- platform: mqtt
name: "LTVR2"
state_topic: "stat/tasmota_A924F7/POWER"
command_topic: "cmnd/tasmota_A924F7/POWER"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true