Main features


The script is designed to notify users on continuous events, e.g. uninterrupted motion during several seconds.

You can activate notifications on the following events:

Event typeScreenshotEvent description
Signal Lost/Restored(плюс)Signal loss / recovery
Motion Start/Stop(плюс)Motion detected / stopped
Fire Detected/Stopped(плюс)Fire/Smoke detected / stopped
Connection Lost/Established(минус)Connection to device loss / recovery
Disconnected From/Connected To(минус)

Disconnection / connection to server

Object Entered/Left the Zone(плюс)

Entrance to / leaving the zone

Output Low to High/High to Low(минус)

Alarm output closing / opening

Input Low to High/High to Low(минус)

Alarm input closing / opening

DP Objects Inside More/Less than(плюс)

Exceeding/Decreasing the number of objects in the area (neurodetector)

Notification types:

  • screenshots_folder/my_sound.wav
  • SNES-startup.wav
  • alarm.wav
  • bell.wav
  • boxing-bell-1.wav
  • boxing-bell-3.wav
  • cardlock-open.wav
  • chime.wav
  • chip001.wav
  • chip019.wav
  • chip069.wav
  • cordless-phone-ring.wav
  • countdown.wav
  • dialtone.wav
  • ding.wav
  • horn-beep.wav
  • phone-beep.wav
  • police2.wav
  • ship-on-fog.wav
  • ships-bell.wav
  • spin-up.wav
  • tada1.wav
  • tape-slow9.wav

Installation:


Add script in AutomationCreate new script... → Load example... → From file...

After the loading, press "Save and Run" and configure the script's settings.

Settings:

ParameterPossible valuesDescription
Events
  • Signal Lost/Restored, Channels
  • Motion Start/Stop, Channels
  • Fire Detected/Stopped, Channels
  • Connection Lost/Established, IP Devices
  • Disconnected From/Connected To, Servers
  • Object Entered/Left the Zone, SIMT zones
  • Output Low to High/High to Low, Alarm inputs
  • DP Objects Inside More/Less than, Neurdetector
Event types the script will operate with.
DP Objects Inside More/Less than1-50 peopleMaximum number of people in the zone, exceeding which generates the DP Objects Inside... event.
Inform about
  • Both events, 
  • First event,
  • Second event, 

Tells the script on which events to notify.

 For example, Events = Signal Lost/Restored

Inform about = First event.

Only Signal Lost events notifications will be received.

Event duration, sec1 - 999999 seconds

Minimum duration of an event after which a notification is sent.

For example, Event duration = 5

All events shorter than 5 seconds will be ignored


ParameterPossible values

Description

Only selected objects

Comma-separated list of objects. Optional parameter

Object names must be unique and must NOT contain commas!

Specifies with which objects the script will work.

If not specified, it works with all available objects.

Work by schedule (Red)

Имя предварительно созданного расписания.
Не обязательный параметр

Скрипт будет отправлять уведомления только в красной зоне расписания, если оно выбрано.
Add screenshotTrue/FalseTrue - adds a screenshot to the notification
False - sends text message only
Make online screenshotTrue/FalseTrue - saves online screenshot while sending notification
False - saves screenshot at the moment of event creation
Russian notificationsTrue/False

True - notifications are sent in Russian.
False - notifications are sent in English.

Debug modeTrue/FalseDebug mode (saves detailed logs)

ParameterPossible valuesDescription
Play soundTrue/False

True – activates sound notification

Sound file
  • screenshots_folder/my_sound.wav
  • SNES-startup.wav
  • alarm.wav
  • bell.wav
  • boxing-bell-1.wav
  • boxing-bell-3.wav
  • cardlock-open.wav
  • chime.wav
  • chip001.wav
  • chip019.wav
  • chip069.wav
  • cordless-phone-ring.wav
  • countdown.wav
  • dialtone.wav
  • ding.wav
  • horn-beep.wav
  • phone-beep.wav
  • police2.wav
  • ship-on-fog.wav
  • ships-bell.wav
  • spin-up.wav
  • tada1.wav
  • tape-slow9.wav

Audio file to play.

You can add your own audio file.

To do this:

  1. Rename the file to wav
  2. Add the file to the screenshots folder
  3. Select screenshots_folder/my_sound.wav in the script parameters



The file must be in wav format.

Pop-upTrue/FalseTrue - activates notification in lower right corner.
Image width, px100-4320 px

The width of the image in the popup window.

The height changes in proportion to the original image.

Pop-up with buttonTrue/False

True - activates notification in the window, which is closed by the "Ok" button.

The notification will automatically closed in 60 seconds.

Image width, px100-4320 px

The width of the image in the popup window.

The height changes in proportion to the original image.

Уведомления отправляются через телеграмм бота @trassirbot

To send notifications via Telegram, the script must be run on the Trassir server
On the Trassir client, the script will cause an error ERROR: Server Key Error: Server key is not available

For the script to work, access to the server part of the bot is required, you can check it by following link.

ParameterPossible valuesDescription
EnableTrue/FalseTrue - activates sending messages via @trassribot
Telegram id's

Unique Telegram ID of a recipient

You can specify several comma separated ids

A list of ids of notification recipients.

Send /tbot command to @trassirbot.

You will receive a message with your ID.


In case an incorrect ID is specified, a Chat not found error will appear.

Push notifications

In order to send notifications to Trassir Cloud it is required to create an incident and specifiy in Token field. Reas more about incidents.

ПараметрВозможные значенияОписание
EnableTrue/FalseTrue - activates sending notifications via Trassir Cloud
Token

Unique Incident Token

ParameterPossible valuesDescription
EnableTrue/FalseTrue - activates sending messages to e-mail.
Email account nameE-Mail account name

Необходимо указать имя предварительно созданного аккаунта E-Mail

Account name is case sensitive.

In case an account name is misspelled, Can't find account error will appear.

 Can't find account

Send to emails

Recipient's email

You can specify several comma separated recipients

A list of email addresses for sending notifications.

In case an email address is incorrect, an E-mail is not valid error will appear.



ParameterPossible valuesОписание
EnableTrue/FalseTrue – activates alarm output closing
GPIO OutAlarm output

User login

Work mode
  • high - close
  • high-low – close, open
  • low - open
  • low-high - open, close

Alarm output work mode

Delay, sec

Секунд

Time period between action (for high-low/low high work mode)

ПараметрPossible valuesDescription
EnableTrue/FalseTrue - activates screenshot sending to FTP
HostIP address

FTP server IP address

PortPort

FTP connection port

Username

User

Username to connect to FTP
PasswordPasswordPassword to connect to FTP
Working directoryFTP working directoryThe directory to which the screenshots will be saved. If it does not exist, it will be created
Passive modeTrue/FalseTrue – activates FTP passive work mode
Check connectionTrue/FalseTrue – activates FTP connection check upon the script start

Download



  • Нет меток