Closed michal-krawczyk closed 8 months ago
automation.a_on_state
with input_boolean.on_state
. Its an error in the documentation i will fix it.The only problem is the icon. I changed --icon-size: 1.5em
to investigate what's going on. Also - how to get rid of the border? Also --border-width: 0;
but it's still showing... The rest of the code below. Thanks!
To get rid of the boarders set the theme for Home assistant (in profile) to mushroom shadow
, also set this theme in every view.
find phone script: Replace user with your name.
alias: 3- user find phone
sequence:
- service: notify.mobile_app_user
data:
message: command_ringer_mode
data:
command: normal
- service: notify.mobile_app_user
data:
message: command_volume_level
data:
media_stream: notification_stream
command: 10
- service: notify.mobile_app_user
data:
message: Finding phone
title: Home assistant
data:
ttl: 0
priority: high
channel: notification_stream
mode: single
I see, In my persons card im not using an icons for geo location to keep the same size for the card when swipng. but if you would like to use it (i would not LoL) here is the card updated:
- type: custom:mushroom-entity-card
card_mod:
style: |
ha-card {
--font-size: 0.2em;
--icon-size: 1.5em;
--border-width: 0;
--box-shadow: none;
--background: none;
--border: none;
--spacing: none;
--font-weight: normal;
}
entity: sensor.user_geo_1
icon_type: icon
icon: mdi:abacus
primary_info: ''
name: 'Possible Location:'
layout: vertical
fill_container: true
double_tap_action:
action: none
hold_action:
action: none
tap_action:
action: more-info
Thanks for this. I'm testing the script and something is not working. Alias seems not to be working...
alias: 3- user find phone
Where are you adding the script? You should do that from the UI, so create a new script and then in top right choose edit in yaml and replace everything with the code i provided (also replace user
with your own user name)
I did that and it's still not working. Claiming that it's unable to call service/script_name (service not found)
Just to confirm you added the script and saved it successfully. then when you run it, it gives this error?
Do have an iPhone? Because i don't think this script will work for iPhones as it needs different configurations.
It's an Android phone. I managed to figure out what was wrong with calling script. In person card it should refer to script ID service: script.1697660452393
like so.
The only thing that's not working is when I test the script manually command_ringer_mode
isn't working (although it says it was successful). Code below.
- service: notify.mobile_app_mike_s_s23u
data:
message: command_ringer_mode
data:
command: normal
Sorry, my bad, it does work. I thought it should like play some signal... Thanks for your assistance.
Nice you figured it out,
To set a tune for finding the phone: from HA app go to settings > companion app > Notification channel > add a tune for the Notification_stream
Hi
On person card in the second view:
Thanks