add zoneminder config

This commit is contained in:
2022-11-03 20:34:24 +00:00
parent 07373045fc
commit c5c8999f4d
3 changed files with 317 additions and 314 deletions

View File

@@ -1,392 +1,393 @@
- id: "1589065904158" - id: '1589065904158'
alias: Agua - Aquecimento alias: Agua - Aquecimento
description: "" description: ''
trigger: trigger:
- at: 06:00:00 - at: 06:00:00
platform: time platform: time
- at: 08:00:00 - at: 08:00:00
platform: time platform: time
- at: "16:00:00" - at: '16:00:00'
platform: time platform: time
- at: "20:00: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: "1578994958446" - 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: System - 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: "1598985491596" - 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:
message: Wc Vermelha luz acesa message: Wc Vermelha luz acesa
- service: notify.whatsapprita - service: notify.whatsapprita
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:
message: Luz garagem 1 acesa message: Luz garagem 1 acesa
- service: notify.whatsapprita - service: notify.whatsapprita
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:
message: Luz garagem 2 acesa message: Luz garagem 2 acesa
- service: notify.whatsapprita - service: notify.whatsapprita
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:
message: Luz WC Preto acesa message: Luz WC Preto acesa
- service: notify.whatsapprita - service: notify.whatsapprita
data: data:
message: Luz WC Preto acesa message: Luz WC Preto acesa
mode: single mode: single
- id: "1613783833916" - id: '1613783833916'
alias: Blinders - BomDiaEstores - Week alias: Blinders - BomDiaEstores - Week
description: "" description: ''
trigger: trigger:
- platform: time - platform: time
at: 07:30 at: 07:30
condition: condition:
- condition: time - condition: time
weekday: weekday:
- mon - mon
- tue - tue
- wed - wed
- thu - thu
- fri - fri
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 30 position: 30
target: target:
entity_id: cover.coverescritorio entity_id: cover.coverescritorio
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 20 position: 20
target: target:
entity_id: cover.coverqprincipal entity_id: cover.coverqprincipal
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 0 position: 0
target: target:
entity_id: cover.coverqclara entity_id: cover.coverqclara
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 80 position: 80
target: target:
entity_id: cover.covercozinha entity_id: cover.covercozinha
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 50 position: 50
target: target:
entity_id: entity_id:
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
mode: single mode: single
- id: "1614212887668" - id: '1614212887668'
alias: Blinders - Curious George alias: Blinders - Curious George
description: "" description: ''
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
offset: 00:15:00 offset: 00:15:00
condition: [] condition: []
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 15 position: 15
target: target:
entity_id: cover.coverescritorio entity_id: cover.coverescritorio
- service: cover.close_cover - service: cover.close_cover
data: {} data: {}
target: target:
entity_id: cover.coverqclara entity_id: cover.coverqclara
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 15 position: 15
target: target:
entity_id: cover.coverqprincipal entity_id: cover.coverqprincipal
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 15 position: 15
target: target:
entity_id: cover.covercozinha entity_id: cover.covercozinha
- service: cover.set_cover_position - service: cover.set_cover_position
target: target:
entity_id: entity_id:
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
data: data:
position: 25 position: 25
mode: single mode: single
- id: "1614212907624" - id: '1614212907624'
alias: Blinders - Close Covers alias: Blinders - Close Covers
description: "" description: ''
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
offset: 01:00 offset: 01:00
condition: [] condition: []
action: action:
- service: cover.close_cover - service: cover.close_cover
data: {} data: {}
target: target:
entity_id: cover.coverescritorio entity_id: cover.coverescritorio
- service: cover.close_cover - service: cover.close_cover
data: {} data: {}
target: target:
entity_id: cover.coverqclara entity_id: cover.coverqclara
- service: cover.close_cover - service: cover.close_cover
data: {} data: {}
target: target:
entity_id: cover.coverqprincipal entity_id: cover.coverqprincipal
- service: cover.close_cover - service: cover.close_cover
data: {} data: {}
target: target:
entity_id: entity_id:
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
- service: cover.close_cover - service: cover.close_cover
target: target:
entity_id: cover.covercozinha entity_id: cover.covercozinha
data: {} data: {}
mode: single mode: single
- id: "1614588424982" - id: '1614588424982'
alias: Blinders - Let There be Light - Week 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 - condition: time
weekday: weekday:
- fri - fri
- thu - thu
- wed - wed
- tue - tue
- mon - mon
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 60 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: 60 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: 60 position: 60
target: target:
entity_id: entity_id:
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
- cover.covercozinha - 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:
message: Luz WC Castanho acesa message: Luz WC Castanho acesa
- service: notify.whatsapprita - service: notify.whatsapprita
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: binary_sensor.portao_garagem_input - entity_id:
from: "on" - binary_sensor.portao_garagem_input
platform: state from: 'on'
platform: state
condition: condition:
- condition: or - condition: or
conditions: conditions:
- condition: sun - condition: sun
before: sunrise before: sunrise
- condition: sun - condition: sun
after: sunset after: sunset
action: action:
- data: - data:
message: ligar luz message: ligar luz
title: ligar luz temp title: ligar luz temp
service: notify.buttler service: notify.buttler
- service: light.turn_on - service: light.turn_on
target: target:
entity_id: light.luz_garagem_2 entity_id: light.luz_garagem_2
data: {} data: {}
- delay: - delay:
hours: 0 hours: 0
minutes: 5 minutes: 5
seconds: 0 seconds: 0
milliseconds: 0 milliseconds: 0
- service: light.turn_off - service: light.turn_off
target: target:
entity_id: light.luz_garagem_2 entity_id: light.luz_garagem_2
data: {} data: {}
- service: notify.buttler - service: notify.buttler
data: data:
message: luz desligada message: luz desligada
mode: single mode: single
- id: "1653728289950" - id: '1653728289950'
alias: Blinders - Let There be Light - Week End alias: Blinders - Let There be Light - Week End
description: "" description: ''
trigger: trigger:
- platform: time - platform: time
at: 09:00:00 at: 09:00:00
condition: condition:
- condition: time - condition: time
weekday: weekday:
- sun - sun
- sat - sat
action: action:
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 90 position: 90
target: target:
entity_id: cover.coverescritorio entity_id: cover.coverescritorio
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 100 position: 100
target: target:
entity_id: cover.coverqprincipal entity_id: cover.coverqprincipal
- service: cover.set_cover_position - service: cover.set_cover_position
data: data:
position: 100 position: 100
target: target:
entity_id: entity_id:
- cover.coversaladir - cover.coversaladir
- cover.coversalaesq - cover.coversalaesq
- cover.covercozinha - cover.covercozinha
mode: single mode: single

View File

@@ -25,6 +25,9 @@ google_assistant:
mqtt: !include mqtt.yaml mqtt: !include mqtt.yaml
zoneminder:
- host: 192.168.1.3:8443
notify: notify:
- name: Buttler - name: Buttler
platform: telegram platform: telegram

View File

@@ -1,4 +1,3 @@
- platform: season
- platform: integration - platform: integration
source: sensor.aquecimento_agua_watts_hoje source: sensor.aquecimento_agua_watts_hoje
name: energy_aqua_hoje name: energy_aqua_hoje