changes to automation on lights
This commit is contained in:
39
automations.yaml
Executable file → Normal file
39
automations.yaml
Executable file → Normal file
@@ -36,7 +36,7 @@
|
|||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1578994958446'
|
- id: '1578994958446'
|
||||||
alias: Warn garage gate Open
|
alias: Garagem - Warn gate Open
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- entity_id: cover.portao_garagem
|
- entity_id: cover.portao_garagem
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
title: '*Portao da garagem*'
|
title: '*Portao da garagem*'
|
||||||
service: notify.buttler
|
service: notify.buttler
|
||||||
- id: '1579542436595'
|
- id: '1579542436595'
|
||||||
alias: warn portao garagem closed
|
alias: Garagem - warn gate closed
|
||||||
description: ''
|
description: ''
|
||||||
trigger:
|
trigger:
|
||||||
- entity_id: cover.portao_garagem
|
- entity_id: cover.portao_garagem
|
||||||
@@ -396,3 +396,38 @@
|
|||||||
data:
|
data:
|
||||||
message: Luz WC Castanho acesa
|
message: Luz WC Castanho acesa
|
||||||
mode: single
|
mode: single
|
||||||
|
- id: '1640114920854'
|
||||||
|
alias: Garagem - Turn light on at night
|
||||||
|
description: ''
|
||||||
|
trigger:
|
||||||
|
- entity_id: cover.portao_garagem
|
||||||
|
from: closed
|
||||||
|
platform: state
|
||||||
|
to: open
|
||||||
|
condition:
|
||||||
|
- condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: sun
|
||||||
|
before: sunrise
|
||||||
|
- condition: sun
|
||||||
|
after: sunset
|
||||||
|
action:
|
||||||
|
- data:
|
||||||
|
message: ligar luz
|
||||||
|
title: ligar luz temp
|
||||||
|
service: notify.buttler
|
||||||
|
- service: light.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: light.luz_garagem_1
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 5
|
||||||
|
seconds: 0
|
||||||
|
milliseconds: 0
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.luz_garagem_1
|
||||||
|
- service: notify.buttler
|
||||||
|
data:
|
||||||
|
message: luz desligada
|
||||||
|
mode: single
|
||||||
|
|||||||
@@ -70,3 +70,8 @@ vacuum:
|
|||||||
- platform: xiaomi_miio
|
- platform: xiaomi_miio
|
||||||
host: !secret aleixoIP
|
host: !secret aleixoIP
|
||||||
token: !secret aleixoToken
|
token: !secret aleixoToken
|
||||||
|
|
||||||
|
utility_meter:
|
||||||
|
energy:
|
||||||
|
source: sensor.energy_aqua_hoje
|
||||||
|
cycle: hourly
|
||||||
|
|||||||
@@ -78,6 +78,14 @@
|
|||||||
- light.luz_hall_tras_fora
|
- light.luz_hall_tras_fora
|
||||||
- light.luz_jardim_frente
|
- light.luz_jardim_frente
|
||||||
- light.Luz_jardim_frente_lado
|
- light.Luz_jardim_frente_lado
|
||||||
|
alllights:
|
||||||
|
name: Todas Luzes
|
||||||
|
entities:
|
||||||
|
- light.luz_varanda_sala
|
||||||
|
- light.luz_varanda_quarto_principal
|
||||||
|
- light.luz_hall_tras_fora
|
||||||
|
- light.luz_jardim_frente
|
||||||
|
- light.Luz_jardim_frente_lado
|
||||||
coverSala:
|
coverSala:
|
||||||
name: Estores Sala
|
name: Estores Sala
|
||||||
entities:
|
entities:
|
||||||
|
|||||||
@@ -97,12 +97,6 @@
|
|||||||
payload_off: "OFF"
|
payload_off: "OFF"
|
||||||
retain: true
|
retain: true
|
||||||
|
|
||||||
# - platform: philips_ambilight
|
|
||||||
# name: TV Ambilight
|
|
||||||
# host: !secret philipstv_ip
|
|
||||||
# username: !secret philipstv_user
|
|
||||||
# password: !secret philipstv_pass
|
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
unique_id: luz_varanda_quarto_principal
|
unique_id: luz_varanda_quarto_principal
|
||||||
name: "Luz Varanda Quarto Principal"
|
name: "Luz Varanda Quarto Principal"
|
||||||
|
|||||||
36
sensor.yaml
36
sensor.yaml
@@ -1,3 +1,9 @@
|
|||||||
|
- platform: integration
|
||||||
|
source: sensor.aquecimento_agua_watts_hoje
|
||||||
|
name: energy_aqua_hoje
|
||||||
|
unit_prefix: k
|
||||||
|
round: 2
|
||||||
|
method: left
|
||||||
- platform: cpuspeed
|
- platform: cpuspeed
|
||||||
- platform: systemmonitor
|
- platform: systemmonitor
|
||||||
resources:
|
resources:
|
||||||
@@ -9,74 +15,74 @@
|
|||||||
name: "sensor aquario"
|
name: "sensor aquario"
|
||||||
state_topic: "tele/SonoffluzAquario/SENSOR"
|
state_topic: "tele/SonoffluzAquario/SENSOR"
|
||||||
value_template: "{{ value_json['DS18B20'].Temperature }}"
|
value_template: "{{ value_json['DS18B20'].Temperature }}"
|
||||||
unit_of_measurement: 'C'
|
unit_of_measurement: "C"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Temperatura Escritorio"
|
name: "Temperatura Escritorio"
|
||||||
state_topic: "tele/sonoffEscritorio/SENSOR"
|
state_topic: "tele/sonoffEscritorio/SENSOR"
|
||||||
value_template: "{{ value_json['DHT11'].Temperature }}"
|
value_template: "{{ value_json['DHT11'].Temperature }}"
|
||||||
unit_of_measurement: 'C'
|
unit_of_measurement: "C"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Humidade Escritorio"
|
name: "Humidade Escritorio"
|
||||||
state_topic: "tele/sonoffEscritorio/SENSOR"
|
state_topic: "tele/sonoffEscritorio/SENSOR"
|
||||||
value_template: "{{ value_json['DHT11'].Humidity }}"
|
value_template: "{{ value_json['DHT11'].Humidity }}"
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: "%"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Piso Amperes"
|
name: "Aquecimento Piso Amperes"
|
||||||
state_topic: "tele/soaquecepiso/SENSOR"
|
state_topic: "tele/soaquecepiso/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Current }}"
|
value_template: "{{ value_json['ENERGY'].Current }}"
|
||||||
unit_of_measurement: 'A'
|
unit_of_measurement: "A"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Piso Watts"
|
name: "Aquecimento Piso Watts"
|
||||||
state_topic: "tele/soaquecepiso/SENSOR"
|
state_topic: "tele/soaquecepiso/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Power }}"
|
value_template: "{{ value_json['ENERGY'].Power }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Piso Volts"
|
name: "Aquecimento Piso Volts"
|
||||||
state_topic: "tele/soaquecepiso/SENSOR"
|
state_topic: "tele/soaquecepiso/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Voltage }}"
|
value_template: "{{ value_json['ENERGY'].Voltage }}"
|
||||||
unit_of_measurement: 'V'
|
unit_of_measurement: "V"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Piso Watts Hoje"
|
name: "Aquecimento Piso Watts Hoje"
|
||||||
state_topic: "tele/soaquecepiso/SENSOR"
|
state_topic: "tele/soaquecepiso/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Today }}"
|
value_template: "{{ value_json['ENERGY'].Today }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Piso Watts Ontem"
|
name: "Aquecimento Piso Watts Ontem"
|
||||||
state_topic: "tele/soaquecepiso/SENSOR"
|
state_topic: "tele/soaquecepiso/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Yesterday }}"
|
value_template: "{{ value_json['ENERGY'].Yesterday }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Piso Watts Total"
|
name: "Aquecimento Piso Watts Total"
|
||||||
state_topic: "tele/soaquecepiso/SENSOR"
|
state_topic: "tele/soaquecepiso/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Total }}"
|
value_template: "{{ value_json['ENERGY'].Total }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Agua Amperes"
|
name: "Aquecimento Agua Amperes"
|
||||||
state_topic: "tele/soaqueceagua/SENSOR"
|
state_topic: "tele/soaqueceagua/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Current }}"
|
value_template: "{{ value_json['ENERGY'].Current }}"
|
||||||
unit_of_measurement: 'A'
|
unit_of_measurement: "A"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Agua Watts"
|
name: "Aquecimento Agua Watts"
|
||||||
state_topic: "tele/soaqueceagua/SENSOR"
|
state_topic: "tele/soaqueceagua/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Power }}"
|
value_template: "{{ value_json['ENERGY'].Power }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Agua Volts"
|
name: "Aquecimento Agua Volts"
|
||||||
state_topic: "tele/soaqueceagua/SENSOR"
|
state_topic: "tele/soaqueceagua/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Voltage }}"
|
value_template: "{{ value_json['ENERGY'].Voltage }}"
|
||||||
unit_of_measurement: 'V'
|
unit_of_measurement: "V"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Agua Watts Hoje"
|
name: "Aquecimento Agua Watts Hoje"
|
||||||
state_topic: "tele/soaqueceagua/SENSOR"
|
state_topic: "tele/soaqueceagua/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Today }}"
|
value_template: "{{ value_json['ENERGY'].Today }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Agua Watts Ontem"
|
name: "Aquecimento Agua Watts Ontem"
|
||||||
state_topic: "tele/soaqueceagua/SENSOR"
|
state_topic: "tele/soaqueceagua/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Yesterday }}"
|
value_template: "{{ value_json['ENERGY'].Yesterday }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Aquecimento Agua Watts Total"
|
name: "Aquecimento Agua Watts Total"
|
||||||
state_topic: "tele/soaqueceagua/SENSOR"
|
state_topic: "tele/soaqueceagua/SENSOR"
|
||||||
value_template: "{{ value_json['ENERGY'].Total }}"
|
value_template: "{{ value_json['ENERGY'].Total }}"
|
||||||
unit_of_measurement: 'W'
|
unit_of_measurement: "W"
|
||||||
|
|||||||
Reference in New Issue
Block a user