Alice updates
This commit is contained in:
@@ -36,12 +36,12 @@ class AliceScenes(hass.Hass):
|
|||||||
self.turn_off_light()
|
self.turn_off_light()
|
||||||
if (entity_name == "night_mode"):
|
if (entity_name == "night_mode"):
|
||||||
self.night_mode()
|
self.night_mode()
|
||||||
if (entity_name == "turn_on_coffeemachine"):
|
if (entity_name == "away_mode"):
|
||||||
self.turn_on_coffeemachine()
|
self.away_mode()
|
||||||
if (entity_name == "turn_on_coffeemachine"):
|
# if (entity_name == "turn_on_coffeemachine"):
|
||||||
self.turn_on_coffeemachine()
|
# self.turn_on_coffeemachine()
|
||||||
if (entity_name == "make_coffee"):
|
# if (entity_name == "make_coffee"):
|
||||||
self.make_coffee()
|
# self.make_coffee()
|
||||||
|
|
||||||
def terminate(self):
|
def terminate(self):
|
||||||
if self.listen_event_handle_list != None:
|
if self.listen_event_handle_list != None:
|
||||||
@@ -56,6 +56,9 @@ class AliceScenes(hass.Hass):
|
|||||||
self.turn_off('group.all_lights')
|
self.turn_off('group.all_lights')
|
||||||
self.call_service("cover/close_cover", entity_id = 'cover.curtain_158d0002b0c46a')
|
self.call_service("cover/close_cover", entity_id = 'cover.curtain_158d0002b0c46a')
|
||||||
|
|
||||||
|
def away_mode(self):
|
||||||
|
self.call_service("alarm_control_panel/alarm_arm_away", entity_id = self.args['ha_panel'])
|
||||||
|
|
||||||
def turn_on_coffeemachine(self):
|
def turn_on_coffeemachine(self):
|
||||||
self.log('Turn on coffeemachine')
|
self.log('Turn on coffeemachine')
|
||||||
self.call_service("mqtt/publish", topic = 'home/coffee/coffee/power/set', payload = 'on')
|
self.call_service("mqtt/publish", topic = 'home/coffee/coffee/power/set', payload = 'on')
|
||||||
|
|||||||
@@ -2,5 +2,6 @@ alice_scenes:
|
|||||||
module: alice_scenes
|
module: alice_scenes
|
||||||
class: AliceScenes
|
class: AliceScenes
|
||||||
alice_prefix: input_boolean.alice_
|
alice_prefix: input_boolean.alice_
|
||||||
|
ha_panel: alarm_control_panel.ha_alarm
|
||||||
global_dependencies:
|
global_dependencies:
|
||||||
- globals
|
- globals
|
||||||
@@ -10,8 +10,7 @@ filter:
|
|||||||
include_entities:
|
include_entities:
|
||||||
- input_boolean.alice_night_mode
|
- input_boolean.alice_night_mode
|
||||||
- input_boolean.alice_turn_off_light
|
- input_boolean.alice_turn_off_light
|
||||||
- input_boolean.alice_turn_on_coffeemachine
|
- input_boolean.alice_away_mode
|
||||||
- input_boolean.alice_make_coffee
|
|
||||||
|
|
||||||
exclude_entities:
|
exclude_entities:
|
||||||
- switch.plug_158d00020f3a29
|
- switch.plug_158d00020f3a29
|
||||||
@@ -21,10 +20,83 @@ filter:
|
|||||||
- switch.domofon_mode
|
- switch.domofon_mode
|
||||||
- switch.domofon_open
|
- switch.domofon_open
|
||||||
- light.gateway_light_f0b429aa1463
|
- light.gateway_light_f0b429aa1463
|
||||||
|
|
||||||
# entity_config:
|
entity_config:
|
||||||
# input_boolean.alice_night_mode:
|
input_boolean.alice_away_mode:
|
||||||
# room: SCENES
|
name: "Я ушёл"
|
||||||
|
room: "Сценарии"
|
||||||
# switch.kitchen:
|
input_boolean.alice_night_mode:
|
||||||
# name: CUSTOM_NAME_FOR_YANDEX_SMART_HOME
|
name: "Спокойной ночи"
|
||||||
|
room: "Сценарии"
|
||||||
|
input_boolean.alice_turn_off_light:
|
||||||
|
name: "Выключи свет"
|
||||||
|
room: "Сценарии"
|
||||||
|
climate.living_room:
|
||||||
|
name: "Термостат"
|
||||||
|
room: "Гостиная"
|
||||||
|
light.yeelight_mono1_f0b429a8f6df:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Гостиная"
|
||||||
|
light.yeelight_color1_34ce008fe328:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Гостиная"
|
||||||
|
light.yeelight_color1_286c071065c7:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Гостиная"
|
||||||
|
light.yeelight_mono1_f0b4290e5444:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Гостиная"
|
||||||
|
light.yeelight_mono1_34ce0087ff33:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Гостиная"
|
||||||
|
switch.wifi_socket:
|
||||||
|
name: "Гирлянда"
|
||||||
|
room: "Гостиная"
|
||||||
|
fan.xiaomi_miio_device:
|
||||||
|
name: "Воздухоочиститель"
|
||||||
|
room: "Гостиная"
|
||||||
|
switch.plug_158d0001104a0c:
|
||||||
|
name: "Телевизор"
|
||||||
|
room: "Гостиная"
|
||||||
|
cover.curtain_158d0002b0c46a:
|
||||||
|
name: "Шторы"
|
||||||
|
room: "Гостиная"
|
||||||
|
light.bath:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Туалет"
|
||||||
|
light.philips_led:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Туалет"
|
||||||
|
light.kitchen_mini_light:
|
||||||
|
name: "Подсветка"
|
||||||
|
room: "Кухня"
|
||||||
|
light.kitchen:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Кухня"
|
||||||
|
switch.plug_158d0001a68c64:
|
||||||
|
name: "Посудомойка"
|
||||||
|
room: "Кухня"
|
||||||
|
switch.plug_158d0001a4cfb4:
|
||||||
|
name: "Стиралка"
|
||||||
|
room: "Кухня"
|
||||||
|
light.hall:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Коридор"
|
||||||
|
switch.plug_158d0001a68b18:
|
||||||
|
name: "Термопот"
|
||||||
|
room: "Кухня"
|
||||||
|
light.yeelight_mono1_f0b429a8d936:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Балкон"
|
||||||
|
light.yeelight_mono1_286c07f12bed:
|
||||||
|
name: "Люстра"
|
||||||
|
room: "Балкон"
|
||||||
|
switch.plug_158d0002924779:
|
||||||
|
name: "Фитолампа"
|
||||||
|
room: "Балкон"
|
||||||
|
vacuum.xiaomi_vacuum_cleaner:
|
||||||
|
name: "Пылесос"
|
||||||
|
room: "Дом"
|
||||||
|
switch.water_valve:
|
||||||
|
name: "Подача воды"
|
||||||
|
room: "Дом"
|
||||||
@@ -13,3 +13,7 @@ alice_turn_on_coffeemachine:
|
|||||||
alice_make_coffee:
|
alice_make_coffee:
|
||||||
name: Сделай кофе
|
name: Сделай кофе
|
||||||
initial: off
|
initial: off
|
||||||
|
|
||||||
|
alice_away_mode:
|
||||||
|
name: Я ушёл
|
||||||
|
initial: off
|
||||||
Submodule hass/settings/custom_components/yandex_smart_home updated: faa54aed7f...37c2403a0a
Reference in New Issue
Block a user