1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-02 22:36:54 +02:00
Files
STARK/SmartHome/main_light.py

20 lines
483 B
Python
Raw Normal View History

2020-11-13 23:27:41 +02:00
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)