Replies: 13 comments 12 replies
-
will need some help on this one... |
Beta Was this translation helpful? Give feedback.
-
I vote for MQTT, it would be very cool feature which would turn V3 into sensor device. |
Beta Was this translation helpful? Give feedback.
-
With the latest build, once you enable rtsp,
so, cmd waitmotion 1000 waits for motion, for 1000 seconds, then exits once motion is detected. it outputs the coordinates of the motion detected. you could so something like:
To get continuous output for use in a script. This example prints text, takes a high-quality photo and plays a chime sound on the camera. Checkout the sources in libcallback if you want more info on how it works. work in progress... |
Beta Was this translation helpful? Give feedback.
-
here is an idea: Execute script which will play certain *.wav audio file using shell command. in Home Assistant there is an option to execute scripts via shell_command function. It is possible to SSH to external shell prompts from Home Assistant. You can then SSH to any remote machine and perform commands. in example execution of maintanance on remote IP: `shell_command: script: then I can create simple automation to run this script when : alarm is triggered or garage is opened. setting up the SSH rsa keys is a hassle and I was unable to do it. Wanted to read CPU temp from another Debian server and pull the data to Home Assistant. How to setup SSH keys https://siytek.com/home-assistant-shell/ will try it later this week on V3 and run audio_test.sh via SSH command from HA #!/bin/sh |
Beta Was this translation helpful? Give feedback.
-
A workaround to full MQTT support is to use the webhook trigger in homeassistant (which I think makes more sense anyway) - I figured I'd post it here, as it took a little tinkering:
An important note is that the version of wget provided doesn't support https, so you'll have to expose http access if you aren't now. The post-data isn't important, and you can send any number of var1=data&var2=data2 within, which can be accessed from homeassistant. |
Beta Was this translation helpful? Give feedback.
-
i'll try to compile a static version of wget with https, i forgot about that. |
Beta Was this translation helpful? Give feedback.
-
wget with https support will be included in next release! |
Beta Was this translation helpful? Give feedback.
-
release out now: |
Beta Was this translation helpful? Give feedback.
-
just FYI, if you want |
Beta Was this translation helpful? Give feedback.
-
Experimenting with this - currently cmd waitMotion 600 (or any integer >= the minimum of 10) doesn't appear to wait the specified number of seconds and then timeout, instead it checks for motion once, issues "clear" if none, and exits. I have motion tagging enabled on the test camera. Did this behavior change in mmakada's code? The last commit was May 9. |
Beta Was this translation helpful? Give feedback.
-
MQTT with Home Assistant discovery layered on top of wz mini hacks: |
Beta Was this translation helpful? Give feedback.
-
@gtxaspec has this been brought into the core of wz_mini? |
Beta Was this translation helpful? Give feedback.
-
@gtxaspec This would be a really great feature have pulled into wz_mini. Please take a look if you get a chance. Thanks! |
Beta Was this translation helpful? Give feedback.
-
What would it take to add MQTT support
Publishing and subscribing to MQTT bindings will make integration with Homeassistant really useful and eliminate need for frigate or any other host-based accelerated AI detection.
Looking at something similiar in Dafang-Hacks
It seems they have a binary reading state from shared memory that fires off a shell script on motion detection
https://github.com/EliasKotlyar/Xiaomi-Dafang-Software/blob/1cfed9e1735c3bd376f86195318a9067161cb3d3/v4l2rtspserver-master/src/ImpEncoder.cpp#L723
Beta Was this translation helpful? Give feedback.
All reactions