Fixed
- RESTFul / MQTT data not updating after nightly Envoy reset (22:57–23:10 window):
handleErrorwas clearingjwtToken.tokenon every 401 response, forcing a 30-second delay and a full JWT re-fetch from the Enlighten API even when only the session cookie had expired; now onlytokenValidis invalidated —checkTokenalready checksexpires_atindependently- cron 23:10 restart changed to
runOnStart=falseto prevent all update handlers firing simultaneously right after the Envoy reset, which caused cascading 401 errors handleWithLocknow catches exceptions thrown bycheckToken(e.g. fromvalidateToken) instead of leaking unhandled promise rejections
Changed
Characteristic.Shedule→Characteristic.Schedule(class name corrected; UUID unchanged)Service.AcBatterieService→Service.AcBatteryService,Service.AcBatterieSummaryService→Service.AcBatterySummaryService(class names corrected; UUIDs unchanged)ApiUrls.EnchrgeStatus→ApiUrls.EnchargeStatus,ApiUrls.InternalMeterRevelsalEid→ApiUrls.InternalMeterReversalEid- corrected display strings:
"Generstor"→"Generator","Powwr on unused phase"→"Power on unused phase","State oF Charge"→"State of Charge","AC Batterie"→"AC Battery","Shedule"→"Schedule",acvoltagehighline2/acvoltagelowline2descriptions fixed - removed unused imports
XMLBuilder,XMLValidatorfromenvoydata.js - internal variable renames:
lockControTime→lockControlTime,generatorModeContols→generatorModeControls,comsumptionNet→consumptionNet - missing
awaitadded toaxiosInstance.putinsetEnchargeSettings
What's Changed
- Potential fix for code scanning alert no. 1: Workflow does not contain permissions by @grzegorz914 in #228
Full Changelog: v10.6.0...v10.6.11