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

MQTT integration not working #61

Closed jfsaturos closed 2 years ago

jfsaturos commented 2 years ago

Hi, I trying to configure the MQTT integration with homeassistant but I am not be able to run it correctly.

I am using yi-hack-Allwinner-v2 y211ga with Yi home IFUS version 9.0.36.02_202105081647. Home assistant version-> 2021.11.5

I have the options Disable Cloud, Recording without Cloud and all the MQTT options enabled.

But when I add the camera to home assistant I have the following entities:

Could you help me for configure the motion detection properly?, I am interested on the motion detection picture and binary sensor.

Thank you in advance

roleoroleo commented 2 years ago

Did you install the mqtt server in ha? If yes, download a client software (for example MQTT Explorer in Windows) and connect to the mqtt server. And check it the server receives messages from the cam.

jfsaturos commented 2 years ago

Yes I have a mosquito broker configured in order to use zigbee2mqtt.

I downloaded the program and conect to home asssitant. There the camera appears but the variable motion detection appear as -> motion_detection = motion_stop and the value not change

See picture below Test

roleoroleo commented 2 years ago

Is human detection enabled? If yes, try to disable it.

jfsaturos commented 2 years ago

Now is working, i disabled the option AI Human Detection | Enable/disable AI Human Detection.

There was the problem.

Thank you!