Aqara Camera G3 integration for Home Assistant

Overview

Aqara Camera G3 integration for Home Assistant

ATTENTION: The component only works after enabled telnet. Only supportd stream. Not support still image, motion detection, ptz, ai etc. yet.

This is a way to enable telnetd from #Wh1terat. After enabled telnet, you need use putty to telnet . Then enter the following commands.

chmod a+w /data/scripts/post_init.sh
echo -e "#!/bin/sh\n\nasetprop sys.camera_ptz_moving true\nfw_manager.sh -r\nfw_manager.sh -t -k" > /data/scripts/post_init.sh
chattr +i post_init.sh

Installation

you can install component with HACS, custom repo: HACS > Integrations > 3 dots (upper top corner) > Custom repositories > URL: niceboygithub/AqaraCamera > Category: Integration

Or Download and copy custom_components/aqara_camera folder to custom_components folder in your HomeAssistant config folder

Configuration

  1. ⚙️ Configuration > 🧩 Integrations > Add Integration > 🔍 Search Aqara Camera

    Or click (HA v2021.3.0+): add

    1. If the integration didn't show up in the list please REFRESH the page
    2. If the integration is still not in the list, you need to clear the browser cache.
  2. Enter Camera IP address.

  3. Click Send button, then wait this integration is configured completely.

  4. Done

Supported Versions

Market Firmware Version Status
China 3.3.2_0019.0004
China 3.3.4_0007.0004

Attention: The component is under active development.

Buy Me A Coffee

