From 76800e00b1e68f98feebf202fa48b9bcd2d2292e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 25 Feb 2020 18:38:44 +0100 Subject: [PATCH] Use the right handlers for Zigbee network online/offline events --- .../backend/http/static/js/plugins/zigbee.mqtt/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/plugins/zigbee.mqtt/index.js b/platypush/backend/http/static/js/plugins/zigbee.mqtt/index.js index c8ba5e8b70..df4c04c06d 100644 --- a/platypush/backend/http/static/js/plugins/zigbee.mqtt/index.js +++ b/platypush/backend/http/static/js/plugins/zigbee.mqtt/index.js @@ -254,7 +254,14 @@ Vue.component('zigbee-mqtt', { text: 'WARNING: The controller is now offline', error: true, }); - }, 'platypush.message.event.zigbee.mqtt.ZigbeeMqttOnlineEvent'); + }, 'platypush.message.event.zigbee.mqtt.ZigbeeMqttOfflineEvent'); + + registerEventHandler(() => { + createNotification({ + text: 'The controller is now online', + iconClass: 'fas fa-check', + }); + }, 'platypush.message.event.zigbee.mqtt.ZigbeeMqttOfflineEvent'); registerEventHandler(() => { createNotification({