Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE REQUEST: Possible to add "find my" alerts? #392

Open
buds opened this issue Jan 9, 2025 · 2 comments
Open

FEATURE REQUEST: Possible to add "find my" alerts? #392

buds opened this issue Jan 9, 2025 · 2 comments

Comments

@buds
Copy link

buds commented Jan 9, 2025

This intergration is hands down better than the core version but sadly lacks the ability to send the "find my alerts" that core can.
These are great for alerting using HA integrations. eg Motion detected at night then send find my alert = alarm system.
Any reason icloud3 doesn't have this feature?
I could totally ditch the core version if icloud3 could do these too.

@buds buds changed the title Possible to add "find my" alerts? FEATURE REQUEST: Possible to add "find my" alerts? Jan 9, 2025
@gcobb321
Copy link
Owner

I do not see iCloud3 supporting notifying the devices when a non iClou3 event occurs. It is outside the scope of iCloud3's purpose. Additionally, the Mobile App already supports a notify service that does that.

iCloud3 does support sending a "Find my Phone" alert from the Event Log > Actions drop down list. Other alert messages might be supported by the Mobile App using the many additional sensors it supports.

Here is an example of how I use the Mobile App has a notify service call to send a message that I am arriving home in about 5-minutes.

This sends the message:

alias: Gary - Send Message
sequence:
  - data_template:
      title: "{{ title }}"
      message: "{{ message }}"
    action: notify.mobile_app_gary_iphone_app
mode: single
icon: mdi:message-alert-outline

This triggers the message. See the notify scrip is in the Action item.

alias: Gary - 5-min Away (msg --> Gary)
description: Gary is 5-min from Home
triggers:
  - entity_id:
      - sensor.gary_iphone_travel_time
    below: 5
    trigger: numeric_state
conditions:
  - condition: state
    entity_id: sensor.gary_iphone_dir_of_travel
    state: Towards
  - condition: state
    entity_id: device_tracker.gary_iphone
    state: home
actions:
  - data_template:
      title: Gary - Close to Home Alert
      message: >-
        Est Arrival: {{  states.sensor.gary_iphone_arrival_time.state }},   {{
        states.sensor.gary_iphone_home_distance.state }}mi Away
    action: script.notify_gary_iphone
mode: single

Hope this helps.

@buds
Copy link
Author

buds commented Jan 10, 2025

I don't use the HA app on my phone but it looks like I can leverage the icloud3 find my alert feature in an automation after all.

(OLD) Core icloud
action:

  • action: icloud.display_message
    metadata: {}
    data:
    account: [email protected]
    device_name: an-iPhone
    message: "ALERT: MOTION DETECTED AT HOME"
    sound: true

(NEW) iCloud3
action:

  • action: icloud3.find_iphone_alert
    metadata: {}
    data:
    device_name: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

As you can see the core icloud dipslay_message action had the option to send a message so I'd know instantly which automation had been triggered which isn't an option with the icloud3 alert but I suppose I could just send an email from the automation so when the automation is triggered I just check my email to see what's happened.

Thanks for the great intergration and all your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants