From d20c86772436d32b5051393b4c1766d9be97bb5d Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 19 Oct 2022 22:25:52 +0200 Subject: [PATCH] Fix notifications --- configuration/automations/3d-printer.yaml | 2 +- configuration/automations/alarm-door-relock.yaml | 4 ++-- configuration/automations/alarm-notify-guest.yaml | 2 +- configuration/automations/camera.yaml | 4 ++-- configuration/automations/front-door-doorbell.yaml | 2 +- configuration/automations/front-door.yaml | 4 ++-- configuration/automations/info-battery.yaml | 2 +- configuration/automations/info-leak.yaml | 2 +- configuration/automations/info-plants.yaml | 2 +- configuration/automations/info-slow-link.yaml | 4 ++-- .../automations/info-unavailable-notice.yaml | 2 +- configuration/automations/presence.yaml | 4 ++-- configuration/automations/test-presence.yaml | 10 +++++----- configuration/automations/ups.yaml | 12 ++++++------ configuration/automations/vacuum.yaml | 14 +++++++------- 15 files changed, 35 insertions(+), 35 deletions(-) diff --git a/configuration/automations/3d-printer.yaml b/configuration/automations/3d-printer.yaml index ca8ea5a..b845458 100644 --- a/configuration/automations/3d-printer.yaml +++ b/configuration/automations/3d-printer.yaml @@ -38,7 +38,7 @@ entity_id: sensor.octoprint_job_percentage to: '100.0' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: 3D printer has finished diff --git a/configuration/automations/alarm-door-relock.yaml b/configuration/automations/alarm-door-relock.yaml index a192f9a..63c1e4d 100644 --- a/configuration/automations/alarm-door-relock.yaml +++ b/configuration/automations/alarm-door-relock.yaml @@ -12,7 +12,7 @@ entity_id: alarm_control_panel.home_alarm state: disarmed action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Door unlocked!" message: Front door was unlocked, trying to lock it back @@ -35,7 +35,7 @@ - service: lock.lock target: entity_id: lock.front_door_25f246fe_door_lock - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Door locked back" message: Front door was successfully locked diff --git a/configuration/automations/alarm-notify-guest.yaml b/configuration/automations/alarm-notify-guest.yaml index 7b07767..b0bdd95 100644 --- a/configuration/automations/alarm-notify-guest.yaml +++ b/configuration/automations/alarm-notify-guest.yaml @@ -17,7 +17,7 @@ entity_id: alarm_control_panel.home_alarm state: disarmed action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Someone is near home" message: > diff --git a/configuration/automations/camera.yaml b/configuration/automations/camera.yaml index 3c03b2c..938ae69 100644 --- a/configuration/automations/camera.yaml +++ b/configuration/automations/camera.yaml @@ -10,7 +10,7 @@ from: 'off' to: 'on' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Motion Detected in Kitchen! data: @@ -35,7 +35,7 @@ from: 'off' to: 'on' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Motion Detected in Hallway! data: diff --git a/configuration/automations/front-door-doorbell.yaml b/configuration/automations/front-door-doorbell.yaml index 67353f0..dfed3a3 100644 --- a/configuration/automations/front-door-doorbell.yaml +++ b/configuration/automations/front-door-doorbell.yaml @@ -7,7 +7,7 @@ from: 'off' to: 'on' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Doorbell data: diff --git a/configuration/automations/front-door.yaml b/configuration/automations/front-door.yaml index 79588ba..56bea08 100644 --- a/configuration/automations/front-door.yaml +++ b/configuration/automations/front-door.yaml @@ -11,7 +11,7 @@ minutes: 30 seconds: 0 action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Front Door left unlock for 30 minutes, would you like to close it? data: @@ -35,7 +35,7 @@ entity_id: binary_sensor.hallway_motion_sensor state: 'off' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Someone knock data: diff --git a/configuration/automations/info-battery.yaml b/configuration/automations/info-battery.yaml index f3e4e82..bfd994d 100644 --- a/configuration/automations/info-battery.yaml +++ b/configuration/automations/info-battery.yaml @@ -177,7 +177,7 @@ below: '10' entity_id: sensor.weather_sensor_power action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Low battery" message: > diff --git a/configuration/automations/info-leak.yaml b/configuration/automations/info-leak.yaml index a4b2977..9c75f6d 100644 --- a/configuration/automations/info-leak.yaml +++ b/configuration/automations/info-leak.yaml @@ -12,7 +12,7 @@ entity_id: binary_sensor.washing_machine_water_leak_sensor to: 'on' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Leak detection" message: > diff --git a/configuration/automations/info-plants.yaml b/configuration/automations/info-plants.yaml index 672143a..4009ee5 100644 --- a/configuration/automations/info-plants.yaml +++ b/configuration/automations/info-plants.yaml @@ -67,7 +67,7 @@ entity_id: sensor.ble_moisture_thuja_plant_3 below: '5' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: Water plants message: > diff --git a/configuration/automations/info-slow-link.yaml b/configuration/automations/info-slow-link.yaml index 9053d53..7463a78 100644 --- a/configuration/automations/info-slow-link.yaml +++ b/configuration/automations/info-slow-link.yaml @@ -6,7 +6,7 @@ entity_id: sensor.router_eth0_link_speed to: '100' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Internet link fell down to 100 Mbit @@ -18,6 +18,6 @@ entity_id: sensor.router_eth4_link_speed to: '100' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Wifi link speed fell down to 100 Mbit diff --git a/configuration/automations/info-unavailable-notice.yaml b/configuration/automations/info-unavailable-notice.yaml index cdede26..265c9b4 100644 --- a/configuration/automations/info-unavailable-notice.yaml +++ b/configuration/automations/info-unavailable-notice.yaml @@ -450,7 +450,7 @@ type: device_offline subtype: device_offline action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Device unavailable" message: > diff --git a/configuration/automations/presence.yaml b/configuration/automations/presence.yaml index 2cc7f4d..a35939c 100644 --- a/configuration/automations/presence.yaml +++ b/configuration/automations/presence.yaml @@ -5,7 +5,7 @@ entity_id: person.przemek to: home action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Arrive home data: @@ -22,7 +22,7 @@ entity_id: person.przemek from: home action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: You left home data: diff --git a/configuration/automations/test-presence.yaml b/configuration/automations/test-presence.yaml index f11d396..f07d174 100644 --- a/configuration/automations/test-presence.yaml +++ b/configuration/automations/test-presence.yaml @@ -6,7 +6,7 @@ entity_id: sensor.przemyslaws_apple_watch_room_presence to: ra-bathroom action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Apple Watch enter bathroom @@ -18,7 +18,7 @@ entity_id: sensor.przemyslaws_apple_watch_room_presence from: ra-bathroom action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Apple Watch left bathroom - choose: @@ -39,7 +39,7 @@ entity_id: sensor.przemyslaws_apple_watch_room_presence to: ra-bedroom action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Apple Watch enter bathroom @@ -51,7 +51,7 @@ entity_id: sensor.przemyslaws_apple_watch_room_presence from: ra-bedroom action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Apple Watch left bedroom - choose: @@ -72,6 +72,6 @@ entity_id: sensor.przemyslaws_apple_watch_room_presence to: not_home action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Apple Watch left home diff --git a/configuration/automations/ups.yaml b/configuration/automations/ups.yaml index 0c7e2ad..b0d8135 100644 --- a/configuration/automations/ups.yaml +++ b/configuration/automations/ups.yaml @@ -7,7 +7,7 @@ to: OB DISCHRG condition: [ ] action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "UPS Alert" message: UPS started discharging @@ -21,7 +21,7 @@ to: OL CHRG condition: [ ] action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "UPS Alert" message: UPS is charging @@ -35,7 +35,7 @@ above: '200' condition: [ ] action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "UPS Alert" message: UPS power is back @@ -49,7 +49,7 @@ below: '100' condition: [ ] action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "UPS Alert" message: UPS battery is below 100%, estimated time on battery 25 min @@ -63,7 +63,7 @@ below: '50' condition: [ ] action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "UPS Alert" message: UPS battery is below 50%, estimated time on battery 12 min @@ -77,7 +77,7 @@ below: '10' condition: [ ] action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "UPS Alert" message: UPS battery is below 10%, estimated time on battery 2 min diff --git a/configuration/automations/vacuum.yaml b/configuration/automations/vacuum.yaml index 9080c62..a61f952 100644 --- a/configuration/automations/vacuum.yaml +++ b/configuration/automations/vacuum.yaml @@ -71,7 +71,7 @@ entity_id: sensor.valetudo_valetudos5_sensor_cleaning below: '60' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: Clean sensors @@ -84,7 +84,7 @@ below: '420' condition: action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Vacuum supply" message: "Main brush has less than 7h of lifetime buy a new one" @@ -106,7 +106,7 @@ entity_id: sensor.valetudo_valetudos5_main_brush below: '60' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: "Main brush has {{ states('sensor.valetudo_valetudos5_main_brush') }} minutes of lifetime change it" @@ -119,7 +119,7 @@ below: '420' condition: action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Vacuum supply" message: "Side brush has less than 7h of lifetime buy a new one" @@ -141,7 +141,7 @@ entity_id: sensor.valetudo_valetudos5_right_brush below: '60' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: "Side brush has {{ states('sensor.valetudo_valetudos5_right_brush') }} minutes of lifetime change it" @@ -154,7 +154,7 @@ below: '420' condition: action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: title: "Vacuum supply" message: "Filter has less than 7h of lifetime buy a new one" @@ -176,6 +176,6 @@ entity_id: sensor.valetudo_valetudos5_main_filter below: '60' action: - - service: notify.mobile_app_iphone_pg + - service: notify.mobile_app_iphone data: message: "Filter has {{ states('sensor.valetudo_valetudos5_main_filter') }} minutes of lifetime change it"