Coder Social home page Coder Social logo

aqaracamera's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aqaracamera's Issues

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)

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.

FTP/SFTP

I currently use watch and ftpput in post_init.sh to send videos /mnt/sdcard/record/ to external disk,
I was wondering if it was possible to implement something better for crontab and ftp.

watch -n25 /data/scripts/tftp/tftp.sh &
works fine like crontab

thankyou

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.

[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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.