Home Assistant for iOS 2.0 Beta Testing

Woooooo! That fixed it. So just to be sure, when the fix has gone live (not beta), i can switch off the casa remote setting again?

Thanks for helping

Dear,
Under sensor.battey
There are 2 sensors available
Level
State.
How to get this both displayed differently on my HA?
Please guide,
Thanks in adv

Hi Kirpat,

If you wan’t to access those separately you should create a template sensor. Although the primary state of sensor.battery is state (as in Charging or Not Charging) it’s a bit confusing there. You can create a sensor for the Level (battery level) with a template sensor as follows:

# Grab iPhone Battery level
sensor:
  - platform: template
    sensors:
      iPhone_battery_level:
        unit_of_measurement: '%'
        value_template: "{{ states.sensor.battery.attributes.Level }}"

Standard disclaimer this will likely break in a following build where the sensor will become something like sensor.device_ID_battery.

Anyone know how to easily find the target string for sending a notification? On the iOS app it says that the “device ID” is the identifier used, but I don’t think it is, anymore, is it? It also doesn’t seem to be the name in .ios.conf either. Help!?
I’ve got it working for me, but I’ve just added my wife, and I can’t remember what series of steps I went through to get it working! Thanks

Are you using the current beta (40)? If so, it is the device ID set in iOS (Settings>General>About). If you’re on the current build you should also be using the notify.mobile_app_device_ID service.

1 Like

Thanks. Gotcha. So I need to physically have my wife’s phone to discover the device ID on iOS. Ta!
Hope we don’t have the SAME device ID?! I imagine changing one to avoid a dupe would cause all sorts of iTunes syncing woes…?

Drat. So, our device names ARE different in iPhone Settings > General > About.
Mine is iPhone6S and my wife’s is simply iPhone (the default?). However in my logs, I now note:

Found duplicate device name iPhone6S. 
1:12 PM components/mobile_app/notify.py (WARNING) - message first occured at 1:12 PM and shows up 2 times

Have a look in the develop tools services page. You should be able to find the right name in there.

1 Like

Also, the GPS accuracy is still faulty. Despite the fact I’ve set the home radius to 50m (home and work are quite close by each other), the iOS app still gives false positives where life360 does not. Just for info. I’m very grateful to @robbiet480 for his toils!

Thanks. Now they are there. My wife’s phone and my phone. And they ARE different. However I’m still getting bugged in the log about duplicate device names. I wonder why.

Possibly a leftover sensor/service from a previous beta. Hopefully, there’ll be a guide to remove the leftover devices.

1 Like

Thanks everyone for the great work going on. Sometimes the next step becomes an obstacle (and maybe I should stay away from the Beta. I am currently on 2.0 (35) and hesitate to move on to (40).

Moving from iOS to mobile app is a little bit daunting as a number of things are changing.It would be great if the information about mobile app could be expanded on the component page.

It would be great to understand how notifications, push and actionable notifications are set up with mobile app.

Does logging in to iOS companion work the same way if iOS is discarded?

Is there any reason to keep iOS after moving?

@folrewef The only reason to keep ios in your configuration after the move is:

  • you have devices using the 1.5.x version of the app
  • you want to use yaml to create/modify ios actionable notifications (which can be done via the app now)

In all other cases you won’t be needing the ios component anymore.

I also have a somewhat weird question @robbiet480, would it be possible to have some kind of sensor that triggers everytime the app gets opened? For example, I open the app and it will push a state update to HA. You might wonder why I ask this. Well, I was thinking of making my lovelace setup more dynamic (sorry I am a programming noob so forgive me if I say something stupid).
What I want to achieve is that whenever I open the app I will get some kind of a greeting card at the top saying something like, “No new messages today” or “All systems running”. But that it only shows me that card when I open the app. I use Thomas Loven’s state-switch card which makes it possible for me to show different cards depending on entity/user states.

Now I’d like to show a message when I open the app and have it change back after 3 seconds to show me the default weather card. I know it is probably not the right thread to ask, but since I am guessing that this won’t be a feature anyway I might as well ask.

Looking forward to the haptic feedback that will make my setup even more awesome. Great work Robbie!

I still haven’t figured how to do that. Is there a guide anywhere?

Thanks - I am starting to get it.

May I suggest to @robbiet480 that simple instructions are added to the top of this page.

So if I understand it correctly.

To move to mobile_app I do the following:

  1. Add mobile_app: to configurations.yaml
  2. Set up actionable notifications in the app in notification settings under “categories” and follow the same instructions as detailed for iOS.
  3. Check all notifications in my setup that go to notify.ios_xxxx and change them to notify.mobile_app_xxxx. (All service data attributes remain unchanged)
  4. Delete ios: from my configuration (as I plan to move all my devices to 2.0)

Does anything happen to the device trackers?

I’ve been running this beta version for a week now and the device trackers have stoped working. I get all location updates in the app, I see it sends updates in the apps log, but the location never changes in HA.

What could I have missed to configure? (it was working before)

I can’t get it working on my apple watch. I’ve added an action but it shows no actions on the watch.

And what does remaining sends mean? its 0 now.

what version of the watch app and HA are you on?
the remaining sends means how many times you can send info to the watch, which is some kind of Apple protection to avoid “spamming” the watch and draining its battery, but I understand @robbiet480 will remove it

What is the device_tracker entity you’re using? If you one the current beta (build 40) it should be device_tracker.UUID, where UUID is a long string of numbers and letters. Look for it in known_devices.yaml

I’ve got Ha 0.91.4 and watch app version 2.0.0 (36) build 39 and 40 don’t work. I get a 404 on logging in.

But if I look now in the watch app on the iphone, it keeps spinning installing the app.