Add-on HomeAssistant with automatic config script!!
only Username/Password Aqara required
Goal: Replace Post request "Aqara Home" app on HomeAssistant
Method 1 NodeRed (recommended, required NodeCompanion):
Method 2 NodeRed (recommended, required NodeCompanion):
Import flow Aqara_G3_nodered.json
Replace your value "config" node
Deploy
Method 3 RestFul (without NodeRed - few functions):
Replace your value Aqara_G3_without_nodered.txt
Copy and paste Aqara_G3_without_nodered.txt on configuration.yaml
Restart HomeAssistant
Python script:
from Wh1terat's python script you can find your values from your username and password Aqara account
Use BurpSuite or ZAP or similar:
I have an Aqara Hub G3 camera on HomeAssistant but I can't control it, with the homekit connection I only have the alarm function.
This is the beauty of it: no modifications to the device are necessary.
You can delete AqaraHome_mod app it without logging out, otherwise the token values are expired.
AqaraHome apk mod includes acceptance of the user-installed certificate, (to see the http requests in burp).
add automation every 1 minute:
description: Update Aqara G3
mode: single
trigger:
- platform: time_pattern
minutes: /1
condition: []
action:
- service: button.press
metadata: {}
data: {}
target:
entity_id: button.camera_g3_log
or change inject node:
for a successful update of the existing flow without changing the entities in HomeAssistant, follow the steps:
import new json
delete old flow (complete flow card)
deploy
!! do not deploy without deleting the old !!
Turns the camera into an NGINX-cgi PHP server and much more...:
HomeKit alarm function HomeAssistant:
autodiscovery, insert qrcode number
port change every reboot of device, replace into
"/config/.storage/core.config_entries"
Live video:
hack G3 (delete authentication rtsp):
Add /data/scripts/post_init.sh from telnet
killall -9 rtsp && rtsp >/dev/null 2>&1 &
or you can see rtsp user/pass (change every boot)
from telnet command:
agetprop sys.camera_rtsp_url # agetprop full (list all prop.)
rtsp://192.168.1.4:8554/360p (/720p /1080p /1296p)
rtsp://USER:PASS@192.168.1.4:8554/360p (/720p /1080p /1296p)
ko-fi.com https://ko-fi.com/davide70304
AqaraG3-armv7-binary AqaraG3 extra command
go2rtc RTSP Proxy (HomeKit supported)
WebRTC Card RTSP
AqaraCameraHubfw HACK