From a5f93a2aa86a3088d0c8ce3e8927971dbdeb04ad Mon Sep 17 00:00:00 2001 From: xnemesis Date: Thu, 29 Aug 2024 21:22:07 +0000 Subject: [PATCH 1/4] Initial commit From 34ec374a0adb234eda9aee934638e35abb8d3995 Mon Sep 17 00:00:00 2001 From: xnemesis Date: Thu, 29 Aug 2024 21:22:08 +0000 Subject: [PATCH 2/4] Pending changes exported from your codespace --- vacuum.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/vacuum.yaml b/vacuum.yaml index f0f35c6..f43c788 100644 --- a/vacuum.yaml +++ b/vacuum.yaml @@ -515,9 +515,11 @@ automation: entity_id: sensor.vacuum state: 'Train' action: - - service: notify.vacuumfile - data_template: - message: "{{ states('sensor.vacuum_location') }}" + - target: + entity_id: notify.vacuumfile + data: + message: "{{ states('sensor.vacuum_location') }}" + action: notify.send_message # Initialize Blank Vacuum Log File - alias: Vacuum Clean Log @@ -552,9 +554,12 @@ automation: from: 'Pending' to: 'Ready' action: - - service: notify.vacuumfile - data_template: + action: + - target: + entity_id: notify.vacuumfile + data: message: "Finished" + action: notify.send_message # Update Vacuum Log File with Stuck Status - alias: Vacuum Notify on Stuck Status @@ -563,9 +568,11 @@ automation: platform: template value_template: "{{ is_state_attr('sensor.vacuum', 'phase', 'Stuck') }}" action: - - service: notify.vacuumfile - data_template: + - target: + entity_id: notify.vacuumfile + data: message: "Stuck" + action: notify.send_message # DELETE BELOW SECTION IF YOU DONT WANT NOTIFICATIONS - delay: 5 - service: !secret vacuum_notify From 613447c1c921735fa0ecf628b74405726e872175 Mon Sep 17 00:00:00 2001 From: xnemesis Date: Fri, 6 Sep 2024 20:31:36 +1200 Subject: [PATCH 3/4] Update to fix Generic Camera error. Updated readme to reflect change to generic camera handling in HA. Update README.md Updated to include generic camera instructions for mop roomba devices. Update mop.yaml Updated to remove outdated generic camera config. Update vacuum.yaml Updated to remove outdated generic camera config. --- README.md | 8 +++++++- mop.yaml | 11 ----------- vacuum.yaml | 11 ----------- 3 files changed, 7 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index da276f6..6065ec5 100644 --- a/README.md +++ b/README.md @@ -227,8 +227,14 @@ recorder: - sensor.rest980 - camera.roomba ``` +### Step 13: Create Generic Camera Integration -### Step 13: Enjoy! +Create a new integration of 'Generic Camera' with the name 'Roomba' (or "Braava' if you are using mop.yaml). Set the 'Still Image URL' to the below and save the integration. +``` +{{ states('input_text.vacuum_map') }} +``` + +### Step 14: Enjoy! ## Support diff --git a/mop.yaml b/mop.yaml index 2560a23..706c001 100644 --- a/mop.yaml +++ b/mop.yaml @@ -698,17 +698,6 @@ notify: platform: file filename: !secret mop_log -################################### -# Camera -################################### - -camera: - - platform: generic - still_image_url: >- - {{ states('input_text.mop_map') }} - content_type: image/png - name: Braava - ################################### # Shell Command ################################### diff --git a/vacuum.yaml b/vacuum.yaml index f43c788..cea3942 100644 --- a/vacuum.yaml +++ b/vacuum.yaml @@ -794,17 +794,6 @@ notify: platform: file filename: !secret vacuum_log -################################### -# Camera -################################### - -camera: - - platform: generic - still_image_url: >- - {{ states('input_text.vacuum_map') }} - content_type: image/png - name: Roomba - ################################### # Shell Command ################################### From d0ccfd9dc254f5ea03649bbe5b52cc6b6b74a79c Mon Sep 17 00:00:00 2001 From: xnemesis Date: Wed, 23 Oct 2024 09:55:10 +1300 Subject: [PATCH 4/4] Update vacuum.yaml Co-authored-by: Alfonso Arbona Gimeno --- vacuum.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vacuum.yaml b/vacuum.yaml index cea3942..a159ad5 100644 --- a/vacuum.yaml +++ b/vacuum.yaml @@ -554,8 +554,7 @@ automation: from: 'Pending' to: 'Ready' action: - action: - - target: + - target: entity_id: notify.vacuumfile data: message: "Finished"