Duplicate Messages Presented to the Home App Though Only One Message is Defined
Opened this issue · 1 comments
randomparity commented
After installing homebridge-messenger (v0.0.8) on Homebridge v1.7.0 (HAP v0.11.1) and configuring a pushover message, I'm seeing two instances of the message "Office Presence":
Even though only one instance is defined:
{
"name": "Office Presence",
"services": {
"pushover": {
"user": "xxxxxxxx",
"token": "yyyyyyyy"
},
"email": {
"smtpPort": 8080
}
},
"messages": [
{
"name": "Presence Detected",
"type": "pushover",
"text": "Hillsboro Office",
"priority": 0,
"sound": "pushover"
}
],
"accessory": "HomebridgeMessenger"
}
This is unexpected. Configuration was performed through the UI, not by editing the JSON file directly. Host is running Debian 12. Updating node.js from v18.19.0 to v20.10.0 did not make a difference. Message log is as follows:
[1/4/2024, 3:33:40 PM] [HB Supervisor] OS: Linux 6.5.11-7-pve x64
[1/4/2024, 3:33:40 PM] [HB Supervisor] Node.js v20.10.0 /opt/homebridge/bin/node
[1/4/2024, 3:33:40 PM] [HB Supervisor] Homebridge Path: /var/lib/homebridge/node_modules/homebridge/bin/homebridge
[1/4/2024, 3:33:40 PM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[1/4/2024, 3:33:41 PM] [Homebridge UI] Homebridge UI v4.54.2 is listening on :: port 8581
[1/4/2024, 3:33:41 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[1/4/2024, 3:33:41 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 47662
[1/4/2024, 3:33:41 PM] Loaded config.json with 2 accessories and 2 platforms.
[1/4/2024, 3:33:41 PM] Loaded 1 cached accessories from cachedAccessories.
[1/4/2024, 3:33:41 PM] ---
[1/4/2024, 3:33:41 PM] Loaded plugin: homebridge-magic-occupancy@3.3.0
[1/4/2024, 3:33:41 PM] Registering accessory 'homebridge-magic-occupancy.MagicOccupancy'
[1/4/2024, 3:33:41 PM] ---
[1/4/2024, 3:33:41 PM] Loaded plugin: homebridge-messenger@0.0.8
[1/4/2024, 3:33:41 PM] Registering accessory 'homebridge-messenger.HomebridgeMessenger'
[1/4/2024, 3:33:41 PM] ---
[1/4/2024, 3:33:41 PM] Loaded plugin: homebridge-ring@12.1.0
[1/4/2024, 3:33:41 PM] Registering platform 'homebridge-ring.Ring'
[1/4/2024, 3:33:41 PM] ---
[1/4/2024, 3:33:41 PM] Loading 2 platforms...
[1/4/2024, 3:33:41 PM] [Ring] Initializing Ring platform...
[1/4/2024, 3:33:41 PM] Loading 2 accessories...
[1/4/2024, 3:33:41 PM] [Hillsboro] Initializing MagicOccupancy accessory...
[1/4/2024, 3:33:42 PM] [Hillsboro] Setting state to Unoccupied
[1/4/2024, 3:33:42 PM] [Office Presence] Initializing HomebridgeMessenger accessory...
[1/4/2024, 3:33:42 PM] [Office Presence] Added Main Switch : Office Presence
[1/4/2024, 3:33:42 PM] [Office Presence] Main Switch status : false
[1/4/2024, 3:33:42 PM] [Office Presence] Added pushover : Presence Detected
SawkeeReemo commented
Same problem here. Anyone find a fix for this yet?