Git Product home page Git Product logo

frigidaire's People

Contributors

atogle avatar karlg100 avatar marekbrz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

frigidaire's Issues

"New" Frigidaire app/api questions

Hey, I just got a brand new cool connect window AC and this plugin doesn't appear to work, and I'm thinking it has to do with Frigidaire having a new app (https://apps.apple.com/us/app/frigidaire-2-0/id1500302958).

Am I right in my assumption that this is not the api/app you reverse engineered?

If so, I started playing around with Charles to see if maybe I could inspect what requests were being made and I'm pretty sure this app is actually doing certificate pinning which means I got nothing. Did you have to go through a similar process or have any advice beyond some of the instructions I found of jailbreaking my device to install a modified ipa file?

Need your help

Hi Good Sir,

Great work so far. It seems I'm connecting with the API but My AC doesn't work anymore.

Either it's so cold that my AC doesn't work or something happened when I started using this library. I'll update you in a bit. In the mean time what data can I provide you that will allow you to assist me.

uhhh "feature request" maybe? node red.

I know nothing about writing my own nodes for nodered. it would be awesome if this were packaged up into one.

Just throwing the idea out into the aether.

TypeError: Cannot read property 'attributes' of undefined

I'm trying to install the module for homebridge and it's has this uncaught exception.

TypeError: Cannot read property 'attributes' of undefined
    at /homebridge/node_modules/homebridge-frigidaire/node_modules/frigidaire/lib/frigidaire.js:439:58
    at Request._callback (/homebridge/node_modules/homebridge-frigidaire/node_modules/frigidaire/lib/frigidaire.js:285:14)
    at Request.self.callback (/homebridge/node_modules/homebridge-frigidaire/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/homebridge/node_modules/homebridge-frigidaire/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-frigidaire/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1220:12)

SyntaxError: Unexpected token u in JSON at position 0

[6/5/2021, 3:03:47 PM] SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at Request._callback (/usr/local/lib/node_modules/homebridge-frigidaire/node_modules/frigidaire/lib/frigidaire.js:236:42)
    at self.callback (/usr/local/lib/node_modules/homebridge-frigidaire/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.onRequestError (/usr/local/lib/node_modules/homebridge-frigidaire/node_modules/request/request.js:877:8)
    at ClientRequest.emit (events.js:315:20)
    at TLSSocket.socketErrorListener (_http_client.js:469:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
[6/5/2021, 3:03:47 PM] Got SIGTERM, shutting down Homebridge...

deadlock when deviceList disappears

Something happens over time when the deviceList gets unpopulated, and all the other calls stack up. This causes the framework (eg. homebridge) to become completely non-responsive.

This is probably because of a crash somewhere else in the plugin that also needs to be fixed. But a crash should never cause a runway situation. The plugin functions should self destruct after so many attempts.

Because the init() is only called now when auth fails, the deviceList never gets repopulated and the whole plugin causes a compounding avalanche of calls to build up.

  • add a counter to trigger init() after so many retries of deviceList not being populated
  • add a counter to all other calls to die after MAX_ATTEMPTS and not retry forever

Error -3001 auth error

[6/5/2021, 4:19:44 PM] [Frigidaire] Initializing Frigidaire platform...
Sat, 05 Jun 2021 20:19:44 GMT frigidaire getTelem()
Sat, 05 Jun 2021 20:19:44 GMT frigidaire get()
Sat, 05 Jun 2021 20:19:44 GMT frigidaire no sessionId, starting auth sequence
Sat, 05 Jun 2021 20:19:44 GMT frigidaire authStage1()
Sat, 05 Jun 2021 20:19:44 GMT frigidaire attempts: 0
Sat, 05 Jun 2021 20:19:49 GMT frigidaire auth error
Sat, 05 Jun 2021 20:19:49 GMT frigidaire resetAll()
Error: getaddrinfo EAI_AGAIN api.latam.ecp.electrolux.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {
  errno: -3001,
  code: 'EAI_AGAIN',
  syscall: 'getaddrinfo',
  hostname: 'api.latam.ecp.electrolux.com'
}

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.