iPhone SSID

Hi All - I have installed the HA app on my iPhone and if I go to Settings and look at the iPhone device I can see one of the sensors is SSID and this contains the name of the WIFI network I am connected to.

How can I make use of this in an automation? I would like to have trigger that when my iPhone connects to my WIFI network, it does something, but I cannot seem to find the SSID entity in the triggers.

I would like to try to see if this is helps improve the accuracy of detecting when I actually get home. Currently, when I walk around my neighborhood there are several consistent spots where something happens and HA thinks I have entered my Home zone when I am clearly out - then a few seconds later it will think I left again. This in/out messes up the home state.

1 Like

Dont use a device trigger. Use a state trigger.

trigger:
  - platform: state
    entity_id: sensor.your_phone_here_ssid
    to: "your_ssid_here"

Note that the SSID name will be case sensitive (capital and lower case letters).

2 Likes

Thanks Tom for the tip - Iā€™ll give this a try when I can get back to my HA server.
Rob

Tom - Hallelujah that works! MUCH APPRECIATED!!!

1 Like

Well I try doing the sameā€¦ But seems canā€™t use the same serviceā€¦

Here I have the code on:

alias: saĆ­ de casa
description: ā€˜ā€™
trigger:

  • platform: state
    entity_id:
    • sensor.iphone_de_jose_rui_sa_ssid
      to: Sarpe (this is SSID and I know its case sensitive)
      condition:
      action:
  • service: notify.mobile_app_iphone_de_jose_rui_sa
    metadata: {}
    data:
    message: saĆ­ de casa
    mode: single

I want to trigger my gate, when I get out from home to the garage. (loose wifi connection) (by now I just have notification trigger for testing)
Also will need to check (add) other reed switch to confirm Iā€™m really going outā€¦ and add time to check itā€¦

Other idea I have (but too complicated to me) is to use my Reolink camera with car detection to trigger gate when car movesā€¦ (need to ā€œdetectā€ just one garage - from multiple)