roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

entitiys not available after upgrade to 0.4.4 #117

Closed SeriousPat closed 2 months ago

SeriousPat commented 1 year ago

After Upgrade to 0.4.4 the entitys doesnt work anymore. after reinstall the integration, an reinstall entitiys, same problem.

Cams-FW: yi-hack-Allwinner-v2 Firmware Version | 0.2.6

Cams working fine at the webUI of the cam.

Foguet commented 1 year ago

I have the same problem: Cams-FW: yi-hack-Allwinner-v2 Firmware Version | 0.2.6

Home Assistant 2023.3.5 Supervisor 2023.03.1 Frontend 20230309.1 - latest

roleoroleo commented 1 year ago

Please, try release 0.4.5

SeriousPat commented 1 year ago

Sorry, it dowsnt work with 4.5 Screenshot 2023-03-21 102656

roleoroleo commented 1 year ago

Any errors in the log?

danhajduk commented 1 year ago

I'm having the same problem, My cameras would become unavailable for a while and then I would have to reboot the camera and then turn the camera switch off and then on using WebUI.
this is the only thing I could find in the log files

Logger: homeassistant.components.stream.stream.camera.yi_hack_a2_448765_cam
Source: components/stream/__init__.py:434
Integration: Stream (documentation, issues)
First occurred: 1:27:06 PM (23 occurrences)
Last logged: 2:11:06 PM

Error from stream worker: Error opening stream (ERRORTYPE_110, Operation timed out) rtsp://10.0.0.235/ch0_0.h264
Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsp://10.0.0.235/ch0_0.h264 
roleoroleo commented 1 year ago

Is mqtt enabled in your ha installation?

slimjim2234 commented 1 year ago

Same issue here. Running y20ga Yi Hack v0.3.3 Entities do not update after 0.4.2 of yi-hack_ha_integration Currently running 0.4.2 to get camera streams working. Seeing similar symptoms in #115 #118 MQTT is running on HA. Enabling all MQTT service topics on the cameras didn't change the outcome.

roleoroleo commented 1 year ago

The problem is that the camera seems to be off but it's not true. I also own a y20ga and have no problems. What's your fw version, I mean Yi firmware, 8 or 12?

roleoroleo commented 1 year ago

Please open MQTT Explorer and check if you receive stat messages when the cam starts: immagine

slimjim2234 commented 1 year ago

image

I got it to work with 0.4.5, but had to enable the mqtt service on the camera and all of the associated mqtt topics as well. Now I have a lot of duplicate entities. Currently, the camera will not work if it is not synced with HASS over MQTT. This is not a desirable outcome.

danhajduk commented 1 year ago

I got it to work on my cameras but it would only work if I disable the cloud on the camera. It does work for me because i prefer to have it disabled.

roleoroleo commented 1 year ago

@slimjim2234 As you can read in the readme, this integration requires mqtt component.

But you don't have to enable mqtt discovery in the cam: http://192.168.0.245:8080/?page=mqtt_adv immagine mqtt discovery is mandatory if you don't want to use this integration.

Just enable this option: immagine http://192.168.0.245:8080/?page=mqtt

@danhajduk This integration is not related to the cloud connection. It must work with or without cloud.

SeriousPat commented 1 year ago

@roleoroleo Thanks, its woking now. I just installed mqtt(mosquito) on HA and setup mqtt in the general mqtt page over the web on the cam. Will there be the intergation in the future or will you switch for using "Mqtt Advertise & Homeassistant MQTT Discovery" only?

roleoroleo commented 1 year ago

@roleoroleo Thanks, its woking now. I just installed mqtt(mosquito) on HA and setup mqtt in the general mqtt page over the web on the cam. Will there be the intergation in the future or will you switch for using "Mqtt Advertise & Homeassistant MQTT Discovery" only?

I will support both technologies but I prefer to use my integration because there are more features:

danhajduk commented 1 year ago

@roleoroleo Yes I understand that it is not related to cloud service, but for some reason on my 2 cameras that is the what solved it. When I turn it on the camera in the integration becomes unavailable.

roleoroleo commented 1 year ago

Please, explain me the sequence.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.