> For the complete documentation index, see [llms.txt](https://vesta-guide.gitbook.io/vesta-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vesta-guide.gitbook.io/vesta-guide/spain-es/vesta-434.md).

# VESTA-434

## Introducción

Esta guía explicará cómo funciona la integración del megáfono con VESTA. Aprenderás sobre el proceso de configuración, las funciones clave y cómo maximizar la efectividad de esta integración.

<figure><img src="/files/c6a0daaacd6298a07f20a11e3d69d57d82a5e5a1" alt=""><figcaption></figcaption></figure>

## 🔐 Acceso local

Los siguientes son los datos de acceso local al megáfono:

<table data-header-hidden><thead><tr><th width="350"></th><th></th></tr></thead><tbody><tr><td>IP PREDETERMINADA</td><td>192.168.5.200</td></tr><tr><td>NOMBRE DE USUARIO PREDETERMINADO</td><td>admin</td></tr><tr><td>CONTRASEÑA PREDETERMINADA</td><td>admin</td></tr></tbody></table>

## Cargar nuevo archivo de audio

<figure><img src="/files/0087256076608b81e2fb50706bd8c856e6e08f0a" alt=""><figcaption><p>Para cargar un nuevo archivo mp3</p></figcaption></figure>

{% hint style="info" %}
Recuerda habilitar en ALARMA -> URL HTTP (Play File Enable)
{% endhint %}

<figure><img src="/files/5ce1df0862309853edc06676d8e841df74f46823" alt=""><figcaption></figcaption></figure>

## 📢 Comandos HTTP para reproducir pistas de audio en VESTA

### 🔊 **Ejemplos de acciones API Play**

**Acción Detener:**&#x20;

* <http://192.168.0.155/api/play?action=stop>

**Comenzar a reproducir bell1:**&#x20;

* <http://192.168.0.155/api/play?action=start\\&file=bell1>

**Comenzar a reproducir userfile1 una vez con volumen 10**:&#x20;

* <http://192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=once\\&volume=10>

**Comenzar a reproducir userfile1 varias veces (10 veces) con volumen 20:**

* <http://192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=multiple\\&count=10\\&volume=20>

**Comenzar a reproducir userfile1 durante una duración específica (10 veces) con volumen 30:**&#x20;

* <http://192.168.0.155/api/play?action=start\\&file=userfile1\\&mode=duration\\&count=10\\&volume=30>

## Activando una cuña de audio desde VESTA

{% hint style="success" %}
Estos **HTTP** comandos pueden ir directamente en las acciones de reglas de VESTA. Por ejemplo, podemos programar una regla que en caso de alarma lance la cuña de audio 1 en el megáfono: Creamos una regla con lo siguiente:&#x20;

* ***DISPARADOR:** Alarma -> Cualquier alarma*&#x20;
* ***CONDICIONES:** Na*&#x20;
* ***ACCIONES:** HTTP ->* <http://192.168.0.155/api/play?action=start\\&file=><mark style="color:rojo;">userfile1</mark>
  * *<mark style="color:rojo;">userfile1</mark>*: Este es el primer archivo mp3 que subimos al megáfono
    {% endhint %}

<figure><img src="/files/62d39c016b65b6767c18fa95277c3ce93aa62bfc" alt=""><figcaption><p>Ejemplo de regla en VESTA</p></figcaption></figure>

***

## Descargar guía manual completa

{% file src="/files/0d122a96603b48f6bea1733a1e6e0912b2c7564a" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://vesta-guide.gitbook.io/vesta-guide/spain-es/vesta-434.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
