From afd81625ded693c650b45b6c4524a38d6343d406 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 17 Oct 2022 20:51: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 b845458..ca8ea5a 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 + - service: notify.mobile_app_iphone_pg data: message: 3D printer has finished diff --git a/configuration/automations/alarm-door-relock.yaml b/configuration/automations/alarm-door-relock.yaml index 63c1e4d..a192f9a 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 b0bdd95..7b07767 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 + - service: notify.mobile_app_iphone_pg data: title: "Someone is near home" message: > diff --git a/configuration/automations/camera.yaml b/configuration/automations/camera.yaml index 938ae69..3c03b2c 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 + - service: notify.mobile_app_iphone_pg data: message: Motion Detected in Kitchen! data: @@ -35,7 +35,7 @@ from: 'off' to: 'on' action: - - service: notify.mobile_app_iphone + - service: notify.mobile_app_iphone_pg data: message: Motion Detected in Hallway! data: diff --git a/configuration/automations/front-door-doorbell.yaml b/configuration/automations/front-door-doorbell.yaml index dfed3a3..67353f0 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 + - service: notify.mobile_app_iphone_pg data: message: Doorbell data: diff --git a/configuration/automations/front-door.yaml b/configuration/automations/front-door.yaml index 56bea08..79588ba 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg data: message: Someone knock data: diff --git a/configuration/automations/info-battery.yaml b/configuration/automations/info-battery.yaml index bfd994d..f3e4e82 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 + - service: notify.mobile_app_iphone_pg data: title: "Low battery" message: > diff --git a/configuration/automations/info-leak.yaml b/configuration/automations/info-leak.yaml index 9c75f6d..a4b2977 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 + - service: notify.mobile_app_iphone_pg data: title: "Leak detection" message: > diff --git a/configuration/automations/info-plants.yaml b/configuration/automations/info-plants.yaml index 4009ee5..672143a 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 + - service: notify.mobile_app_iphone_pg data: title: Water plants message: > diff --git a/configuration/automations/info-slow-link.yaml b/configuration/automations/info-slow-link.yaml index 7463a78..9053d53 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 265c9b4..cdede26 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 + - service: notify.mobile_app_iphone_pg data: title: "Device unavailable" message: > diff --git a/configuration/automations/presence.yaml b/configuration/automations/presence.yaml index a35939c..2cc7f4d 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 + - service: notify.mobile_app_iphone_pg data: message: Arrive home data: @@ -22,7 +22,7 @@ entity_id: person.przemek from: home action: - - service: notify.mobile_app_iphone + - service: notify.mobile_app_iphone_pg data: message: You left home data: diff --git a/configuration/automations/test-presence.yaml b/configuration/automations/test-presence.yaml index f07d174..f11d396 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg data: message: Apple Watch left home diff --git a/configuration/automations/ups.yaml b/configuration/automations/ups.yaml index b0d8135..0c7e2ad 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 + - service: notify.mobile_app_iphone_pg data: title: "UPS Alert" message: UPS started discharging @@ -21,7 +21,7 @@ to: OL CHRG condition: [ ] action: - - service: notify.mobile_app_iphone + - service: notify.mobile_app_iphone_pg data: title: "UPS Alert" message: UPS is charging @@ -35,7 +35,7 @@ above: '200' condition: [ ] action: - - service: notify.mobile_app_iphone + - service: notify.mobile_app_iphone_pg data: title: "UPS Alert" message: UPS power is back @@ -49,7 +49,7 @@ below: '100' condition: [ ] action: - - service: notify.mobile_app_iphone + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 a61f952..9080c62 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 + - service: notify.mobile_app_iphone_pg data: message: Clean sensors @@ -84,7 +84,7 @@ below: '420' condition: action: - - service: notify.mobile_app_iphone + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg 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 + - service: notify.mobile_app_iphone_pg data: message: "Filter has {{ states('sensor.valetudo_valetudos5_main_filter') }} minutes of lifetime change it"