Code Monkey home page Code Monkey logo

Comments (7)

baylanger avatar baylanger commented on August 16, 2024

I did more tests.

I confirm :

  1. Sound files have to be imported within the iOS app.
  2. Name of the sound file given to the blueprint must include the extension.
  3. Both .caf and .wav files are supported.

Here's where things get tricky :

  1. If someone sets a "focus mode" that prevents notifications from Home Assistant app, for example "focus: Sleep" and not wearing an Apple Watch:
  • the optional sound doesn't play EVEN if "critical" is set to true.
  • With "critical" set to true, only a very short "critical" sound is played. That might not wake up someone sleeping hard.

If wearing an Apple Watch, the "critical" sound plays ONLY on the Apple Watch but more softer than on the iPhone.

  1. If the focus is set to allow notifications from Home Assistant app and not wearing an Apple Watch:
  • the optional sound plays
  • if "critical" is set to true, the critical sound also plays.

If wearing an Apple Watch, the "critical" sound plays on the Watch. Again, nothing plays on the iPhone at all.

from ha_blueprints.

baylanger avatar baylanger commented on August 16, 2024

fyi I installed the "Home Assistant" app on the Watch hoping it would play the optional sound but no luck.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on August 16, 2024

I agree that we should aim to have some detailed explanations of various features and troubleshooting guides now that this is a repository.

I think we can link to the companion docs directly to explain how to import sounds. You are right that they must be imported into the HA app, even system sounds. https://companion.home-assistant.io/docs/notifications/notification-sounds/

  • That might not wake up someone sleeping hard.

I noticed there is a volume option in the critical docs. https://companion.home-assistant.io/docs/notifications/critical-notifications/
Could you do a test with the notify service in ha and set volume to 1.0 and compare the sound. Is the critical volume default configurable in IOS settings (outside of HA)

There a few possible changes here after reading that critical page again.

  • Add a volume option for IOS critical notifications
  • Add guidance for sound settings (even if just links) within the blueprint
  • Change behaviour of android so that critical means it plays through the alarm stream (more aligned with IOS currently)
  • Add seperate options for android priority (currently it does other things based on critical setting)
  • Add guide/links for using android channels
  • if "critical" is set to true, the critical sound also plays.

Do you want both? Might have to get a consensus on that.

If wearing an Apple Watch, the "critical" sound plays on the Watch. Again, nothing plays on the iPhone at all.

Is that expected? I have no IOS experience.

fyi I installed the "Home Assistant" app on the Watch hoping it would play the optional sound but no luck.

I assume you would need to import the sound on the watch, but is that even possible?

from ha_blueprints.

SgtBatten avatar SgtBatten commented on August 16, 2024

possibly create a PR to update the README / docs

I have made a branch called doc_updates with the goal to slowly build out thorough explanations for each parameter.

I'll work out how to add you as a contributor to that branch if you are interested.

from ha_blueprints.

baylanger avatar baylanger commented on August 16, 2024

Yes if you can give me access that can work but I can't recall if you can give access to a single branch? If so, that works.

For the Apple Watch, in HA currently aside from changing scenes there's nothing else. I will look around. There's something I noticed earlier, I had my iPhone in my hand earlier looking at something and when I stepped out - the sound did play even if I had my Apple Watch. The "critical" notification made to both and the selected sound played on my iPhone. I'm not feeling so great this week, got worst today. Whenever possible I will definitely make more tests. I have a planned trip this weekend til Monday, will definitely get back next week.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on August 16, 2024

There's no pressure at all. Hope you feel better soon

from ha_blueprints.

SgtBatten avatar SgtBatten commented on August 16, 2024

I also realised there is a difference between the Stable and Beta versions which i'm yet to receive trusted feedback on.

In beta we have

                                push:
                                  sound: "{{sound}}"
                                  interruption-level: "{{ iif(critical, 'critical', 'active') }}"

But in stable it's indented differently

                                push:
                                  sound: "{{sound}}"
                                interruption-level: "{{ iif(critical, 'critical', 'active') }}"

It's possible both work, but it could also play a part in what plays on your devices during your tests.

from ha_blueprints.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.