<?php
namespace ControlScripts\Scopes;
use \SHServ\Middleware\ControlScripts;
use \SHServ\Implements\ControlScriptsInterface;
class KitchenScope extends ControlScripts implements ControlScriptsInterface {
use \ControlScripts\Common;
public function register_sync_map(): void {
$this -> register_global_device_sync_map();
}
public function register_events_handlers(): void {
$this -> auto_button_bindings([
"kitchen_buttons_11" => [],
"kitchen_buttons_2" => [],
]);
}
public function register_actions_scripts(): void {
$this -> add_group_toggle_action("kitchen1_toggle", "Кухня 1", [
"fisrt_floor_big_relay:0",
]);
$this -> add_group_toggle_action("kitchen2_toggle", "Кухня 2", [
"fisrt_floor_big_relay:1",
]);
$this -> add_on_action("kitchen1_on", "Кухня 1 вкл", "fisrt_floor_big_relay", 0);
$this -> add_on_action("kitchen2_on", "Кухня 2 вкл", "fisrt_floor_big_relay", 1);
}
public function register_regular_scripts(): void {}
}