From c5c8999f4de7e7832d5a309b9df711aacc191915 Mon Sep 17 00:00:00 2001 From: Valter Ferreira Date: Thu, 3 Nov 2022 20:34:24 +0000 Subject: [PATCH] add zoneminder config --- automations.yaml | 627 +++++++++++++++++++++++---------------------- configuration.yaml | 3 + sensor.yaml | 1 - 3 files changed, 317 insertions(+), 314 deletions(-) diff --git a/automations.yaml b/automations.yaml index 75c82ab..dd34a59 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1,392 +1,393 @@ -- id: "1589065904158" +- id: '1589065904158' alias: Agua - Aquecimento - description: "" + description: '' trigger: - - at: 06:00:00 - platform: time - - at: 08:00:00 - platform: time - - at: "16:00:00" - platform: time - - at: "20:00:00" - platform: time + - at: 06:00:00 + platform: time + - at: 08:00:00 + platform: time + - at: '16:00:00' + platform: time + - at: '20:00:00' + platform: time action: - - data: {} - entity_id: switch.aquecimento_agua - service: switch.toggle + - data: {} + entity_id: switch.aquecimento_agua + service: switch.toggle mode: single -- id: "1578994958446" +- id: '1578994958446' alias: Garagem - Warn gate Open - description: "" + description: '' trigger: - - entity_id: binary_sensor.portao_garagem_input - from: "on" - platform: state - to: "off" + - entity_id: binary_sensor.portao_garagem_input + from: 'on' + platform: state + to: 'off' condition: [] action: - - data: - message: O portao da garagem foi aberto - title: "*Portao da garagem*" - service: notify.buttler -- id: "1579542436595" + - data: + message: O portao da garagem foi aberto + title: '*Portao da garagem*' + service: notify.buttler +- id: '1579542436595' alias: Garagem - warn gate closed - description: "" + description: '' trigger: - - entity_id: binary_sensor.portao_garagem_input - from: "off" - platform: state - to: "on" + - entity_id: binary_sensor.portao_garagem_input + from: 'off' + platform: state + to: 'on' condition: [] action: - - data: - message: O portao da garagem foi fechado - title: "*Portao da garagem*" - service: notify.buttler -- id: "1583841493592" + - data: + message: O portao da garagem foi fechado + title: '*Portao da garagem*' + service: notify.buttler +- id: '1583841493592' alias: System - Notify when hacs needs update - description: "" + description: '' trigger: - - entity_id: sensor.hacs - from: "0" - platform: state - to: "1" + - entity_id: sensor.hacs + from: '0' + platform: state + to: '1' action: - - data: - message: System HACS needs updating - title: "*HACS*" - service: notify.buttler -- id: "1598985491596" + - data: + message: System HACS needs updating + title: '*HACS*' + service: notify.buttler +- id: '1598985491596' alias: WC Red luz demasiado tempo ligada +10' description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos trigger: - - entity_id: light.luz_wc_vermelha - for: 00:10:00 - from: "off" - platform: state - to: "on" + - entity_id: light.luz_wc_vermelha + for: 00:10:00 + from: 'off' + platform: state + to: 'on' condition: [] action: - - data: - message: Wc Vermelha luz acesa - title: "*Luz WC Vermelha*" - service: notify.buttler - - service: notify.whatsapp - data: - message: Wc Vermelha luz acesa - - service: notify.whatsapprita - data: - message: Wc Vermelha luz acesa + - data: + message: Wc Vermelha luz acesa + title: '*Luz WC Vermelha*' + service: notify.buttler + - service: notify.whatsapp + data: + message: Wc Vermelha luz acesa + - service: notify.whatsapprita + data: + message: Wc Vermelha luz acesa mode: single -- id: "1603375184553" - alias: "Garagem - Luz 1 demasiado tempo ligada +10' " +- id: '1603375184553' + alias: 'Garagem - Luz 1 demasiado tempo ligada +10'' ' description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos trigger: - - entity_id: light.luz_garagem_1 - for: 00:10:00 - from: "off" - platform: state - to: "on" + - entity_id: light.luz_garagem_1 + for: 00:10:00 + from: 'off' + platform: state + to: 'on' condition: [] action: - - data: - message: Luz garagem 1 acesa - title: "*Luz garagem 1*" - service: notify.buttler - - service: notify.whatsapp - data: - message: Luz garagem 1 acesa - - service: notify.whatsapprita - data: - message: Luz garagem 1 acesa + - data: + message: Luz garagem 1 acesa + title: '*Luz garagem 1*' + service: notify.buttler + - service: notify.whatsapp + data: + message: Luz garagem 1 acesa + - service: notify.whatsapprita + data: + message: Luz garagem 1 acesa mode: single -- id: "1603375213791" +- id: '1603375213791' alias: Garagem - Luz 2 demasiado tempo ligada +10' description: Avisa se luz Wc Vermelha acesa por mais de 10 minutos trigger: - - entity_id: light.luz_garagem_2 - for: 00:10:00 - from: "off" - platform: state - to: "on" + - entity_id: light.luz_garagem_2 + for: 00:10:00 + from: 'off' + platform: state + to: 'on' condition: [] action: - - data: - message: Luz garagem 2 acesa - title: "*Luz garagem 2*" - service: notify.buttler - - service: notify.whatsapp - data: - message: Luz garagem 2 acesa - - service: notify.whatsapprita - data: - message: Luz garagem 2 acesa + - data: + message: Luz garagem 2 acesa + title: '*Luz garagem 2*' + service: notify.buttler + - service: notify.whatsapp + data: + message: Luz garagem 2 acesa + - service: notify.whatsapprita + data: + message: Luz garagem 2 acesa mode: single -- id: "1604863723383" +- id: '1604863723383' alias: WC Preto luz demasiado tempo ligada +10' description: Avisa se luz Wc Preto acesa por mais de 10 minutos trigger: - - entity_id: light.luz_wc_preto - for: 00:10:00 - from: "off" - platform: state - to: "on" + - entity_id: light.luz_wc_preto + for: 00:10:00 + from: 'off' + platform: state + to: 'on' condition: [] action: - - data: - message: Wc Preto luz acesa - title: "*Luz WC Preto *" - service: notify.buttler - - service: notify.whatsapp - data: - message: Luz WC Preto acesa - - service: notify.whatsapprita - data: - message: Luz WC Preto acesa + - data: + message: Wc Preto luz acesa + title: '*Luz WC Preto *' + service: notify.buttler + - service: notify.whatsapp + data: + message: Luz WC Preto acesa + - service: notify.whatsapprita + data: + message: Luz WC Preto acesa mode: single -- id: "1613783833916" +- id: '1613783833916' alias: Blinders - BomDiaEstores - Week - description: "" + description: '' trigger: - - platform: time - at: 07:30 + - platform: time + at: 07:30 condition: - - condition: time - weekday: - - mon - - tue - - wed - - thu - - fri + - condition: time + weekday: + - mon + - tue + - wed + - thu + - fri action: - - service: cover.set_cover_position - data: - position: 30 - target: - entity_id: cover.coverescritorio - - service: cover.set_cover_position - data: - position: 20 - target: - entity_id: cover.coverqprincipal - - service: cover.set_cover_position - data: - position: 0 - target: - entity_id: cover.coverqclara - - service: cover.set_cover_position - data: - position: 80 - target: - entity_id: cover.covercozinha - - service: cover.set_cover_position - data: - position: 50 - target: - entity_id: - - cover.coversaladir - - cover.coversalaesq + - service: cover.set_cover_position + data: + position: 30 + target: + entity_id: cover.coverescritorio + - service: cover.set_cover_position + data: + position: 20 + target: + entity_id: cover.coverqprincipal + - service: cover.set_cover_position + data: + position: 0 + target: + entity_id: cover.coverqclara + - service: cover.set_cover_position + data: + position: 80 + target: + entity_id: cover.covercozinha + - service: cover.set_cover_position + data: + position: 50 + target: + entity_id: + - cover.coversaladir + - cover.coversalaesq mode: single -- id: "1614212887668" +- id: '1614212887668' alias: Blinders - Curious George - description: "" + description: '' trigger: - - platform: sun - event: sunset - offset: 00:15:00 + - platform: sun + event: sunset + offset: 00:15:00 condition: [] action: - - service: cover.set_cover_position - data: - position: 15 - target: - entity_id: cover.coverescritorio - - service: cover.close_cover - data: {} - target: - entity_id: cover.coverqclara - - service: cover.set_cover_position - data: - position: 15 - target: - entity_id: cover.coverqprincipal - - service: cover.set_cover_position - data: - position: 15 - target: - entity_id: cover.covercozinha - - service: cover.set_cover_position - target: - entity_id: - - cover.coversaladir - - cover.coversalaesq - data: - position: 25 + - service: cover.set_cover_position + data: + position: 15 + target: + entity_id: cover.coverescritorio + - service: cover.close_cover + data: {} + target: + entity_id: cover.coverqclara + - service: cover.set_cover_position + data: + position: 15 + target: + entity_id: cover.coverqprincipal + - service: cover.set_cover_position + data: + position: 15 + target: + entity_id: cover.covercozinha + - service: cover.set_cover_position + target: + entity_id: + - cover.coversaladir + - cover.coversalaesq + data: + position: 25 mode: single -- id: "1614212907624" +- id: '1614212907624' alias: Blinders - Close Covers - description: "" + description: '' trigger: - - platform: sun - event: sunset - offset: 01:00 + - platform: sun + event: sunset + offset: 01:00 condition: [] action: - - service: cover.close_cover - data: {} - target: - entity_id: cover.coverescritorio - - service: cover.close_cover - data: {} - target: - entity_id: cover.coverqclara - - service: cover.close_cover - data: {} - target: - entity_id: cover.coverqprincipal - - service: cover.close_cover - data: {} - target: - entity_id: - - cover.coversaladir - - cover.coversalaesq - - service: cover.close_cover - target: - entity_id: cover.covercozinha - data: {} + - service: cover.close_cover + data: {} + target: + entity_id: cover.coverescritorio + - service: cover.close_cover + data: {} + target: + entity_id: cover.coverqclara + - service: cover.close_cover + data: {} + target: + entity_id: cover.coverqprincipal + - service: cover.close_cover + data: {} + target: + entity_id: + - cover.coversaladir + - cover.coversalaesq + - service: cover.close_cover + target: + entity_id: cover.covercozinha + data: {} mode: single -- id: "1614588424982" +- id: '1614588424982' alias: Blinders - Let There be Light - Week - description: "" + description: '' trigger: - - platform: time - at: 08:30:00 + - platform: time + at: 08:30:00 condition: - - condition: time - weekday: - - fri - - thu - - wed - - tue - - mon + - condition: time + weekday: + - fri + - thu + - wed + - tue + - mon action: - - service: cover.set_cover_position - data: - position: 60 - target: - entity_id: cover.coverescritorio - - service: cover.set_cover_position - data: - position: 60 - target: - entity_id: cover.coverqprincipal - - service: cover.set_cover_position - data: - position: 60 - target: - entity_id: - - cover.coversaladir - - cover.coversalaesq - - cover.covercozinha + - service: cover.set_cover_position + data: + position: 60 + target: + entity_id: cover.coverescritorio + - service: cover.set_cover_position + data: + position: 60 + target: + entity_id: cover.coverqprincipal + - service: cover.set_cover_position + data: + position: 60 + target: + entity_id: + - cover.coversaladir + - cover.coversalaesq + - cover.covercozinha mode: single -- id: "1615401312170" +- id: '1615401312170' alias: Start Aleixo - description: "" + description: '' trigger: - - platform: time - at: "10:00" + - platform: time + at: '10:00' condition: [] action: - - service: vacuum.start - target: - entity_id: vacuum.aleixo_s5_max + - service: vacuum.start + target: + entity_id: vacuum.aleixo_s5_max mode: single -- id: "1621620922521" +- id: '1621620922521' alias: WC castanho luz demasiado tempo ligada +10' description: Avisa se luz Wc Castanho acesa por mais de 10 minutos trigger: - - entity_id: switch.luzwccast - for: 00:10:00 - from: "off" - platform: state - to: "on" + - entity_id: switch.luzwccast + for: 00:10:00 + from: 'off' + platform: state + to: 'on' condition: [] action: - - data: - message: Wc Castanho luz acesa - title: "*Luz WC Castanho *" - service: notify.buttler - - service: notify.whatsapp - data: - message: Luz WC Castanho acesa - - service: notify.whatsapprita - data: - message: Luz WC Castanho acesa + - data: + message: Wc Castanho luz acesa + title: '*Luz WC Castanho *' + service: notify.buttler + - service: notify.whatsapp + data: + message: Luz WC Castanho acesa + - service: notify.whatsapprita + data: + message: Luz WC Castanho acesa mode: single -- id: "1640114920854" +- id: '1640114920854' alias: Garagem - Turn light on at night - description: "" + description: '' trigger: - - entity_id: binary_sensor.portao_garagem_input - from: "on" - platform: state + - entity_id: + - binary_sensor.portao_garagem_input + from: 'on' + platform: state condition: - - condition: or - conditions: - - condition: sun - before: sunrise - - condition: sun - after: sunset + - 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_2 - data: {} - - delay: - hours: 0 - minutes: 5 - seconds: 0 - milliseconds: 0 - - service: light.turn_off - target: - entity_id: light.luz_garagem_2 - data: {} - - service: notify.buttler - data: - message: luz desligada + - data: + message: ligar luz + title: ligar luz temp + service: notify.buttler + - service: light.turn_on + target: + entity_id: light.luz_garagem_2 + data: {} + - delay: + hours: 0 + minutes: 5 + seconds: 0 + milliseconds: 0 + - service: light.turn_off + target: + entity_id: light.luz_garagem_2 + data: {} + - service: notify.buttler + data: + message: luz desligada mode: single -- id: "1653728289950" +- id: '1653728289950' alias: Blinders - Let There be Light - Week End - description: "" + description: '' trigger: - - platform: time - at: 09:00:00 + - platform: time + at: 09:00:00 condition: - - condition: time - weekday: - - sun - - sat + - 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 + - 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 diff --git a/configuration.yaml b/configuration.yaml index 26175b5..28d8ef4 100755 --- a/configuration.yaml +++ b/configuration.yaml @@ -25,6 +25,9 @@ google_assistant: mqtt: !include mqtt.yaml +zoneminder: + - host: 192.168.1.3:8443 + notify: - name: Buttler platform: telegram diff --git a/sensor.yaml b/sensor.yaml index f70630b..f9dfe6e 100755 --- a/sensor.yaml +++ b/sensor.yaml @@ -1,4 +1,3 @@ -- platform: season - platform: integration source: sensor.aquecimento_agua_watts_hoje name: energy_aqua_hoje