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
218 stars 32 forks source link

Status always appears offline #70

Closed LeidenSpain closed 5 months ago

LeidenSpain commented 2 years ago

First of all, very good work with the component, the truth is that it is going very well.

Likewise, I have encountered a problem that I have not been able to solve: I have 4 cameras: 1 Yi 1080p with yi-hach 0.4.3, and 3 Yi Outdoor with yi-hack-v5 0.3.2.

The strange thing is that 1080p and one Outdoor detect them online without problems, but 2 outdoor appear offline, although I can see their image. What can happen?

roleoroleo commented 2 years ago

Which firmware? All outdoor have the same v5 firmware? v5 is not under my control, I try to mantain at the same level of mstar and allwinners but it's not always possible.

LeidenSpain commented 2 years ago

Which firmware? All outdoor have the same v5 firmware? v5 is not under my control, I try to mantain at the same level of mstar and allwinners but it's not always possible.

yes, all Yi Outdoor cameras have the same firmware: 0.3.2

Camera 1 - 4CUS version: STATUS OFFLINE Camera 2 - ???? version: STATUS ONLINE Camera 3 - 4CUS version: STATUS OFFLINE

roleoroleo commented 2 years ago

Status sensor is the value of the topic "Birth and will messages". Did you configure it properly?

LeidenSpain commented 2 years ago

Status sensor is the value of the topic "Birth and will messages". Did you configure it properly?

I've no idea I only know that the Yi 1080p and one outdoor if it detects them online, and the other two outdoor do not. But I would say that I have configured all 4 the same way.

Where do I have to look at that?

roleoroleo commented 2 years ago

On the web page, mqtt subpage. immagine

roleoroleo commented 2 years ago

In general, mqtt must be enabled.

LeidenSpain commented 2 years ago

Hi,

I have MQTT disabled on all cameras, the 3 outdoor and the 1080p.

I just tried turning off the camera that tells me it's online, and it's still online. So clearly it is a problem in the refreshment of the information. It may be what you say: the MQTT

roleoroleo commented 2 years ago

mqtt is a requirement.

LeidenSpain commented 2 years ago

I have the MQTT integration installed on HA, and the MQTT enabled on the CAM image

But, i see this on MQTT Explorer image

What is the correct MQTT configuration of the camera? Do we have to enter the HA section or only activate it in the general MQTT? image

roleoroleo commented 2 years ago

If you use this integration, you don't need to enable mqtt discovery. Leave it disabled. About status, set retain to 1.

LeidenSpain commented 2 years ago

In the end it was a problem with enabling MQTT, and the options for HA.

Thank you very much, everything seems to work now

github-actions[bot] commented 6 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.