AI Control | Know-how
  • Xin chào - Hello!
  • FAQ - Hỏi - Đáp
    • Sử dụng ứng dụng Savant Pro App
  • Các ý tưởng về tự động hóa nhà ở
    • Nút nhấn thông minh ON OFF
    • Điều khiển Dimmer - 1 Phím
  • Savant Tips & Tricks
    • Savant - Ring Doorbell & Cameras
      • Savant - Ring X
      • Ring X - Warranty & Support
      • Ring X Line
    • Xác định và khắc phục các sự cố tích hợp Camera
    • Thiết bị khuyến nghị sử dụng khi Kiểm tra và Bảo trì hệ thống
    • Savant Hosts
      • Yêu cầu cài đặt Mac OS & Savant daVinci OS
      • So sánh tính năng Savant Host
    • Hiển thị mật khẩu Camera trong Racepoint BluePrint
    • So sánh truyền thông RS232 vs RS485
      • Sơ đồ chân cổng giao tiếp RS-232, RS-485
      • Sự cố thường gặp với RS-232 và RS-485 Savant
    • Savant REM-4000i
      • REM-4000 - không hiển thị hình ảnh.
      • REM-4000 Screen - Bị nháy
    • Savant Pro Remote Troubleshooting Guide REM-1000
    • Thiết lập Google DNS trên các thiết bị Savant Music Streamer
    • Sử dụng Trigger
    • Workflow gửi email
    • Trigger từ keypad điều khiển
    • Sử dụng Trigger - Lighting Scene
    • Thiết lập Countdown Timer
    • Apple TV Homekit - Savant
  • Thi công, lắp đặt - Tips & Tricks
    • Lưu ý lắp đặt chuông cửa Savant / 2N
    • Lắp đặt đế âm tường cho công tắc, ổ cắm, màn hình cảm ứng
    • Tủ điện thanh DIN âm tường thường gặp
  • AI Control
  • Savant
  • Legrand Việt Nam
  • Điều khiển điều hòa không khí VRV/VRF
    • Daikin VRV
    • Panasonic
    • Gateways - 3rd Parties
    • Mitsubishi VRF
    • Hitachi Hisense
    • Toshiba VRF
    • DR-Fan ERV Modbus Protocol
  • Điều khiển Rèm cửa, động cơ
    • Rèm cửa tự động RS485
    • Các loại điều khiển động cơ qua tiếp điểm khô - Dry Contact
    • Dooya Motors - Động cơ rèm Dooya
    • A-OK Motors | Động cơ rèm A-OK
    • Rèm cuận Somfy RS485
    • TOSO Motors - Động cơ rèm Toso (Progress 50)
    • Động cơ rèm kéo ngang Forest RS485
    • Điều khiển động cơ Novo
  • Điều khiển chiếu sáng
    • Lutron RA2 Select
      • Geo Fencing
    • Philips Hue
      • Tạo User ID và tìm ID bóng đèn - Hue Bridge - Savant Integration.
      • Philips Hue Developer Program API Authen
      • Philips Hue - Geo Fencing
    • DALI
      • DALI - Yêu cầu chung
  • Vantage Controls | Legrand Integrated Systems
    • Hướng dẫn thiết kế đi dây điều khiển Vantage Infusion Bus
  • KNX | EIB
    • KNX Datapoint types
  • ☀️THÔNG TIN THAM KHẢO
    • Tham khảo - P1
      • RJ11 - RJ12
  • Điều khiển Audio/Video
    • Điều khiển Audio Video
    • Mã IR điều khiển Tivi Samsung
    • Bảng mã IR điều khiển Tivi Sony
    • Bảng mã IR điều khiển máy chiếu Sony
    • Điều khiển máy chiếu Barco
  • ĐIỀU KHIỂN TIVI
    • Samsung TV
      • Samsung Tizen TV
  • An ninh
    • Khóa điện tử Yale - Savant
  • LIVING NOW 2M
    • Kỹ thuật chôn box
Powered by GitBook
On this page

Was this helpful?

  1. Savant Tips & Tricks

