Skip to content

Commit

Permalink
Merge pull request #1333 from imswel/main
Browse files Browse the repository at this point in the history
UI and documentation improvements for "custom_card_imswel_person"
  • Loading branch information
basbruss committed Jul 31, 2023
2 parents a7f31dc + 2350adf commit 89933f1
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 135 deletions.
39 changes: 32 additions & 7 deletions custom_cards/custom_card_imswel_person/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ This is a `custom-card` that improves the original person card (`card_person`) b
## Credits

Author: imswel - 2022
Version: 1.0.1
Version: 1.0.2

## Changelog

<details>
<summary>1.0.2</summary>
UI fix and improvement.
</details>
<details>
<summary>1.0.1</summary>
Breaking change: removed variable for zones, instead load all zones automatically.
Expand Down Expand Up @@ -52,9 +56,9 @@ This card needs the following to function correctly:
template: custom_card_imswel_person
variables:
ulm_card_imswel_person_entity: person.john
ulm_card_imswel_person_wifi_tracker: device_tracker.wifi_oneplus_6t
ulm_card_imswel_person_gps_tracker: device_tracker.oneplus_6t
ulm_card_imswel_person_findmy_script: script.find_my_oneplus_6t
ulm_card_imswel_person_wifi_tracker: device_tracker.my_phone_wifi
ulm_card_imswel_person_gps_tracker: device_tracker.my_phone
ulm_card_imswel_person_findmy_script: script.find_my_phone
ulm_card_imswel_person_use_entity_picture: true
```

Expand All @@ -75,19 +79,19 @@ This card needs the following to function correctly:
</tr>
<tr>
<td>ulm_card_imswel_person_wifi_tracker</td>
<td>device_tracker.wifi_oneplus_6t</td>
<td>device_tracker.my_phone_wifi</td>
<td>yes</td>
<td>A device_tracker entity of the person based on wifi</td>
</tr>
<tr>
<td>ulm_card_imswel_person_gps_tracker</td>
<td>device_tracker.oneplus_6t</td>
<td>device_tracker.my_phone</td>
<td>yes</td>
<td>A device_tracker entity of the person based on location</td>
</tr>
<tr>
<td>ulm_card_imswel_person_findmy_script</td>
<td>script.find_my_oneplus_6t</td>
<td>script.find_my_phone</td>
<td>yes</td>
<td>A script entity that make ring your phone</td>
</tr>
Expand All @@ -99,6 +103,27 @@ This card needs the following to function correctly:
</tr>
</table>

#### Phone finder script example

```yaml
find_my_phone:
sequence:
- service: notify.mobile_app_my_android
data:
message: command_volume_level
data:
media_stream: alarm_stream
command: 20
- service: notify.mobile_app_my_android
data:
message: Home Assistant is searching your phone !
data:
ttl: 0
priority: high
channel: alarm_stream
mode: single
```

??? note "Template Code"

```yaml title="custom_card_imswel_person.yaml"
Expand Down
Loading

0 comments on commit 89933f1

Please sign in to comment.