Home Automation script. It monitors samba-share, which stores videos from Aqara Doorbell G4. This repository has an Ansible playbook to configure and deploy it to your home media server. Especially this solution is good if you don't want to give Agara Doorbell direct access to the internet.
- Configure samba-server on your Home server
- Open Aqara app
- Choose your Doorbell
- Device Settings
- Dorbell Settings
- SD Card Storage
- NAS (Network Attached Storage)
- Configure connection to your NAS
- Generate your own password
openssl rand -base64 32 > ansible_deploy/vault_password
- Create your own
inventory.yml
- Generate encrypted values for it with command
ansible-vault -v encrypt_string --vault-password vault_password 'your_password_here' --name 'ansible_become_pass'
- Fill
ansible_user
- Fill
ansible_host
- Fill
ansible_become_pass
And others if you need
- Generate encrypted values for it with command
- Generate your own ssh-key
ssh-keygen
and add it toansible_host
with commandssh-copy-id -f ~/.ssh/id_rsa user@host
- Make deploy script executable
chmod +x ./deploy.sh
- Copy env file and change values there as you need ```cp .env.example .env`
TG_BOT_TOKEN=123:eijfijerfijf
TG_CHAT_ID=123
MONITORING_FOLDER_VIDEO=/videos/aqara
- Just run
./deploy.sh
This project is licensed under the MIT License - see the LICENSE file for details.