with addon, no
Well then, at least I learned something about python over the weekend ![]()
Thank You for help, knowing that this is not the cause of connection problem, is huge step forward.
I installed the addon, I made configuration. I don’t understand what should I verify in config node? there are some values there… but I still have no idea how to add Hub G3 to Home Assistant
if there are values in the config node, it was installed correctly, the entities will come out of NodeCompanion
There are entities but where I can find this card with all this information (config, ptz, video…) ?
I took a few steps forward. Some of the entities work but most don’t … below is the entry from the aqarapost log : [error] [ha-sensor:Camera G3 config] InputError: Attribute: TypeError: Cannot read properties of undefined (reading ‘freesize’). maybe there is a problem here?
so it’s difficult to understand the problem, is the “subjectId” value inside the config node correct with your mac address? Are appid and token valued?
You should add a “debug” node to see the error, it works for everyone, definitely it’s your mistake
from the error it doesn’t recognize the free space of the SD, do you have an SD inside the cam?
That was the reason, I didn’t have an SD card in the camera. after reinstallation, the entities started working. Thanks !
there are still 5 entities that are still not working : camera G3 ptz : allUP, allDOWN, allLEFT, allRIGHT, PTZ Center… any suggestion on how to run it ?
If the other entities work it’s impossible, you have to add the debug node to the PTZ http block. The only way to help you is to send me your token and subjectid
Hi Sew, I updated the flow,
1 delete “flow.json” from /addon_configs/797fde71_nodered_aqara/
3 restart addon
For PTZAll check if it works from the AqaraHome app → enable PTZ → default positions → rightmost leftmost etc…
FWIW, there was a new update release by Aqara that’s supposed to allow the exposure of hand gestures via Matter as a trigger in Matter compatible ecosystems. You can watch the video here: https://youtu.be/4XULASTc3KA.
I hope to try this to expose the camera pan controls in Home Assistant. I really missed having those in HomeKit and it’s the main reason I’d have to go into the Aqara app.
@sdavides, are all the items shown in the screenshots exposed to HA using your addon? I’m really interested in the pan/tilt feature which I can see in the screenshot. But I can’t tell what the links named “Premi” means in your setup, since it appears to be using both Italian and English. (A translate web search didn’t help either
).
Premi = Push button
@sdavides . Thanks for all your work!
I installed the AqaraPOST addon which created 83 entities. The entities work well and I have access to PTZ actions. What I didn’t understand is how to display the camera feed in the dashboard. Because the AqaraPost addon didn’t create an entity that allows me to retrieve the feed. For the moment I’m using the Go2rtc module which gives me the RTSP feed and WebRTC (HACS) source to add the card that will be able to display the video of this feed in the dashboard. But I wanted to use the “Picture Glance” card to display the feed from my camera. Except that it’s impossible without the camera entity that returns the feed to me.
Issue #2: the camera’s privacy mode partially works in HA. Indeed, if I activate the button from the Nodered companion, it works, but if I call the entity in a dashboard card (ie, a WebRTC card or a button card), all the G3 controls are disabled (ie, i can’t use PTZ action), but the camera hardware part for activating the privacy mode is not activated. I mean, when the privacy mode is activated from a card, the front of the camera should display a cute sleeping face, but it does not. Nothing happens on the camera itself.
Issue #3: Some entities are not working:
- button.camera_g3_ptz_allUP
- button.camera_g3_ptz_allDOWN
- button.camera_g3_ptz_allRIGHT
- button.camera_g3_ptz_allLEFT
1:
my addon does not handle video. i use go2rtc with webrtc, you can add PTZ controls in the webrtc card by creating scripts tied to the PTZ button and add them above the video by adding the settings you find in my repository.
“AqaraPOST-Homeassistant/webrtc_ptz_setting at main · sdavides/AqaraPOST-Homeassistant · GitHub”
2:
when i use “video active on/off” button my camera hides inside
3:
I fixed the flow
update:
- delete “flow.json” (addon folder)
- restart addon
as described at the bottom you do not have access to the rtsp link unless you enable telnet to see the username or password or remove authentication, then you can use rtsp://xxx…
Previously with go2rtc it was able to connect with homekit but lately it does not work so I use
aqara_g3_720rtsp: - rtsp://192.168.1.4:8554/720p
on go2rtc setting and
type: custom:webrtc-camera
url: rtsp://localhost:8554/aqara_g3_720rtsp?mp4
mode: webrtc
ui: true
muted: true
style: >-
.mode {display: none} .pictureinpicture{display: none} .screenshot{display:
none} .ptz{opacity: initial}
background: true
ptz:
service: script.aqara_ptz_cam
data_left:
direction: left
data_right:
direction: right
data_up:
direction: up
data_down:
direction: down
card_mod:
style:
.: >
.ptz-move {margin-top: 60px; background-color: rgba(0, 0, 0,
0)!important;}
on card
#1 solved : Go2RTC + Script for PTZ added ![]()
#2 issue is still there. Privacy Mode not working from the dashboard. Lets say a button card with switch.camera_g3_video_active as entity + a WebRTC card showing the feed:
If i click the button to turn on Privacy Mode, nothing happen (but every functions of the camera are disabled) until i leave the dashboard, Then the camera lens hide inside. When i go back to the dashboard, something is triggering the Privacy Mode because it turn off automatically and the camera lens is not hidden anymore. Again, if i leave the dashboard, the camera lens hide inside. All of this happens when the Privacy Mode is initially turned Off. In fact, it seems when Privacy Mode is turned On, the camera (the hardware part) will be triggered only when no one is watching the stream and it hide the camera lens. If one personne (atleast) watch the stream from the dashboard (and maybe from go2rtc but i need to give it a try), the Privacy Mode will be turned off automatically even if it was turned On previously, then camera functions like PTZ will be enabled. I know… this is weird.
So, for now Privacy Mode cannot be enabled properly in HA.
#3 updated the nodered json file and i can confirm you ptz allLeft/Right/Up/Down is working. Thx! ![]()
yes, it seems there is no way to get that rtsp link. So i use Go2RTC to get the stream source url. I had to select Apple Homekit in Go2RTC. But the stream quality is not at its best.


