Comments (11)
Hi, can you please also trying enabling debug mode on the imouapi library as well as described on https://github.com/user2684/imou_life#debugging?
We should see a bit more details regarding the error in this way. Thanks!
from imou_life.
This one?
`Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/imou_life/camera.py:106
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 3 February 2023 at 09:51:39 (2 occurrences)
Last logged: 3 February 2023 at 09:51:45
[140345299114240] Error handling message: Unknown error (unknown_error) from 192.168.1.117 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 800, in ws_camera_stream
url = await _async_stream_endpoint_url(hass, camera, fmt=msg["format"])
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 957, in _async_stream_endpoint_url
stream = await camera.async_create_stream()
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 518, in async_create_stream
source = await self.stream_source()
File "/config/custom_components/imou_life/camera.py", line 106, in stream_source
return await self.sensor_instance.async_get_stream_url()
File "/usr/local/lib/python3.10/site-packages/imouapi/device_entity.py", line 656, in async_get_stream_url
raise APIError("unable to get live streaming")
imouapi.exceptions.APIError: unable to get live streaming
`
from imou_life.
This is just the last error message, I wanted to have a look at the previous debug output from the library. If you can ensure you have imouapi: debug to your logger as well you should see a good number of debug messages related imouapi as well which should tell step by step what it is doing and if there is any previous step which is returning weird outputs. Thanks!
from imou_life.
config_entry-imou_life-3ee42333dbef9d5d4a08140c2c9cab25.json.txt
home-assistant_imou_life_2023-02-04T20-53-05.031Z.log
Hope those help, sorry its the first time I'm posting debug logs from HA. I've enabled debugging on the integration (and then disabling it downloaded the second file). The first file is the integration Diagnostics.
from imou_life.
Just FIY, I can get a feed using for instance VLC or ONVIF integration.
from imou_life.
Thank you. Unfortunately even the debug log is telling much but this is my mistake since I did not make the error message verbose enough. I'll fix it in the next release (not the bug itself but the error message so for me to understand where the problem is).
Great that it is working with VLC and ONVIF as a workaround. Those are unrelated since relies on a direct connection to the camera while the HA integration is getting the stream from the cloud :-) I'll let you know as the new version is available for downloading
from imou_life.
Hi, try updating to v1.0.13 just released and repeat the steps above, hopefully you should see a more verbose error message. Thanks!
from imou_life.
Thanks, here you go.
home-assistant_imou_life_2023-02-23T22-48-34.089Z.log
config_entry-imou_life-c43540936ae88c2eec563d345799f14d.json.txt
HA log:
`Logger: homeassistant.components.camera
Source: custom_components/imou_life/camera.py:106
Integration: Camera (documentation, issues)
First occurred: 23:40:15 (2 occurrences)
Last logged: 23:40:15
Error adding entities for domain camera with platform imou_life
Error while setting up imou_life platform for camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 442, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 717, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 812, in add_to_platform_finish
await self.async_internal_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 665, in async_internal_added_to_hass
await self.async_refresh_providers()
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 676, in async_refresh_providers
self._rtsp_to_webrtc = await self._async_use_rtsp_to_webrtc()
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 686, in _async_use_rtsp_to_webrtc
stream_source = await self.stream_source()
File "/config/custom_components/imou_life/camera.py", line 106, in stream_source
return await self.sensor_instance.async_get_stream_url()
File "/usr/local/lib/python3.10/site-packages/imouapi/device_entity.py", line 670, in async_get_stream_url
raise APIError(f"unable to get live streaming, url not found in {existing_stream}")
imouapi.exceptions.APIError: unable to get live streaming, url not found in {'url': None, 'token': None}
`
from imou_life.
Thanks. Unfortunately it doesn't help progressing :-/ We ask for a streaming handle to the Imou server and we get nothing back but no error serverside. Do you get this consistently or is it happening randomly ? Thanks
from imou_life.
I didn't work even once. I'll try again to rule out stuff like the router, and maybe HA instance, and regenerate the api keys. I'll report back.
from imou_life.
Thanks. I've also added #53 to help with this in the long term since as of now I don't have a list with all the models for which the integration works so not sure if other users had better luck with your camera :-/
from imou_life.
Related Issues (20)
- Automation triggering sensor refresh does not take into account msgType HOT 1
- Motion sensor not added HOT 6
- Unable perform the logon to discover the devices HOT 6
- Real Time Alarm update HOT 2
- Malformed or unexpected API response when adding light bulb HOT 2
- Errors on a VERSA cam (IPC-C22FP-C) of two installed HOT 1
- Support additional Imou device: light bulbs
- Feedbacks on supported models HOT 16
- Bullet & Cruiser - Mention "IDLE" HOT 2
- Cell Go support? HOT 42
- Imou Cloud Message Push Service not triggering the callback url HOT 1
- Ability to also get a local RTSP stream from the integration and configure via Home Assistant HOT 3
- Adding support for the new Imour Ranger RC HOT 9
- Motion Sensor Alarm status Unknown HOT 2
- Motion Detection switch not working HOT 8
- Cannot activate siren in Imou Bullet IPC-G26E HOT 3
- Licenses Exceed HOT 4
- Find a way to reverse engineer Imou Life API calls HOT 7
- Error in log when you open camera streem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imou_life.