Wyze Cam Integration With Home Assistant Without Flashing

hey, I made it work with some help from my friend. you still need to use tiny cam but that I the only way right now. so basically buy the tiny cam pro app or like I did download the APK file and installed. then you add the camera by clicking the “+” and selecting the right info for your camera. then you enable web server by going to hamburger icon>web server. then you set a user and password for your web server by going to settings>web server. after that is all done check if the server is working by going to the address written in the orange box. if all that works time to add to HA by adding the following lines

camera:
  - name: Camera
    platform: mjpeg
    mjpeg_url: http://IP OF YOUR SERVER:8083/axis-cgi/mjpg/video.cgi?user=USERNAME&pwd=PASSWORD

configure anything that is in CAPS
then you should see your Wyzecam (hopefully) I am open to questions
if you did it with Bluestacks then please tell me

7 Likes

Hey @Aaliankhan, thanks for this!

A small note (that I spent a few minutes figuring out :relieved:); after editing the webserver settings, remember to enable/turn on “web server” in the main sidebar menu.

Have you gotten this to work when enabling “Use HTTPS” in the TinyCam web server settings? I get errors in HASS if I try enabling this. Other than that, it works really well!

1 Like

You can also run tinycam pro on virtual box running Android

OK, that’s worth considering. That works with using HTTPS?

have you figured out how to add more then 1 camera … I added the above lines and it works but only shows the first camera

I only tried with one camera but I am pretty sure it’s possible. I will get back to you when I have something

@Matthew_Noecker I got it. The URL will be

http://IP OF WEB SERVER:8083/axis-cgi/mjpg/video.cgi?user=USERNAME OF WEB SEVER &pwd=PASSWORD OF WEB SERVER&cameraId=id OF CAMERA

You can find the camera ID in the web server


Then Select your camera

Then the ID will be in the URL

3 Likes

Hi, I’m new to home assistant, could you tell me where to put that code in Home assisatnt please?

It goes in your configuration.yaml. It’ll look something like this:

camera:
  - platform: mjpeg
    name: Garage Camera
    mjpeg_url: http://TINYCAM.IP.ADDRESS:PORT/axis-cgi/mjpg/video.cgi?camera=CAMERAID1&user=USERNAME&pwd=PASSWORD
  - platform: mjpeg
    name: Front Yard Camera
    mjpeg_url: http://TINYCAM.IP.ADDRESS:PORT/axis-cgi/mjpg/video.cgi?camera=CAMERAID2&user=USERNAME&pwd=PASSWORD
1 Like

Hi @atvking. I’m new to this as well. I put your code into my configuration and it seemed to work fine. I’m just curious how we get it to display on the dashboard? Is it by entity?

Seeing this super late and you probably already figured it out, but for those who stumble upon this in the future, there are many ways to display the camera entities on your dashboard. Here’s an example using a Picture Entity card:

  1. Click the three vertical dots in the top right.
  2. Click Edit Dashboard
  3. Click Add Card in the bottom right
  4. Select Picture Entity
  5. Add your camera entity (i.e. camera.garage_camera) in the top field under Entity (Required)
  6. Click Save

In my browser it doesn’t show the camera id in adress bar when i cycle through
ugh my cameras. Beside ip adress it show just live http://ip:8083/live
I tried the code you provide with different name of the cameras but it only show the same camera, the first on the list from tinycam. Can someone guide me or give me some advice?
Thank you.
P. S. I’m very pleased with one camera after weeks of struggling, but i would like to have them all integrated.

Wyze now supports RTSP but you have to move a file to the cameras SD card but it’s much easier than tiny cam. You can find more instructions here Wyze Cam RTSP – Wyze
To add it to give home assistant you can follow this guide. Wyze Cam v2 - Home Assistant Review

I use a custom component to view my cameras with almost no delay.

Thank you all for starting this thread and leading me to my final result. I wanted to update this original thread with the steps that I took to get this working after 3-4 days trying to figure out how to get my Zmodo cameras to display in HA. Over the past few days I had tried all the different camera integrations available for HA, but none would display my Zmodo cameras. I also tried setting up MotionEye on my mobile and then adding the integration, but despite what I had read, the MotionEye app does not seem to work as well as the TinyCam Pro app that I have been running on my Android phone for many years. Maybe just because I was used to TinyCam.

I more or less followed the above instructions, but found that I could not get the Camera ID or http link required using the above instructions (jump to step 7 below if that is the step you are stuck on). To set-up my video camera stream up, I had to do the following:

  1. Have a working instance of TinyCam Pro on my Android phone (I will now investigate if I can side load that app on to something that can remain at home and running the server away from my Mobile resources).

  2. In the TinyCam app on my phone, top left menu and scroll down to the Webserver switch. Enable this and take note of the local IP address generated (http://192.168.0.141:8083) in my case which is my Phones IP address on my home network. Ensure to add your cameras to the server streaming list.

  3. If you do not already have DDNS enabled on your home router, set up with an account, I use No-Ip.com but others will work.

  4. On my Router set up a static IP address for my mobile phone - 192.168.0.141 in my case.

  5. Set up port forwarding of incoming requests on 8083 and directed to my mobile phone IP (192.168.0.141:8083 in my case).

  6. Test that you can now access the TinyCam server on both your local network and outside of your network (mobile data connection) using your DDNS account.

  7. To get the http address of the camera that you want to view in HA I logged into the ADMIN page in the TinyCam Server on my PC ( http://[LOCAL IP:8083] ):


    Then scroll down to select the WEB SERVER LOGS:

    The logs will have the cameras that you are streaming on the TinyCam Server, I found the one that I wanted to display inside HA (Garage Cam in my case) and copied the Camera ID (Below details changed for my privacy).

2022-01-18 18:13:37 [192.168.0.129] GET /api/v1/get_cam_event_list?token=a3fab27fc1aa6be0f8888bfeb45236aa1a76af18&[u]cameraId=702368957[/u]&endtime=-1&count=15&type=local&filter=

Then I built the following http:// access line which I then pasted in to HA Picture Glance Card:

http://[MY DDNS DETAILS]:8083/axis-cgi/mjpg/video.cgi?cameraId=702368957&user=[myusername]&pwd=[mypassword]
  1. I used the .yaml code in my “webcam.yaml” file that I saved in my separated HA filing system, otherwise put it in to your main configuration.yaml using your file editor:
camera:
  - platform: mjpeg
    name: Garage Camera
    mjpeg_url: http://[MY DDNS DETAILS]:8083/axis-cgi/mjpg/video.cgi?cameraId=702368957&user=[myusername]&pwd=[mypassword]

The above yaml file gives a camera_entity after checking configuration and restarting HA;

In my Lovelace dashboard page where I want the Video monitor, I added a Picture Glance Card and added the new camera entity ‘camera.garage_camera’

That’s it, with the server running on my Android phone I get the video feed in to my HA.

As mentioned above it really would be great if someone could build a TinyCam HA integration so that the server is running on HA platform, as I have found TinyCam is able to handle many, many camera types and feeds very easily and that would avoid having to have an Android phone running 24/7 with the TinyCam server running in the background.

I hope that My update above helps others, who like me were unable to add their camera to HA using the many other methods and Integrations.

I hope it helps someone to spend less time trying to get a NON standard camera feed in to HA :slight_smile:

EDIT: After rebooting my TinyCam server I lost the feed, until i changed the http access to use the user&pwd. I have updated my above steps to reflect this.

2 Likes