I am trying to send a video stream in a notification but no video ever loads - just a spinner. Any thoughts on how to debug this further?
I’ve had the same issue for a while… I’ve attached a screenshot
Edit: I’ve noticed that it does work but only when I’m on the same network as my home assistant server. It doesn’t work when I’m on 3G/4G or another wifi network.
exactly the same thing I’m seeing.
Your phone needs to be able to access the server from outside your network for this to work when outside of your network. The live stream isn’t sent through an external server or anything. Ensure that the URL you put into Settings is externally accessible.
@robbiet480 FWIW I am actually on my home lan and just sent a test message/video to myself and no video.
My URL is not externally accessible, but if I’m on my lan (or vpn?), that shouldn’t matter?
Having a similar experience. I’m passing through visible working streams streams via the webpage, and the iOS app.
Environment Info
- HomeAssistant Install Version: 0.43
- iOS App Version: 1.0.3
- iOS Version: 10.3.1
- Lastest Raspbian as of 4/14/17
- Port Forwarded + Let’s Encrypt + DuckDNS
- Running on a Raspberry Pi 3
Tried…
- Very stripped down configuration, just iOS, cameras, few automations.
- Passes config checker
- A Weather image file camera (camera.generic Still Image)
- A generic local IP camera stream (camera.mjpeg)
- Demo Camera (camera.demo)
No push notifications show more than the spinning placeholder like the above screenshot.
Weird!
Do you have any advanced notifications working? This still works just fine on mine.
I don’t. Hmmmmm…
The map example also will not work for me. I can get standard Automation triggered push notifications. Maybe I’m missing something simple here.
try the update push settings in the ios app under notification settings.
No love. I do see it interact after updating the push settings. Here’s the Automation I’m triggering from the webUI
automation:
- alias: testNotify_gif_0
trigger:
platform: time
after: '23:40:00'
action:
service: notify.iOS_Jon_iPhone
data:
message: "testing gif push...."
data:
attachment:
url: https://media.giphy.com/media/LXONhtCmN32YU/giphy.gif
content-type: gif
hide-thumbnail: false
Here is the debug level log out of HomeAssistant, I left my real phone name in there, both the Device ID, and the Hostname.
17-04-22 22:20:45 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=entity_id=automation.testNotify_gif_0, service_call_id=1978177008-7, domain=automation, service=trigger>
17-04-22 22:20:45 INFO (MainThread) [homeassistant.components.automation] Executing testNotify_GIF_0
17-04-22 22:20:45 INFO (MainThread) [homeassistant.core] Bus:Handling <Event logbook_entry[L]: name=testNotify_GIF_0, entity_id=automation.testNotify_gif_0, domain=automation, message=has been triggered>
17-04-22 22:20:45 INFO (MainThread) [homeassistant.helpers.script] Script testNotify_GIF_0: Running script
17-04-22 22:20:45 INFO (MainThread) [homeassistant.helpers.script] Script testNotify_GIF_0: Executing step call service
17-04-22 22:20:45 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_data=data=attachment=url=https://media.giphy.com/media/LXONhtCmN32YU/giphy.gif, content-type=gif, hide-thumbnail=False, message=testing gif push...., service_call_id=1978177008-8, domain=notify, service=ios_jon_iphone>
17-04-22 22:20:46 INFO (Thread-1) [homeassistant.components.notify.ios] iOS push notification rate limits for Jon_iPhone: 24 sent, 150 allowed, 0 errors, resets in 1:39:13
17-04-22 22:20:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1978177008-8>
17-04-22 22:20:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=None @ 2017-04-22T17:19:16.110410-05:00>, new_state=<state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=2017-04-22T17:20:46.352337-05:00 @ 2017-04-22T17:19:16.110410-05:00>, entity_id=automation.testNotify_gif_0>
17-04-22 22:20:46 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1847365232: Sending {'event': {'time_fired': datetime.datetime(2017, 4, 22, 22, 20, 46, 352677, tzinfo=<UTC>), 'origin': 'LOCAL', 'data': {'old_state': <state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=None @ 2017-04-22T17:19:16.110410-05:00>, 'new_state': <state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=2017-04-22T17:20:46.352337-05:00 @ 2017-04-22T17:19:16.110410-05:00>, 'entity_id': 'automation.testNotify_gif_0'}, 'event_type': 'state_changed'}, 'type': 'event', 'id': 2}
17-04-22 22:20:46 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1983579728: Sending {'event': {'time_fired': datetime.datetime(2017, 4, 22, 22, 20, 46, 352677, tzinfo=<UTC>), 'origin': 'LOCAL', 'data': {'old_state': <state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=None @ 2017-04-22T17:19:16.110410-05:00>, 'new_state': <state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=2017-04-22T17:20:46.352337-05:00 @ 2017-04-22T17:19:16.110410-05:00>, 'entity_id': 'automation.testNotify_gif_0'}, 'event_type': 'state_changed'}, 'type': 'event', 'id': 2}
17-04-22 22:20:46 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1847382512: Sending {'event': {'time_fired': datetime.datetime(2017, 4, 22, 22, 20, 46, 352677, tzinfo=<UTC>), 'origin': 'LOCAL', 'data': {'old_state': <state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=None @ 2017-04-22T17:19:16.110410-05:00>, 'new_state': <state automation.testNotify_gif_0=on; friendly_name=testNotify_GIF_0, last_triggered=2017-04-22T17:20:46.352337-05:00 @ 2017-04-22T17:19:16.110410-05:00>, 'entity_id': 'automation.testNotify_gif_0'}, 'event_type': 'state_changed'}, 'type': 'event', 'id': 2}
17-04-22 22:20:46 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=1978177008-7>
17-04-22 22:20:46 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1847365232: Sending {'result': None, 'success': True, 'type': 'result', 'id': 13}
17-04-22 22:20:54 INFO (MainThread) [homeassistant.components.http] Serving /api/camera_proxy/camera.demo_camera to <LAN SUBNET GATEWAY IP> (auth: False)
17-04-22 22:21:02 INFO (MainThread) [homeassistant.components.http] Serving /api/camera_proxy/camera.demo_camera to <PHONE EXTERNAL IP> (auth: False)
17-04-22 22:21:02 INFO (MainThread) [homeassistant.components.http] Serving /api/events/ios.notification_action_fired to <PHONE EXTERNAL IP> (auth: True)
17-04-22 22:21:02 INFO (MainThread) [homeassistant.core] Bus:Handling <Event ios.notification_action_fired[R]: sourceDeviceName=JDW iPhone , sourceDevicePermanentID=<PERM ID REDACTED>, actionName=com.apple.UNNotificationDefaultActionIdentifier>
I did redact my sourceDevicePermanentID and my IP addresses. I was not on my local WiFi during this test, results differ little.
Thanks for putting more eyes on this, I feel like I’m doing something silly.
What kind of stream is it? Currently the camera notification only supports MJPEG. If you are using an Amcrest camera I just heard from a user who said that newer Amcrest firmwares have issues with high quality streaming on newer firmware. More info at the bottom of this page here
@rabittn pointed something pretty basic out that I hadn’t realized. I don’t have any “Advanced” notifications properly working (Maps and GIF’s don’t work either).
The cam streams tested are the demo camera (like in the example), and a old Foscam (like one that won’t even work with the Foscam platform, 640x4804lyfe!). Here’s what that chunk of config looks like
camera:
- platform: demo
camera 2:
- platform: mjpeg
mjpeg_url: http://localSubnet:PORT/videostream.cgi?user=USERNAME&pwd=PASSWORD&resolution=64&rate=0
name: Cam1
automation:
- alias: testNotify_gif_0
trigger:
platform: time
after: '23:40:00'
action:
service: notify.iOS_Jon_iPhone
data:
message: "testing gif push...."
data:
attachment:
url: https://media.giphy.com/media/LXONhtCmN32YU/giphy.gif
content-type: gif
hide-thumbnail: false
automation 1:
- alias: testNotify_map_0
trigger:
platform: time
after: '23:40:00'
action:
service: notify.iOS_Jon_iPhone
data:
message: "Something happened at home!"
push:
category: map
action_data:
latitude: 40.785091
longitude: -73.968285
automation 2:
- alias: testNotify_gif_1
trigger:
platform: time
after: '23:40:00'
action:
service: notify.ios_Jon_iPhone
data:
message: "Another gif test"
data:
attachment:
url: https://media.giphy.com/media/LXONhtCmN32YU/giphy.gif
content-type: gif
hide-thumbnail: false
automation 3:
- alias: testNotify_cam_0
trigger:
platform: time
after: '23:40:00'
action:
service: notify.ios_Jon_iPhone
data:
message: demo cam
data:
push:
category: camera
entity_id: camera.Demo
automation 4:
- alias: testNotify_cam_1
trigger:
platform: time
after: '23:40:00'
action:
service: notify.ios_Jon_iPhone
data:
message: mjpeg test
data:
push:
category: camera
entity_id: camera.Cam1
automation 5:
- alias: testNotify_map_1
trigger:
platform: time
after: '23:40:00'
action:
service: notify.ios_Jon_iPhone
data:
push:
category: map
action_data:
latitude: 40.785091
longitude: -73.968285
Crazy suggestion, but restart your phone. The extensions most likely didn’t properly register in the notification system on your device. Restarting it will cause a re-register.
If you’re still having trouble please join me on Gitter for some real time debugging. I can watch the server logs for you to ensure everything is correct.
sigh I’ll restart. Man…I hope that’s not it
It’s fixed it for at least 3 other people with problems similar to yours thus far.
Does this work on all Iphones with ios 10? Cause I just tried this automation and all i get is Something happened at home! on the screen:
- alias: testNotify
trigger:
platform: state
entity_id: input_boolean.door_timer
from: 'off'
to: 'on'
action:
service: notify.ios_daves
data:
message: Something happened at home!
data:
push:
category: map
action_data:
latitude: 40.785091
longitude: -73.968285
When i click view or slide to view it just opens the ios app
Just put quotes around the latitude and longitude values like this:
- alias: testNotify
trigger:
platform: state
entity_id: input_boolean.door_timer
from: 'off'
to: 'on'
action:
service: notify.ios_daves
data:
message: Something happened at home!
data:
push:
category: map
action_data:
latitude: "40.785091"
longitude: "-73.968285"
Ok I will try. Just waiting for HA to restart after the change. I copied that automation from the docs.
Yep, fixing it right this second.
Still the same. No map shows up