|
|
|
|
62
|
|
62
|
|
63
|
def init_off_functionality(self):
|
63
|
def init_off_functionality(self):
|
64
|
##### TEMPORARY ###################################################################################################################
|
64
|
##### TEMPORARY ###################################################################################################################
|
65
|
- # Off Buttons
|
|
|
66
|
- self.gui_button_all_off = devices.nodered_gui_button(self.mqtt_client, "gui/all/common/off/button")
|
|
|
67
|
- self.gui_button_gfw_off = devices.nodered_gui_button(self.mqtt_client, "gui/gfw/common/off/button")
|
|
|
68
|
- self.gui_button_ffw_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffw/common/off/button")
|
|
|
69
|
- self.gui_button_ffe_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffe/common/off/button")
|
|
|
70
|
- #
|
|
|
71
|
- self.gui_button_all_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.all_off)
|
|
|
72
|
- self.gui_button_gfw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.gfw_off)
|
|
|
73
|
- self.gui_button_ffw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffw_off)
|
|
|
74
|
- self.gui_button_ffe_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffe_off)
|
|
|
|
|
65
|
+ # # Off Buttons
|
|
|
66
|
+ # self.gui_button_all_off = devices.nodered_gui_button(self.mqtt_client, "gui/all/common/off/button")
|
|
|
67
|
+ # self.gui_button_gfw_off = devices.nodered_gui_button(self.mqtt_client, "gui/gfw/common/off/button")
|
|
|
68
|
+ # self.gui_button_ffw_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffw/common/off/button")
|
|
|
69
|
+ # self.gui_button_ffe_off = devices.nodered_gui_button(self.mqtt_client, "gui/ffe/common/off/button")
|
|
|
70
|
+ # #
|
|
|
71
|
+ # self.gui_button_all_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.all_off)
|
|
|
72
|
+ # self.gui_button_gfw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.gfw_off)
|
|
|
73
|
+ # self.gui_button_ffw_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffw_off)
|
|
|
74
|
+ # self.gui_button_ffe_off.add_callback(devices.nodered_gui_button.KEY_STATE, True, self.ffe_off)
|
75
|
##### TEMPORARY ###################################################################################################################
|
75
|
##### TEMPORARY ###################################################################################################################
|
76
|
|
76
|
|
77
|
# ALL OFF - Long push stairway
|
77
|
# ALL OFF - Long push stairway
|