karlg100 / homebridge-frigidaire

homebridge Platform plugin for Frigidaire connected appliances
29 stars 10 forks source link

Incorrect temperature readings #46

Open ct-peter opened 1 year ago

ct-peter commented 1 year ago

When enabled, my air conditioners are showing up in the Home app, but Home is reading a temp of 1ºF. Additionally, when changes are made to the temp or fan speed via the Home app, the AC unit(s) beep to indicate they've received a command, but Home doesn't reflect any change as having been made. Is there any chance of this being resolved? I know Frigidaire seems to be messing around with having just launched yet another new app (as opposed to just updating the existing one) so I don't know if it's worth it or realistic to try to chase their changes. Thank you for the work that's been done to date.

pman193 commented 1 year ago

https://github.com/marekbrz/frigidaire/commit/83425c3f75c73f3e021b88940ba3bd4e09716852 Make these changes and it should work. Worked for me. Used to only show 1º and 60º as target temp. Making this change and rebooting homebridge fixed it.

ct-peter commented 1 year ago

Thank you. At the risk of exposing how illiterate I am, where do I go to make those changes?

pman193 commented 1 year ago

Lol. No worries. My coding skills are limited to cutting and pasting😂. It took me a while to figure it out. It's a file named frigidaire.Js and it's wherever you have Homebridge running from. I have it on a RPi4. I had to first find the file. Then using a command prompt, that I had to Google, I changed the permissions of that file to allow changes and then edited the line of code to show 1 instead of 0 which is what allows the plugin to read the current and target temp.

pman193 commented 1 year ago

image

ct-peter commented 1 year ago

Thank you again for your help. I finally found the frigidaire.js file and was able to edit it but now i'm noticing that even with a fresh install of the plugin, if it's enabled, my homebridge instance can no longer start up. If I have the plugin disabled or uninstalled, hb starts up just fine. No idea what I've done to pooch things, but sadly, I can't seem to make any progress where this plugin is concerned.

pman193 commented 1 year ago

Make sure you go into the plug-in setting and turn on child bridge and that you edit the json file with your email and password.

pman193 commented 1 year ago

"platforms": [ { "platform": "Frigidaire", "username": "joe@gmail.com", "password": "Password1", } ]

ct-peter commented 1 year ago

Make sure you go into the plug-in setting and turn on child bridge and that you edit the json file with your email and password.

That did the trick insofar as (remembering) to turn on child bridge for that plugin. Unfortunately, now it looks like I've moved on to a new issue as the child bridge itself won't start up and is complaining of:

"540 var sessionKey = body.data.sessionKey" TypeError: Cannot read properties of undefined (reading 'sessionKey')

I'll keep looking through everything else posted here and see if I can track down what I've missed.

ct-peter commented 1 year ago

@pman193 that looks like the same issue you ran into too. I found one commit (?) which showed a bunch of stuff to edit in the js file (https://github.com/marekbrz/frigidaire/commit/a13daaa6364b8216abc9818383f479f40e8cb53e). even after doing that, it's still giving me the same error.

if there's anything you did after making those changes that got this working, please let me know. I realize this isn't your day job so I really appreciate any time you're willing to spend pointing me in the right direction.

(for a reasonably technical person, it is maddening to me that I'm having this much difficulty with this... maybe it's a sign I'm getting old!)