Have you tried this in the beta? Might just be a good ole bug
I have not tried the beta yet, that is a possibility. I just dont know exactly how long this has been going on. I discovered about a week ago, but it was from a push notification that I dont use very often, so it could have been going on for a while longer. That is definitely a possibility about it being a bug though. I’ll check it out
I have an iPhone 6 because I’m delaying the ‘removal of a headphone jack’. I can try an actionable notification and see if it works. Do you have example service handy that I can just copy/paste?
That would be great.
Here’s my actual example
- alias: Actionable Open Garage Door When Tracy gets Home Test
trigger:
- platform: state
entity_id:
- switch.stairwell_light
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
- condition: state
entity_id: input_boolean.open_garage_for_tracy
state: 'off'
action:
- service: notify.ios_tracys_iphone
data:
message: "Looks like you're Shopping. Do you want the garage to open when you get home?"
data:
push:
category: "shopping_alert"
- alias: iOS Actionable Notification to open Garage when Tracy Gets Home
trigger:
- platform: event
event_type: ios.notification_action_fired
event_data:
actionName: OPEN_GARAGE_WHEN_I_GET_HOME
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: input_boolean.turn_on
entity_id: input_boolean.open_garage_for_tracy
and the push
ios:
push:
categories:
- name: Shopping Alert
identifier: 'shopping_alert'
actions:
- identifier: 'CANCEL_SHOPPING_ALERT'
title: 'No'
- identifier: 'OPEN_GARAGE_WHEN_I_GET_HOME'
title: 'Yes'
All I’m looking to do is turn on the input_boolean, of course it never does because of the failed authentication. Thanks for the help
I am beginning to think this is a bug or breaking change, gotta dig deeper. Today my phone is unable to push it’s location to my HA Server. Getting the error “Failed to send current location to server. The error was Response status code was unacceptable: 401”
I did do a lot of signing in/out on both my phone and my wifes yesterday, but not much more than that. Her location updated today and mine did not. Just weird
I’m beginning to think that this might have to do with the auth provider changes in 101? Basically now I’m having the same issue as my other iphone since I cleared some bearer tokens, etc from my phone while troubleshooting.
Maybe I have a configuration that is off that I did not realize?
homeassistant:
auth_providers:
- type: homeassistant
customize: !include customize.yaml
packages: !include_dir_named packages
whitelist_external_dirs:
- '/tmp'
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
frontend:
themes: !include_dir_merge_named themes/
extra_html_url:
- /local/hass-bha-icons.html
javascript_version: latest
http:
ssl_certificate: !secret ssl_certificate_path
ssl_key: !secret ssl_certificate_key_path
base_url: !secret base_ha_url
api:
This is from my configuration.yaml, does this all look generally correct?
I guess what I dont fully understand is that I am able to sign into the app, and control my lights, switches, etc. But I cannot “send” stuff back to HA, which is what makes me think it is an API issue?
Update: I enabled Legacy auth
auth_providers:
- type: homeassistant
- type: legacy_api_password
api_password: !secret http_password
then in my iOS app, Selected Use Legacy Auth, and my app now seems to be working. I then unchecked use Legacy auth in the app, and it’s still working. I’ll check my wifes phone tonight, and also disable again in config.yaml,and see if it still is working