feat: Implement Tapo P110/P115 power and energy monitoring, add Tapo device testing utilities, and include a database upsert test.
This commit is contained in:
@@ -670,13 +670,20 @@ const dashboardHTML = `<!DOCTYPE html>
|
||||
isOnline ? 'online' : 'offline'
|
||||
);
|
||||
} else {
|
||||
// Show toast for other events
|
||||
showToast(
|
||||
device.mac,
|
||||
\`\${component}.\${field}\`,
|
||||
\`\${event}\`,
|
||||
'event'
|
||||
);
|
||||
// Suppress high-frequency power and RSSI events from notifications
|
||||
if ((component.startsWith('power') && (field === 'apower' || field === 'aenergy')) ||
|
||||
(component === 'wifi' && field === 'rssi') ||
|
||||
(component === 'rf' && field === 'rssi')) {
|
||||
// Do not show toast
|
||||
} else {
|
||||
// Show toast for other events
|
||||
showToast(
|
||||
device.mac,
|
||||
\`\${component}.\${field}\`,
|
||||
\`\${event}\`,
|
||||
'event'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Re-render the specific device card
|
||||
|
||||
Reference in New Issue
Block a user