-
Notifications
You must be signed in to change notification settings - Fork 17
Examples Integration
caiosweet edited this page Jun 1, 2023
·
3 revisions
In order to better manage the various notification services, it is recommended to use the service name and optionally a specific name. Why this? Because, for example, the service for sending an image can change from one notification service to another.
notify:
### TELEGRAM
- name: telegram
platform: telegram
chat_id: !secret telegram_chatid
- name: telegram_micasa
platform: telegram
chat_id: !secret telegram_micasa
- name: telegram_news
platform: telegram
chat_id: !secret telegram_news
- name: Telegram Test Nome NOTIFICA
platform: telegram
chat_id: !secret telegram_test
### GRUPPO NOTIFICHE
- name: alert
platform: group
services:
- service: telegram
- service: pushover
- service: pushbullet
### DISCORD
- name: discord
platform: group
services:
- service: discord_bot
data:
target:
- !secret discord_bot_target
### GOOGLE ASSISTANT WEB SERVER
- name: Google Assistant
platform: rest
resource: http://192.168.1.3:5000/broadcast_message
- name: Google Assistant Command
platform: rest
resource: http://192.168.1.3:5000/command
### ASSISTANT RELAY
- name: Google Assistant
platform: rest
resource: http://192.168.1.101:3000/assistant
headers:
Content-Type: application/json
method: POST_JSON
message_param_name: command
data:
user: USER
broadcast: true
### WHATSAPP
- name: WhatsApp
platform: rest
resource: https://api.callmebot.com/whatsapp.php
data:
source: HA
phone: !secret whatsapp_phone
apikey: !secret whatsapp_apikey
tts:
- platform: google_translate
language: 'it'
cache: true
cache_dir: /config/www/tts
time_memory: 300
base_url: !secret internal_url # or external_url
- platform: reversotts
language: "Fabiana-Italian"
bitrate: "128k"
pitch: "100"
- platform: reversotts
language: 'Chiara-Italian'
pitch: "100"
bitrate: "22k"
- platform: google_cloud
key_file: text-to-speech.json
voice: it-IT-Standard-B
encoding: linear16
speed: 0.9
pitch: -2.5
gain: 3.0
profiles:
- small-bluetooth-speaker-class-device