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

All feature but stream not working #58

Closed PilaScat closed 2 years ago

PilaScat commented 2 years ago

Only stream works, sensor and switch doesn't Status sensor says disconnected but stream is working Using yi outdoor allwinner v2

roleoroleo commented 2 years ago

Which firmware version and which integration version?

PilaScat commented 2 years ago

Last one on both, installed today

roleoroleo commented 2 years ago

Did you install mqtt server? It's a requirement.

PilaScat commented 2 years ago

Yes, mosquitto broker on different docker, created the account and linked with ha

roleoroleo commented 2 years ago

Login with ssh to the cam and try to restart mqttv4 process. We have to check if the connection to the mqtt broker is ok.

killall mqttv4
. /tmp/sd/yi-hack/script/env.sh
mqttv4
PilaScat commented 2 years ago

image Isn't ok, do I need to configure mqtt in the cam? I did it before but the integration exploded when I did it

roleoroleo commented 2 years ago

Yes, you should configure mqtt in the cam: immagine

Or you can edit manually the file /tmp/sd/yi-hack/etc/mqttv4.conf

PilaScat commented 2 years ago

do I need to create a user in mosquitto?

roleoroleo commented 2 years ago

No. If your broker is configured with authentication, enter it in the mqtt settings page. Otherwise leave the fields blank.

PilaScat commented 2 years ago

Thanks now work, but hackv5 doesn't have TTS, and allwinner TTS is there but doesn't work

roleoroleo commented 2 years ago

yi-hack-v5 doesn't have tts, yes. I can try to build it for this platform.

There are 2 different tts services you can use with the cam: ha internal tts and cam internal tts. ha internal is (for example Google) tts.google_say, for this you don't need to insall anything. cam internal is yi_hack.speak: you need to install tts engine from https://github.com/roleoroleo/yi-hack-utils/ in /tmp/sd/yi_hack

There is a hidden page useful to test them in http://ip-cam:8080/?page=speak

roleoroleo commented 2 years ago

You can download and try tts for v5. But it's not tested because I don't have this model to test it.

PilaScat commented 2 years ago

Thanks