Closed ambarusa closed 1 year ago
After digging into mqtt-control.sh
-> common_functions.sh
-> motion_detection()
and get_config()
functions, I realised that motion_sensitivity
was not stored in the /system/sdcard/config/motion.conf
file, messing up the future function calls in the flow.
This usually happened to me when the SD card got full, by storing too many captures from motion detections. Not just this parameter, but others got disappeared as well, for example the MQTT username. Keep always in mind to maintain the storage space, and double check if the settings are retained.
Description
My Xiaomi Dafang camera doesn't react to Home Assistant commands, with version 2023.11.
What did you do to debug the issue
I used MQTT Explorer to see the traffic from the HA, where everything seemed normal, it publishes
ON
command to/motion/detection/set
topic. On the camera, I was trying to runmqtt_control.sh
script manually, which throws this error:Evidence
Please let me know whatever you need.
Contribute Back
If your issue was resolved, please consider contributing back to the project by creating a pull request to improve the code or documentation in order to avoid that this issue arises again for other people.
Thank you very much!