Use the right handlers for Zigbee network online/offline events

This commit is contained in:
Fabio Manganiello 2020-02-25 18:38:44 +01:00
parent f74c44c7fb
commit 76800e00b1

View file

@ -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({