Workflow gửi email

PreviousSử dụng TriggerNextTrigger từ keypad điều khiển

Was this helpful?

Smart Hosts require a command line script to send email, as they do not have a built-in mail client. A gmail account must be created and associated with the host; this will be the account that emails will be sent from.

Configuring Email on a Smart Host

The following instructions are used to set up mail access using a gmail.com account. This script is specific to gmail.com and should not be used to setup email for other email services.

NOTE: The specific steps and menu selections described below are based on the Google®/gmail software/web UI active at the time of writing, and may be subject to change at any time with no notice to Savant. If the steps below do not align with the options presented, note that the general requirements remain the same, and steps should be reasonably modified based on the current options presented to the user at the time.

  1. On the SDE, launch Savant Application Manager (SAM).

  2. Select the appropriate da Vinci release for the host and click Activate.

  3. Open System Monitor from the right menu.

  4. In an open System Scanner window, select the Savant Smart Host.

  5. Click Terminal in the menu bar to open an ssh session with the selected host.

  6. When prompted, enter the password for the host.

  7. At the command prompt type: savantSetGmailAccount

  8. Follow the instructions that appear in the dialog box.

Gmail may block the login from the Smart Host initially. Send a test email via the Host, either by completing the and running the workflow, or by executing the relevant command and arguments to send a test email directly from a terminal command prompt on the Host. IF the test email has not been sent after several minutes, follow the steps below:

  1. Log into the Gmail.com account being used to send the email.

  2. Navigate to the Security Settings of the account.

  3. Approve the "unknown device" that has recently attempted to access the gmail account (this is the Smart Host).

  4. Also in the Security Settings, change "Allow Less Secure Apps"to ON.

NOTE: Two-Factor authentication is not supported for use within the Savant System.

Creating an Email Workflow on a Smart Host

  1. Open a configuration in Blueprint and Generate Services.

  2. In the open View Services window, select a room in the Services For drop-down list.

  3. Double-click the created workflow to open Automator.

  4. In the open Automator window, search for "Run".

  5. Drag the Run Shell Script action into the workflow.

  6. Enter the following into Run Shell Script action based on the Smart Host model being used.

SVR-SMRTD-00 | SVR-SMRTD-10 Smart Host echo "Your Message" | mail -s "Email Subject" recipient@email.com -- -f senderAccount@gmail.com -F "Name of Sender"

SHC-2000-xx Smart Host | SHC-S2 Smart Host echo "Your Message" | /usr/local/bin/rpm/savantMail -s "Email Subject" -r recipient@email.com -f senderAccount@gmail.com -F "Name of Sender"

Substitute Field Values:

Your Message

Example: “This is to inform that the Savant system for [Customer] has been restarted and is back in operation.” Replace [Customer] with the name of the customer.

Email Subject

Example: [Customer] System Has Restarted. Replace [Customer] with the name of the customer.

recipient@email.com

senderAccount

Account name that was setup on the host to send emails. Gmail accounts only.

Name of Sender

Name of as the sender in the email's From: section.

  1. Save the workflow.

  2. Re-generate services, save the Blueprint configuration, and upload to the Host.

IMPORTANT NOTES!

  • A backslash is required before any special character inside the body or subject of the email. The backslash will not show in the message sent. Example: echo "System has Restarted\!" | /usr/local/bin/rpm/savantMail -s "Email Subject" -r recipient@email.com -f senderAccount@gmail.com -F "Name of Sender"

  • In the event that the Host is unable to send a test email, log in to the Gmail account in use, and review the "Device Activity and Security Events" section of the Sign-In and Security settings page. The Savant Host may need to be allowed permission to access the account within this menu.

Under General Programmable Services > Service Requests for the selected room, create a workflow to send an email/text. Example: SystemStartedEmailSend.

In the created Run Shell Script action, set Pass Input: as arguments.

Email address of the recipient. See to send a text in place of an email.

workflow configuration
Sending SMS Text Messages
Graphical user interface, application

Description automatically generated
Graphical user interface, application

Description automatically generated
User-added image