Goal: Replace Post request "Aqara Home" app on HomeAssistant
- note:
- this flow is example and was developed for Aqara Hub G3 camera
- Your value from POST Request Aqara app:
- appid ( XXXXXXAPPIDXXXXXXXXXXX )
- token ( XXXXXXTOKENXXXXXXXXXXX )
- subjectId ( lumi1.XXXXXXXXXXXX ) usually MAC-ADDRESS
- aqara url ( rpc-ger.aqara.com ) Host
- timezone ( it-IT ) -> es-ES/en-UK/de-DE/it-IT/pt-PT/en-US...
- userid ( automatic, enter manual if not work )
-
Method 1 NodeRed (recommended):
- Import flow Aqara_G3_nodered.json
- Replace your value "config" node
- Deploy
- note: you can use the script to generate your NoderRed json
- generatejson
-
Method 2 RestFul (without NodeRed):
- Replace your value Aqara_G3_without_nodered.txt
- Copy and paste Aqara_G3_without_nodered.txt on configuration.yaml
- Restart HomeAssistant
- Use BurpSuite or ZAP or similar:
- Follow BurpSuite Guide
- Follow ZAP Guide
- Download AqaraHome apk mod
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.
for a successful update of the existing flow without changing the entities in HomeAssistant, follow the steps:
- deploy
!! do not deploy without deleting the old !!
-
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
-
HomeKit for alarm function:
- autodiscovery, insert qrcode number
( port change every reboot of device, scan and find with nmap
replace port into "/config/.storage/core.config_entries" )
- Live video:
or you can see rtsp user/pass (change every boot)
from telnet command:
agetprop sys.camera_rtsp_url
rtsp://192.168.1.52:8554/360p (/720p /1080p /1296p)
rtsp://USER:PASS@192.168.1.52:8554/360p (/720p /1080p /1296p)
go2rtc RTSP Proxy (HomeKit supported)
WebRTC Card RTSP
AqaraCameraHubfw HACK