Comments
  • Error: Config flow could not be loaded

    Error: Config flow could not be loaded

    ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration aqara_camera: cannot import name 'Platform' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)

    opened by chepa92 1
  • FR: add support for camera entity for whe WebRTC

    FR: add support for camera entity for whe WebRTC

    Hi, thank you for your integration! README notice that after camera reboot, rtsp url is change. But Alex WebRTC integration allows to use camera entity instead of rtsp url, so maybe there is a way, to use it? I tried to use entity instead of url, and for the first time it worked, but after reboot, webrtc card was unable to get stream from the entity. Just giving you a food for thought, I understand that currently it's just a draft. Additionaly, it would be great if stream would support for the rectangles of the detected objects, like it in the aqara app stream, or stream, passing through homekit integration. And currently, ptz control move camera very slightly, it would be great to have a way to ajust steps.

    opened by HepoH3 0
  • Does it work with firmware: 3.3.2_0001.0004?

    Does it work with firmware: 3.3.2_0001.0004?

    After following the instructions, I now have telnet access, but in HA I keep getting failed to connect errors.

    Firmware the unit shipped with is 3.3.2_0001.0004 and I haven't updated. Do we need to be on the specific firmware versions you list or all is fine as long as we were able to apply the telnet hack?

    Also, anyone know how to "upgrade" to a specific firmware version? Say 3.3.2_0019.0004 or 3.3.4_0007.0004 which is in the supported versions notes.

    opened by mversion 20
  • Having issues in the logs

    Having issues in the logs

    Hi there

    Thanks so much for the plugin. I'm just struggling to get it going, I'm getting these 2 errors:

    Logger: homeassistant.components.camera
    Source: custom_components/aqara_camera/camera.py:52 
    Integration: Camera ([documentation](https://www.home-assistant.io/integrations/camera), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+camera%22)) 
    First occurred: 18:19:37 (1 occurrences) 
    Last logged: 18:19:37
    
    Error while setting up aqara_camera platform for camera
    Traceback (most recent call last):
      File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
        await asyncio.shield(task)
      File "/config/custom_components/aqara_camera/camera.py", line 52, in async_setup_entry
        raise CannotConnect
    custom_components.aqara_camera.camera.CannotConnect
    
    Logger: homeassistant.config_entries
    Source: custom_components/aqara_camera/__init__.py:42 
    Integration: Aqara Camera ([documentation](https://github.com/niceboygithub/AqaraCamera), [issues](https://github.com/niceboygithub/AqaraCamera/issues)) 
    First occurred: 18:19:14 (1 occurrences) 
    Last logged: 18:19:14
    
    Error setting up entry Camera-Hub-G3-0794 for aqara_camera
    Traceback (most recent call last):
      File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
        result = await component.async_setup_entry(hass, self)
      File "/config/custom_components/aqara_camera/__init__.py", line 42, in async_setup_entry
        raise CannotConnect
    custom_components.aqara_camera.core.exceptions.CannotConnect
    
    opened by meneer-code 2
  • [Idea] Webserver?

    [Idea] Webserver?

    Never been a fan of poking devices via telnet constantly.

    What about grabbing a busybox binary with httpd compiled and using cgi? e.g

    #!/bin/sh
    
    while IFS= read -r -d '&' KEYVAL && [[ -n "$KEYVAL" ]]; do
    case ${KEYVAL%=*} in
            prop) PROP=${KEYVAL#*=} ;;
        esac
    done <<END
    $(echo "${QUERY_STRING}&")
    END
    
    if [ -z "$PROP" ]; then
        PROP="full"
    fi
    
    RES=`agetprop "$PROP"`
    IS_JSON=`echo "$RES" | grep -c "^{"`
    
    if [[ "$IS_JSON" -gt 0 ]]; then
        printf "Content-type: application/json\n\n"
    else
        printf "Content-type: text/plain\n\n"
    fi
    
    echo "$RES"
    
    x@x:[~]$ curl -v "http://x.x.x.x/cgi-bin/get_prop.sh?prop=ro.sys.fw_ver"
    *   Trying x.x.x.x...
    * TCP_NODELAY set
    * Connected to x.x.x.x (x.x.x.x) port 80 (#0)
    > GET /cgi-bin/get_prop.sh?prop=ro.sys.fw_ver HTTP/1.1
    > Host: x.x.x.x
    > User-Agent: curl/7.54.0
    > Accept: */*
    >
    * HTTP 1.0, assume close after body
    < HTTP/1.0 200 OK
    < Content-type: text/plain
    <
    3.3.4
    

    Could be nice for your ptz control stuff, getting uptime, sdcard usage, etc etc.

    enhancement 
    opened by Wh1terat 2
Owner
null
Home Assistant custom integration for e-distribución

e-Distribución is an energy distribution company that covers most of South Spain area. If you live in this area, you probably are able to register into their website to get some information about your power demand, energy consumption, or even cycle billing (in terms of consumptions).

VMG 17 Sep 7, 2022
Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner and yi-hack-Allwinner-v2

yi-hack Home Assistant integration Overview yi-hack Home Assistant is a custom integration for Yi cameras (or Sonoff camera) with one of the following

roleo 131 Jan 3, 2023
Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API.

Hildebrand Glow (DCC) Integration Home Assistant integration for energy consumption data from UK SMETS (Smart) meters using the Hildebrand Glow API. T

Aniket 153 Dec 30, 2022
Electrolux Pure i9 robot vacuum integration for Home Assistant.

Home Assistant Pure i9 This repository integrates your Electrolux Pure i9 robot vacuum with the smart home platform Home Assistant. The integration co

Niklas Ekman 15 Dec 22, 2022
Water quality integration for Home Assistant with data provided by Budapest FVM

Water Quality FVM (Budapest, HU) custom integration for Home Assistant This custom component integrates water quality information provided by Budapest

Atticus Maximus 3 Dec 23, 2021
A Home Assistant integration for Solaredge inverters

A Home Assistant integration for Solaredge inverters. Supports multiple inverters chained through RS485.

Seth 50 Dec 23, 2022
Nordpool_diff custom integration for Home Assistant

nordpool_diff custom integration for Home Assistant Requires https://github.com/custom-components/nordpool Applies non-causal FIR differentiator1 to N

Joonas Pulakka 45 Dec 23, 2022
Smart EQ connect - Custom Integration for Home Assistant

Smart EQ Connect platform as a Custom Component for Home Assistant.

Rene Nulsch 2 Jan 4, 2022
OPNsense integration with Home Assistant

hass-opnsense Join OPNsense with home-assistant! hass-opnsense uses the built-in xmlrpc service of OPNsense for all interactions. This project is curr

Travis Glenn Hansen 54 Jan 3, 2023
Component for deep integration LedFx from Home Assistant.

LedFX for Home Assistant Component for deep integration LedFx from Home Assistant. Table of Contents FAQ Install Config Performance FAQ Q. What versio

Dmitry Mamontov 28 Dec 13, 2022
Sleep As Android integration for Home Assistant

Sleep As Android custom integration This integration will allow you to get events from your SleepAsAndroid application in a form of the sensor states

Igor 84 Dec 30, 2022
Skykettle ha - Redmond SkyKettle integration for Home Assistant

Redmond SkyKettle integration for Home Assistant This integration allows to cont

Alexey 'Cluster' Avdyukhin 48 Jan 6, 2023
Ha-rpi gpio - Home Assistant Raspberry Pi GPIO Integration

Home Assistant Raspberry Pi GPIO custom integration This is a spin-off from the

Shay Levy 98 Dec 24, 2022
Home assiatant Custom component: Camera Archiver

Camera archiver Archive your ftp camera meadia files on other ftp with files renaming and event creation. Event can be used for send information to el

null 1 Jan 6, 2022
Volkswagen ID component for Home Assistant

Volkswagen ID component for Home Assistant This folder contains both a generic Python 3 library for the Volkswagen ID API and a component for Home Ass

null 55 Jan 7, 2023
Sensor of Temperature Feels Like for Home Assistant.

Please ⭐ this repo if you find it useful Sensor of Temperature Feels Like for Home Assistant Installation Install from HACS (recommended) Have HACS in

Andrey 60 Dec 25, 2022
Интеграция Home Assistant с ЛК "Интер РАО"

ЕЛК ЖКХ «Интер РАО» для Home Assistant Предоставление информации о текущем состоянии ваших аккаунтов в ЕЛК ЖКХ. Введение @ TODO @ Установка Посредство

Alexander Ryazanov 27 Nov 5, 2022
Provide Unifi device info via api to Home Assistant that will give ap sensors

Unifi AP Device info Provide Unifi device info via api to Home Assistant that will give ap sensors

null 12 Jan 7, 2023
Switch predictor for Home Assistant with AppDeamon

Home Assistant AppDeamon - Event predictor WORK IN PROGRESS - CURRENTLY NOT COMPLETE AND NOT WORK This is an idea under development (when I have free

null 37 Dec 17, 2022