From 939744314e1a4901ed82e54c303b1fab3c3adf1b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 24 Dec 2017 01:33:06 +0100 Subject: [PATCH] Updated sample config --- platypush/config.example.yaml | 36 ++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/platypush/config.example.yaml b/platypush/config.example.yaml index 49e2eade18..8ba31dea7d 100644 --- a/platypush/config.example.yaml +++ b/platypush/config.example.yaml @@ -1,13 +1,11 @@ backend.kafka: disabled: False pusher: True # The pusher executable will use this backend by default - logging: DEBUG server: your_server:9092 topic: platypush backend.pushbullet: disabled: True - logging: DEBUG token: your_pushbullet_token_here device: your_pushbullet_virtual_device_name @@ -16,7 +14,6 @@ backend.local: response_fifo: /tmp/platypush-responses.fifo # device_id: (default: current hostname) -# debug: True (default: False) music.mpd: host: localhost @@ -36,3 +33,36 @@ light.hue: groups: # Default groups you want to manage - 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 +