Disclaimer: By no means this is the only way to do it or the best solution, just sharing experience. Not a stockholder of any product/company mentioned here
Background:
- Hassbian 99.3 on Lenovo T420 with Ubuntu 18.04
- Love Wyze cam (2 v1+3 v2), all latest stock firmware, RTSP firmware not stable enough with my setup
- tinyCam server on older Samsung tablet (Nougat) to stream IP cam to HA
- older wifi router
After adding more Wyze cams lately, the tablet had hard time keeping up.
Decided to test running tinyCam in android emulator on Ubuntu, steps I did:
- create free genymotion account and license
- install genymotion and virtualbox from apt-get (not the latest)
- test different android templates provided and virtualbox settings
- set Network Mode of the Virtual Device to bridge mode (necessary?)
- install GAPP after android started and set static โwifiโ IP
- install, setup, and run tinyCam Pro server in genymotion android
- pointed HA camera config to genymotion tinyCam server
- platform: mjpeg
name: wyze
mjpeg_url: http://[tinyCamIP]:8083/axis-cgi/mjpg/video.cgi?camera=1&fps=0
Findings after overnight running (5 Wyze + 1 Amcrest IPM-HX1):
- server on virtual Google Nexus 4 (Kitkat) was holding up well, no melt-down
- virtual device uses a big chunk of CPU, watch out for cooling issue
- server crashed, once or twice initial setup, stable overnight
- occasional stream problem solved with restarting virtual device
- virtual device can be auto-started after logon/reboot, mostly
Things to try next:
- optimize resources and stability of the virtual device
- restart control of virtual device (tasker/switch in HA, cron job)
- other stream enhancements, sound, motion detection, recording, etc.
Again, there is nothing wrong with other solutions, i.e. MotionEye, etc., just a test case here. So far, this seems promising, until there is actual integration of Wyze or tinyCam in HA
Have fun.