rgallo / homebridge-sunpower Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Everything is in this subject and other outstanding issues.
If dead the project should be deleted or at least documented as abandoned?
Describe The Bug:
When activating the plugin, receiving an error "Unexpected end of JSON"
To Reproduce:
Expected behavior:
Plugin activates without error
Logs:
[6/28/2022, 11:26:36 AM] Homebridge v1.5.0 (HAP v0.10.2) (Sunpower) is running on port 38164.
FetchError: invalid json response body at https://elhapi.edp.sunpower.com/v1/elh/authenticate reason: Unexpected end of JSON input
at /homebridge/node_modules/homebridge-sunpower/node_modules/node-fetch/lib/index.js:273:32
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Timeout._onTimeout (/homebridge/node_modules/homebridge-sunpower/src/platform.ts:98:26)
[6/28/2022, 11:27:07 AM] [Sunpower] Child bridge process ended
[6/28/2022, 11:27:07 AM] [Sunpower] Process Ended. Code: 1, Signal: null
[6/28/2022, 11:27:14 AM] [Sunpower] Restarting Process...
[6/28/2022, 11:27:15 AM] [Sunpower] Launched child bridge with PID 3964
[6/28/2022, 11:27:15 AM] Registering platform 'homebridge-sunpower.Sunpower'
[6/28/2022, 11:27:15 AM] [Sunpower] Loaded homebridge-sunpower v0.1.3 child bridge successfully
[6/28/2022, 11:27:15 AM] Loaded 4 cached accessories from cachedAccessories.0E4C57832994.
[6/28/2022, 11:27:15 AM] [Sunpower] Loading accessory from cache: Current Export
[6/28/2022, 11:27:15 AM] [Sunpower] Loading accessory from cache: Current Import
[6/28/2022, 11:27:15 AM] [Sunpower] Loading accessory from cache: Daily Export
[6/28/2022, 11:27:15 AM] [Sunpower] Loading accessory from cache: Daily Import
[6/28/2022, 11:27:15 AM] [Sunpower] Restoring existing accessory from cache: Current Export
[6/28/2022, 11:27:15 AM] [Sunpower] Restoring existing accessory from cache: Current Import
[6/28/2022, 11:27:15 AM] [Sunpower] Restoring existing accessory from cache: Daily Export
[6/28/2022, 11:27:15 AM] [Sunpower] Restoring existing accessory from cache: Daily Import
[6/28/2022, 11:27:15 AM] Homebridge v1.5.0 (HAP v0.10.2) (Sunpower) is running on port 38164.
Plugin Config:
{
"name": "Sunpower",
"username": "[email protected]",
"password": "XXXXXXXXXX",
"platform": "Sunpower",
"_bridge": {
"username": "0E:4C:57:83:29:94",
"port": 38164
}
}
Screenshots:
N/A
Environment:
[homebridge-sunpower] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic was supplied illegal value: number 129.7043318817327 exceeded maximum of 100. See https://git.io/JtMGR for more info.
Describe The Bug:
Getting error in LogTo Reproduce:
Open the logExpected behavior:
that it should workLogs:
Sunpower Bridge WARNINGunhandled rejection: TypeError: Cannot read properties of undefined (reading 'production')
Plugin Config:
{
"platform": "Sunpower",
"name": "Sunpower",
"username": "redacted",
"password": "redacted"
}
Screenshots:
Environment:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.