mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-02-17 11:55:35 +02:00
17 lines
469 B
Python
17 lines
469 B
Python
from .SmartHome import *
|
|
from Command import Response
|
|
################################################################################
|
|
|
|
def method(params):
|
|
SmartHome.send({
|
|
'target': 'main_light',
|
|
'cmd': 'light_on',
|
|
})
|
|
voice = text = ''
|
|
return Response(text = text, voice = voice)
|
|
|
|
keywords = {}
|
|
patterns = ['* (включ|выключ)* свет *']
|
|
main_light = SmartHome('main_light', keywords, patterns)
|
|
main_light.setStart(method)
|