Updated sample config
This commit is contained in:
parent
7b97a5b229
commit
939744314e
1 changed files with 33 additions and 3 deletions
|
@ -1,13 +1,11 @@
|
||||||
backend.kafka:
|
backend.kafka:
|
||||||
disabled: False
|
disabled: False
|
||||||
pusher: True # The pusher executable will use this backend by default
|
pusher: True # The pusher executable will use this backend by default
|
||||||
logging: DEBUG
|
|
||||||
server: your_server:9092
|
server: your_server:9092
|
||||||
topic: platypush
|
topic: platypush
|
||||||
|
|
||||||
backend.pushbullet:
|
backend.pushbullet:
|
||||||
disabled: True
|
disabled: True
|
||||||
logging: DEBUG
|
|
||||||
token: your_pushbullet_token_here
|
token: your_pushbullet_token_here
|
||||||
device: your_pushbullet_virtual_device_name
|
device: your_pushbullet_virtual_device_name
|
||||||
|
|
||||||
|
@ -16,7 +14,6 @@ backend.local:
|
||||||
response_fifo: /tmp/platypush-responses.fifo
|
response_fifo: /tmp/platypush-responses.fifo
|
||||||
|
|
||||||
# device_id: <your_device_id> (default: current hostname)
|
# device_id: <your_device_id> (default: current hostname)
|
||||||
# debug: True (default: False)
|
|
||||||
|
|
||||||
music.mpd:
|
music.mpd:
|
||||||
host: localhost
|
host: localhost
|
||||||
|
@ -36,3 +33,36 @@ light.hue:
|
||||||
groups: # Default groups you want to manage
|
groups: # Default groups you want to manage
|
||||||
- Living Room
|
- Living Room
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# --- Event hooks configuration
|
||||||
|
# ---
|
||||||
|
|
||||||
|
event.hook.AssistantConversationStarted:
|
||||||
|
if:
|
||||||
|
type: platypush.message.event.assistant.ConversationStartEvent
|
||||||
|
then:
|
||||||
|
action: shell.exec
|
||||||
|
args:
|
||||||
|
cmd: 'aplay /path/conv_start.wav'
|
||||||
|
|
||||||
|
event.hook.MusicPlayAssistantCommand:
|
||||||
|
if:
|
||||||
|
type: platypush.message.event.assistant.SpeechRecognizedEvent
|
||||||
|
phrase: "play (the)? music" # Regexes on single terms are supported
|
||||||
|
then:
|
||||||
|
action: music.mpd.play
|
||||||
|
|
||||||
|
event.hook.LightsOnAssistantCommand:
|
||||||
|
if:
|
||||||
|
type: platypush.message.event.assistant.SpeechRecognizedEvent
|
||||||
|
phrase: "turn on (the)? lights"
|
||||||
|
then: # Multiple actions are supported
|
||||||
|
-
|
||||||
|
action: light.hue.on
|
||||||
|
args:
|
||||||
|
groups: Living Room
|
||||||
|
-
|
||||||
|
action: switch.wemo.on
|
||||||
|
args:
|
||||||
|
device: Bulbs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue