Commit Graph

261 Commits

Author SHA1 Message Date
Yinyin Liu 77f6e0de6c AI-P1: Weekly Performance Report 1.0 2026-02-18 07:36:00 +01:00
Yinyin Liu c076d55407 AI diagnosis UX improvements: status-aware, time-filtered, simpler explanations
- Only show AI diagnosis when installation status is red/orange (not green/offline)
- Filter alarms to last 24 hours to avoid showing outdated issues
- Show alarm name first with "Last seen" timestamp instead of "AI Diagnosis" label
- Update Mistral prompt for shorter, non-technical bullet-point explanations
- Fix Mistral JSON parsing when response wrapped in markdown code fences
- Add TestDiagnoseError endpoint for testing full AI flow without auth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 12:16:35 +01:00
Yinyin Liu 6460328eb0 Safe mode for AI diagnostics, align alarm keys with device enums, and multi-diagnosis frontend
- Remove API key gate so knowledge base works without Mistral key
- Return 204 No Content instead of 500 when no diagnosis available
- Rewrite AlarmKnowledgeBase keys to match Sinexcel property names and Growatt enum names
- Fix SQLite OrderBy crash in DiagnosticService
- Frontend: show latest 3 unique alarms with independent expand/collapse and handle 204

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 11:32:49 +01:00
Yinyin Liu 0c918e86ae Fix build errors: FrozenDictionary (.NET 8) and Flurl 3.x API compatibility
- Replace FrozenDictionary with IReadOnlyDictionary for .NET 6 compat
- Use WithHeader instead of SetHeader for Flurl.Http 3.2.4
- Fix FlurlHttpException error logging for Flurl 3.x

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 07:55:43 +01:00
Yinyin Liu 2da2ded84c Merge branch 'main' into integrated_AI 2026-02-12 07:45:22 +01:00
Yinyin Liu 68f4006f55 Switch AI diagnostics from OpenAI to Mistral and use .env for API key
- Changed API endpoint to api.mistral.ai, model to mistral-small-latest
- Replaced openAiConfig.json with .env file for secure API key storage
- Added .env loader in Program.cs, added .env to .gitignore

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 07:45:16 +01:00
Yinyin Liu 1b6d5a5916 added Overview Page without last week button for SodistoreHome 2026-02-11 13:30:34 +01:00
Yinyin Liu e16fa59771 removed useless db 2026-02-06 14:40:26 +01:00
Yinyin Liu e7f8aacc34 Integrate AI on Alarm 2026-02-06 12:57:12 +01:00
Yinyin Liu 617ab2f782 fixed the bug of Sodistore Home Product not show on side bar and added related backend logs and more accurate frontend error messages 2026-02-03 13:52:20 +01:00
Yinyin Liu d73a85c38d enabled Control Permission for Sinexcel on monitor in frontend 2026-02-03 13:29:18 +01:00
Yinyin Liu 1083bb4091 Update Installation data type and fix solution file 2026-02-02 18:19:07 +01:00
Yinyin Liu bcaac92e34 Fixed Monitor Mailer Issue and added debug logs 2026-02-02 10:20:33 +01:00
Yinyin Liu 77e25aab51 added TimeChargeandDischargePower in backend 2025-12-10 15:21:43 +01:00
Yinyin Liu a1f981a13e added Start/StopTimeChargeandDischargeDayandTime in bakcend 2025-12-10 14:11:39 +01:00
Yinyin Liu da037b7f5a added Control Permission for Growatt configuration in backend 2025-12-03 13:27:00 +01:00
Yinyin Liu 2c50d0944c added Cluster and PV number for SodistoreHome in backend 2025-11-26 15:52:11 +01:00
Yinyin Liu 4b35fca8f2 fixed Configuration timestamp issue when added to History of Action 2025-11-19 11:22:44 +01:00
Yinyin Liu 0df6c26ed6 Added BatteryClusterNumber attribute in backend 2025-11-17 12:19:20 +01:00
Yinyin Liu 13844ebf05 removed SodistoreMax Calibration Discharge Configuration info on History of Action from backend 2025-11-13 14:19:56 +01:00
Yinyin Liu d91090965d fixed configuration message format 2025-10-30 08:20:20 +01:00
Yinyin Liu e4674b41e5 added product_based configuration in the backend of the monitor 2025-10-20 16:32:47 +02:00
Yinyin Liu 692a278f04 added inverterSN and dataloggerSN for sodistorehome in backend 2025-10-14 16:11:31 +02:00
Noe 3795287124 Fixed bug in status update in Backend, update controller to support remote configuration for SodistoreHome installations 2025-09-25 15:07:28 +02:00
Noe 2b1d550571 Update frontend. Fixed CreateInstallation and delete Installation bug 2025-09-11 14:28:49 +02:00
Noe 076dcda4a2 Update backend to support SodioHome installations, update backend controller to support new user access management features 2025-09-01 13:05:39 +02:00
Noe bea24fde97 Remove timestamps from heartbit,
update configuration for discharge
2025-06-26 12:00:40 +02:00
Noe e1b4998d30 Add "Delete data older than one year from each installation" functionality in the backend 2025-06-05 11:06:30 +02:00
Noe 2cb15d6478 Update backend to support SodistoreMax sessions 2025-04-29 16:04:39 +02:00
Noe cf9c96377f Update SodistoreMax code.
Fixed the product to value 3 when sending heartbits.
Deleted prints during aggregation
Updated backend code to support SodistoreMax
2025-04-29 15:08:06 +02:00
Noe 55f6b4baff Update SodistoreMax code 2025-03-17 16:37:22 +01:00
Noe d6267952e9 Frontend supports json for salidomo 2025-02-21 15:25:40 +01:00
Noe ac54fc6e2e frontend ready to implement topology view for sodiohome 2025-01-23 14:33:21 +01:00
Noe 25310a4250 frontend ready to implement index.tsx for Sodiohome 2025-01-21 09:24:35 +01:00
Noe 3ea01e3df0 frontend ready to implement index.tsx for Sodiohome 2025-01-20 10:54:33 +01:00
Noe 4e28d56346 Fixed create installation tab (do not depend on product id) 2025-01-20 08:33:24 +01:00
Noe 7045648622 updated frontend-backend 2025-01-14 13:56:12 +01:00
Noe 074511f6a7 Update dbus-fzsonic skripts 2024-12-16 15:03:27 +01:00
Noe f03325a6a2 Update logos in frontend
Fixed delete installation method (delete read/write keys, read/write roles, buckets)
Fixed bug in not-connected installation in frontend
2024-11-28 14:43:47 +01:00
Noe d6172e6fa8 Fixed bug when updating offline installation in frontend
Update offline table every 1 minute in backend
2024-08-30 14:33:47 +02:00
Noe 2c37150839 Fixed bugs in dbus scripts for Cerbo and Venus 2024-08-20 14:26:14 +02:00
Noe 29a0071881 Updated dbus-fzsonic script for Cerbo and Venus
Fixed main stats in front end
2024-08-16 09:40:19 +02:00
Noe 7db44785be Inserted folder view in backend-frontend
Clients can have access to both products
Apply 20min chunk logic for Salidomo installations
2024-08-12 09:48:16 +02:00
Noe a47314bdf5 Fixed bug when deleting an installation
Set date button works using s3cmd
2024-08-05 16:31:57 +02:00
Noe cce3a6f9bd Enabled set date button in front end
Use s3cmd in backend to search the corresponding timestamps
2024-08-02 16:15:12 +02:00
Noe 524759fdff Fixed bug with username 2024-07-23 15:13:36 +02:00
Noe 615dc7bb92 If testing mode is enabled and action gets deleted, inform all connected installations 2024-07-23 15:00:51 +02:00
Noe 00bec7d6bc Update Websocket manager to support history of actions tab 2024-07-23 14:52:58 +02:00
Noe 95798ba904 History of actions testing mode is enabled in the backend.
All the other connections are updated through the websocket manager
Fixed bug with status value in the front-end
2024-07-23 14:52:10 +02:00
Noe 8244067351 Recover missed files from backend 2024-07-19 12:36:27 +02:00