Skip to content

Home Automation script. Monitoring samba share which stores videos from Aqara Doorbell G4.

License

Notifications You must be signed in to change notification settings

staseek/aqara-doorbell-g4-telegram

Repository files navigation

Aqara Doorbell G4 samba share to Telegram

GitHub license

Table of Contents

About

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.

Getting started

Configure aqara doorbell

  1. Configure samba-server on your Home server
  2. Open Aqara app
  3. Choose your Doorbell
  4. Device Settings
  5. Dorbell Settings
  6. SD Card Storage
  7. NAS (Network Attached Storage)
  8. Configure connection to your NAS

Configure script and deploy it to home server

  1. Generate your own password openssl rand -base64 32 > ansible_deploy/vault_password
  2. 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
  3. Generate your own ssh-key ssh-keygen and add it to ansible_host with command ssh-copy-id -f ~/.ssh/id_rsa user@host
  4. Make deploy script executable chmod +x ./deploy.sh
  5. 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
  1. Just run ./deploy.sh

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Home Automation script. Monitoring samba share which stores videos from Aqara Doorbell G4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published