You've already forked STARK
mirror of
https://github.com/MarkParker5/STARK.git
synced 2025-07-02 22:36:54 +02:00
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
from .SmartHome import *
|
|
from ArchieCore import Response
|
|
|
|
################################################################################
|
|
|
|
@Command.new(['(открыть|открой) (окно|окна)', '(подними|поднять) (шторы|роллеты)'])
|
|
def mainLight(params):
|
|
SmartHome.send({
|
|
'target': 'main_light',
|
|
'cmd': 'light_on',
|
|
})
|
|
voice = text = ''
|
|
return Response(text = text, voice = voice)
|
|
|
|
################################################################################
|
|
|
|
@Command.new(['включи* подсветку'])
|
|
def ledOn(params):
|
|
SmartHome.send({
|
|
'target': 'led',
|
|
'cmd': 'led_on',
|
|
})
|
|
voice = text = ''
|
|
return Response(text = text, voice = voice)
|
|
|
|
################################################################################
|
|
|
|
@Command.new(['выключи* подсветку'])
|
|
def ledOff(params):
|
|
SmartHome.send({
|
|
'target': 'led',
|
|
'cmd': 'led_off',
|
|
})
|
|
voice = text = ''
|
|
return Response(text = text, voice = voice)
|