Use the right handlers for Zigbee network online/offline events
This commit is contained in:
parent
f74c44c7fb
commit
76800e00b1
1 changed files with 8 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue