Mmodarre / pyfujitsu_for_homeassistant

MIT License
31 stars 33 forks source link

ModuleNotFoundError: No module named 'pyfujitsu' #8

Open jasejman2000 opened 5 years ago

jasejman2000 commented 5 years ago

I seem to be getting a -- ModuleNotFoundError: No module named 'pyfujitsu' -- error when I try to run this on 0.92. I'm pretty green to this whole thing so I might just be doing something wrong.

brent0np commented 5 years ago

Whenever I have these sorts of issues I start following the instructions again from the beginning, redoing every step, even if I feel I did it right or it looks right. If you still have issues you will need to paste your config (relevant to this addon) and show your folder structure where the addon is installed.

Mmodarre commented 5 years ago

I experienced the issue as well. I checked and the pyfujitsu packaged was already downloaded but it was not accessible to the module. I updated the manifest.json to include the dependency but still the same issue. Finally a restart of the whole device (host) resolved the issue.

jasejman2000 commented 5 years ago

I experienced the issue as well. I checked and the pyfujitsu packaged was already downloaded but it was not accessible to the module. I updated the manifest.json to include the dependency but still the same issue. Finally a restart of the whole device (host) resolved the issue.

Got it going with your methods which is fantastic. Thanks :-)..

But now I'm getting: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://user-field.aylanetworks.com/users/sign_in.json

Weird!!

brent0np commented 5 years ago

are you using the right secrets/apid's? Can you login with the app ok?

https://community.home-assistant.io/t/add-support-for-fujitsu-wireless-air-conditioning-control-app-fglair/65999/39?

jasejman2000 commented 5 years ago

I'm not sure. I'm in Australia. All my apps login fine. Which ones should I be using for my territory?

brent0np commented 5 years ago

I'm in Australia and mine worked without changing anything.

chiefcomm commented 5 years ago

I'm not sure. I'm in Australia. All my apps login fine. Which ones should I be using for my territory?

Also in Australia (Sydney) all works perfectly as documented with Hass.IO & Android APP. I'm using 0.92.2.

brent0np commented 5 years ago

Jase has it ever worked for you or is this a new config?

jasejman2000 commented 5 years ago

Never worked so a new config. Does user name and password need to be in quotes or something? I've tried everything that I can think of.

brent0np commented 5 years ago

I have mine configured as a ! secret:

configuration.yaml

climate:

secrets.yaml

FGLair_username: username@email.com FGLair_password: password

jasejman2000 commented 5 years ago

That got it!!! Works like a charm now!! Thanks so much!!

meichthys commented 4 years ago

@Mmodarre, I believe this issue can be closed.

meichthys commented 4 years ago

I can also confirm that a reboot of the host machine fixed this regardless of a config check error.