You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-02 22:36:54 +02:00
20 lines
483 B
Python
20 lines
483 B
Python
![]() |
from .SmartHome import *
|
||
|
################################################################################
|
||
|
|
||
|
def method(params):
|
||
|
SmartHome.send({
|
||
|
'target': 'main_light',
|
||
|
'cmd': 'light_on',
|
||
|
})
|
||
|
voice = text = ''
|
||
|
return {
|
||
|
'type': 'simple',
|
||
|
'text': text,
|
||
|
'voice': voice,
|
||
|
}
|
||
|
|
||
|
keywords = {}
|
||
|
patterns = ['* (включ|выключ)* свет *']
|
||
|
main_light = SmartHome('main_light', keywords, patterns)
|
||
|
main_light.setStart(method)
|