Coder Social home page Coder Social logo

homebridge-sunpower's People

Contributors

dependabot[bot] avatar rgallo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

homebridge-sunpower's Issues

Production no longer being sent through to HomeKit

Describe The Bug:

Getting error in Log

To Reproduce:

Open the log

Expected behavior:

that it should work

Logs:

Sunpower Bridge WARNINGunhandled rejection: TypeError: Cannot read properties of undefined (reading 'production')

Plugin Config:

{
    "platform": "Sunpower",
    "name": "Sunpower",
    "username": "redacted",
    "password": "redacted"
}

Screenshots:

Environment:

  • Plugin Version: 0.1.3
  • Homebridge Version: 1.4.1
  • Node.js Version: 16.15.1
  • NPM Version: it's not listed, whatever the current version is
  • Operating System: Hoobs 4.2.5

Humidity Sensor doesn't work above 100%

[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.

Unexpected end of JSON

Describe The Bug:
When activating the plugin, receiving an error "Unexpected end of JSON"

To Reproduce:

  1. Install plugin with sunpower username and password
  2. Save/activate plugin
  3. Restart homebridge
  4. View log error

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:

  • Plugin Version: homebridge-sunpower v0.1.3
  • Homebridge Version: v1.5.0
  • Node.js Version: v16.15.1
  • NPM Version: Unknown
  • Operating System: Docker/Synology DSM 7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.