SgtBatten / HA_blueprints

Somewhere to store automation blueprints
210 stars 80 forks source link

[Bug]: Doesn't use new home assistant icon #148

Closed muddro1 closed 8 months ago

muddro1 commented 10 months ago

Description

Very minor, but for some reason the default home assistant icon the blueprint uses is the old style. I have no idea why it's pulling out the old one instead of the new one. Have no issues with other phone notifications.

Version

12.0.3

Automation Config

alias: "1. Camera: Front Door Notification"
description: ""
use_blueprint:
  path: SgtBatten/Beta.yaml
  input:
    tv_transparency: 0%
    camera: camera.front_door_bell
    base_url: https://xxxxxxxx
    critical: "false"
    alert_once: true
    attachment: snapshot
    channel: Front Door
    zone_filter: false
    url_1: >-
      {{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/{{camera}}/clip.mp4
    tv_size: large
    tv_position: center
    color: red
    ios_live_view: false
    notify_group: both_phones
    button_2: View Stream
    url_2: >-
      {{base_url}}/api/camera_proxy_stream/camera.{{trigger.payload_json['after']['camera']
      | lower | replace('-','_')}}?token={{state_attr( 'camera.' ~ camera,
      'access_token')}}
    debug: true
    sound: none
    notify_device: f9045f28de5776f3a09a8b982b59141f
    video: >-
      {{base_url}}/api/frigate{{client_id}}/notifications/{{id}}/{{camera}}/clip.mp4
    update_thumbnail: true
    android_auto: true
    url_3: custom-{{ camera }}
    button_3: Unlock the Door
    custom_action_manual:
      - service: lock.unlock
        metadata: {}
        data: {}
        target:
          entity_id: lock.front_door_lock

Frigate Config

No response

Any other relevant information

No response

chelming commented 8 months ago

this is a home assistant bug. if you set the icon to mid:home-assistant it will use the old icon. Screenshot_20240307-055416

chelming commented 8 months ago

https://github.com/home-assistant/android/issues/4252

chelming commented 8 months ago

https://github.com/home-assistant/android/issues/4252#issuecomment-1983544906

is there a way to have there be no icon instead of a default?

chelming commented 8 months ago

submitted a PR. in the meantime, you can add a non-existing icon to have it fall back to the app icon. I changed mine all to mdi:frigate since it doesn't exist.