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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

entitiys not available after upgrade to 0.4.4

SeriousPat opened this issue · comments

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.

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

commented

Please, try release 0.4.5

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

commented

Any errors in the log?

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 

commented

Is mqtt enabled in your ha installation?

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.

commented

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?

commented

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

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.

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.

commented

@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.

@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?

commented

@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:

  • media sources
  • ptz services
  • speak service
  • ...

@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.

commented

Please, explain me the sequence.

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.