-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera feed not detected after setup. #10
Comments
yes, i am working on it, let's follow from here, i will publish an update tonight in EU time :) |
ops, let's reopen it to track battery and WIFI sensors |
Sure thing. Thank you, will keep an eye on this issue. |
Just installed it today with the custom integration. Two cameras were detected and one doorbell. All of them have various sensors, etc. None of them show as having an entity ID as camera.XXX BTW...excellent progress! Happy that I don't need to install a Docker. |
Same here; was happy to see that my 2k Floodlight cam was detected along with my cams, but no camera entities for any of them. Still though; following the directions given, the install went great and the progress is amazing. Thanks for the work! Hoping this will replace ioBroker for my setup! |
I tried installing everything fresh again after your recent commit and followed the instruction there. The problem with the camera not being detected is still there along with wifi_rssi sensor being unavailable and the doorbell_battery sensor unavailable as well. (I have a wired version - T8200) Here are my log files.
|
Adding some log data to this. Eufy 2k indoor cameras
No stream under any circumstances, including when start stream service command is issued. |
can you confirm that you have enabled rtsp stream from camera? i believe supports rtsp. |
Confirmed Setting screenshot: https://i.imgur.com/j51XPp4.png |
After you call camera.turn_on or start_livestream, can you also check the logs of Add On which is used mainly communication with devices. if you can enable excessive logging for the integration and share the logs, i could have a deep dive investigation.
|
See attached logs |
Can you confirm you have the latest codebase? |
Installed everything 21 July...certainly can update to make sure code is current. |
Latest codebase here (f948623) please see attached log. Issued the service call to start streams on all devices at 2021-07-23 10:38:26. Something very obviously changed when that was issued as the logging blew up (truncated the log slightly after that for size), but still no livestream. log:
ancient history by fuat's coding speed :D i think theres been three revs since then. |
Finally, with the latest update, I was able to get the camera entity along with Motion Sensor, Person Detector Sensor, Ringing Sensor. But, the camera entity fails to start the live stream. I do get a still image when there is an event, but unable to start the live feed. There seem to be tons of eufy_security strings in the log file.
The log goes on and on with similar data, I am assuming whenever I am trying to start the stream, this is happening. Please let me know if I am doing anything wrong, or if I need to do anything on my end to help identify and solve the bug if it is one. |
Will confirm...latest update shows cameras (and static images). Live stream fails. All-in-all, excellent progress! |
Seconded @dsjackson findings - same here. Also same on progress - getting from no cameras to semi working was fast! |
Please confirm you have enabled ffmpeg in your setup.
|
Install: Home Assistant OS 6.1 / core-2021.7.4 / supervisor-2021.06.8 Running on Virtualbox on a dedicated Win10 Pro workstation. I could provide access to the server via SplashTop if it would help or provide a login to the HA instance. System Health
Home Assistant Community Store
AccuWeather
Home Assistant Cloud
Home Assistant Supervisor
Lovelace
I'm using FFMPEG with other cameras (Like Wyze RTSP streams) and they are currently working so I believe I have FFMPEG installed and running correctly.
is confirmed in my configuration.yaml. Also RTSP is set on all of my compatible eufycams; it has been for months as I was testing out the other options (Fuzzy's custom component, MQTT, ioBroker, etc.). The account I'm using for your component/add on pair are not is use anywhere else. That's about all I can think of off the top of my head. |
|
I have had similar issues on all those other implementations to the issues im having here, did you get streams working on any of them? The only one i got to work was the webRTC of the actual RSTP stream the cam is spitting out, but CPU usage was way too high even on my i5 NUC to maintain it. |
It's been a while, but I remember getting a couple of cams to work with those components, not 100% reliably but enough times to know that it worked. |
I am assuming it is related to the file created in the main directory of the Home Assistant Install. I have re-installed the latest version, most of the prior error logs have vanished, but the stream does not seem to work. My installation is docker HA installed on the dedicated Ubuntu LTS 20.04 Desktop. Here is the server info: System Health
Home Assistant Community Store
Home Assistant Cloud
Lovelace
The only errors I see on the log file are
|
I’ve got the stream to work. Something is wrong when the integration starts with my 2K indoor camera with RTSP enabled. In order for the stream to work I have to call the Camera Turn Off service followed by the Camera Turn On service. After that, stream starts working properly. I’ve had a few instances where the stream will stop working due to “demuxing errors” and wasn’t able to recover by itself forcing me to redo the above steps. |
I can confirm the same as @fabianluque on my system. (Brilliant find BTW! Thanks!!) Turned off then on and the stream came up right away. Tested with two of my cams, both worked the same. |
any logs you can share? |
Ive had weirdness as well. The camera entity is only showing up for 2 of my 8 cams (the 2 with SD cards in them, but also rstp enabled). The other devices are all there, and all their sensors are functioning, but no camera entity. Same versions. No errors in logs, and all devices are detected by the addon as shown in the logs. I think its something with the auto-creation of entities by the integration |
@fuatakgun Here are some logs: Removed. |
can you double check that you have enabled notifications with picture? There is no picture URL her to show as a placeholder and I am intentionally skipping these entities. I can try to find another way of doing this but you will have no still image. |
Double checked on mine that "thumbnail included" is present on all cameras for notification mode. I think this a 2c vs 2k thing. The 2c's all store last thumbnail on the home base. The 2k's dont store last thumbnail anywhere persistent UNLESS you have an SD card in them. Id hypothesize thats why my two cameras with sd cards in them are working but the others arent. In previous versions of the integration I would get no-picture-url placeholders for the cams without sd cards in them, and then as motion events were triggered on that cam, they would update the lovelace card. |
ok, let's fix it, I will release a fix tonight in EU time zone (in couple of hours) |
@fuatakgun @jbrukardt Can confirm the thumbnail behavior. Before the update I would get no image until there were some events triggered. |
can you share your device for testing purposes with admin rights? |
be aware that if you're testing on my "basement" device @fuatakgun that one does have an SD card in it, so it may not be good for testing this issue. |
which one I should rely? :) |
eeek... i dont have any I can share with you that dont have an sd card in em. Theyre all in my living spaces. You could eject the card in app i guess? i think you can do that as an admin. |
i can only format but not eject, so you dont have sutaible camera to share. let's wait @fabianluque 's response than |
Just shared one my 2K cameras with you, admin rights. Let me know if it works for you. |
please get latest codebase (1 min ago) and you will have camera. There is also one good improvement for you, picture will be updated while streaming automatically. Please resolve if it is done. No update on add on, just integration While i was connected, i confirmed that integration is automatically noticing that RTSP is on and trying to generate image. RTSP would not work if home assistant instance is not in the same network, so I switched to p2p live stream and validated that stream and live image is working fine. |
@fuatakgun Awesome, let me update and test. |
waiting for the update to show up in hacs and then ill do it. |
@fuatakgun Confirmed, fix works beautifully! Thanks so much! Removing access until next time. :) |
Let's hope we dont need it anymore :-) @jbrukardt , can you also validate with your cameras? |
can do. Just waiting for HA. Its hanging on restart waiting for something :/ |
Do you see what keeps it hanging? Normally, it should mention which integration is holding it. I hope it is not about this one :-) |
ok, all cameras are detected again and have snapshots. Streams working too! |
Honestly, it is this the integration sometimes :p but lets let that sleeping dog lie for now. We'll go for functionality first, then stability. |
There are many stuff happening at startup, i can definitely improve them. |
After the latest code update (thanks for the frequent updates and improvements), wired doorbell no longer shown (Generates error: This entity is currently unavailable and is an orphan to a removed, changed or dysfunctional integration or device.) and the 2c's I have show the snapshot with RTSP-Streaming (before, just Streaming) but no longer stream. |
I know the issue about doorbell but i am not sure about 2c, any luck you can share it? Update: published another version of integration, please check if you have latest version of integration and 0.3.3 version of add on. I just wanted to separate streaming-rtsp vs streaming-p2p as it is difficult most of the time for users what is happening, so state is fine. |
Great enhancement to add the tag for streaming type. Thats really handy for troubleshooting the streaming method. All mine show rstp (as they should) |
Confirmed that the 2C's now work as expected. Wired doorbell shows "Streaming - p2p" but no snapshot and no streaming. An earlier version (a few days ago...I will I had the version number) worked fine...a version before you added the streaming type tag. |
@dsjackson please create a separate issue, this became unmanageable. And share logs with it. And you can share your camera with admin rights following readme file and let me know the name. |
I am working with a wired doorbell, T8200. After the installation, three new entities were added, person detector sensor, battery & wifi ssid power. The battery entity was unavailable, as it makes sens with the wired doorbell, there is no battery. wifi ssid sensor was unavailable too. And I had no luck getting the stream from the doorbell camera.
Some log lines:
2021-07-18 12:16:49 ERROR (MainThread) [custom_components.eufy_security] eufy_security - Exception in websocket - process_messages : 'battery' - traceback: Traceback (most recent call last): File "/config/custom_components/eufy_security/websocket.py", line 55, in process_messages await self.on_message(msg) File "/config/custom_components/eufy_security/websocket.py", line 66, in on_message await self.message_callback(message) File "/config/custom_components/eufy_security/coordinator.py", line 165, in on_message self.async_set_updated_data(self.data) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 287, in async_set_updated_data update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 325, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 453, in _async_write_ha_state state = self._stringify_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 425, in _stringify_state state = self.state File "/config/custom_components/eufy_security/sensor.py", line 86, in state return self.entity[self.key] KeyError: 'battery'
2021-07-18 12:12:43 ERROR (MainThread) [homeassistant.components.camera] Error while setting up eufy_security platform for camera Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/eufy_security/camera.py", line 34, in async_setup_entry _LOGGER.debug(f"{DOMAIN} - camera setup entries - {entities}") File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 803, in __repr__ return f"<Entity {self.name}: {self.state}>" File "/config/custom_components/eufy_security/camera.py", line 74, in state self.is_streaming = self.entity["rtspStream"] KeyError: 'rtspStream'
The text was updated successfully, but these errors were encountered: