deiger / AirCon

Scripts for controlling Air Conditioners, e.g. with HiSense modules.
GNU General Public License v3.0
212 stars 58 forks source link

Can not Start or edit config #88

Closed zachaj77 closed 3 years ago

zachaj77 commented 3 years ago

Hi,

I installed, but the configuration won't let me save. Every time I try, it changes back to username = null, preventing me from Starting the Add-on.

Installed via HA as in documentation.

ZachAJ

nikogusm commented 3 years ago

Hi Zach, i have the same exact problem. I was hoping to find the config file in the filesystem to edit it manually from the command line but I haven't found the path of AirCon in the home assistant folders so I am stuck in the same exact problem.

I have tried to install it both in Home Assistant OS and Home Assistant Supervised (running on Pi OS): they have the identical issue.

I started and configured MQTT as minimum requirement but it has not solved it.

What we can do?

Nicola

deiger commented 3 years ago

This sounds really strange. This has never been an issue, so it might be a problem in HA's parsing. I deleted the default values for the app. Could you please try again?

nikogusm commented 3 years ago

I tried now and the issue is still there. When I click save, everything I type turns back to the original file and I cannot start the application.

deiger commented 3 years ago

Is this still an issue even if you upgrade to the latest version? I'm not sure what's wrong. Can you paste here your config file (with the username and password replaced)?

Sablic commented 3 years ago

The issue still in place. At least at 0.3.9.

nikogusm commented 3 years ago

Yes. Today I updated home assistant to core 2021.3.4 and AirCon to 0.3.9 but the issue is still here.

Here is my config file that after updating to this version has less lines (???)

log_level: INFO mqtt_host: core-mosquitto mqtt_user: null mqtt_pass: null port: null

and when I click save it reverts to original. Nicola

Sablic commented 3 years ago

BTW. I have checked everything and it seems like docker image pulled. However container is not created. When I tried to create it manually it failed with /data/options.json not existent

fixsssator commented 3 years ago

Thank you for your work. But there is an issue jq: error: Could not open file /data/options.json: No such file or directory

papka1974 commented 3 years ago

Same here. I'm new in Home assistant and thought it's my fault, but seems not. Inside UI configuration not changeable, after save values reverted to default. Under /data folder /c34eddb3_hisense_ac created but it's empty. Tried to place options.json file there - nothing. PS. One strange thing. Inside docker_compose, config is referred as /opt/hisense/options.json. However such folder not exists. Creation of the folder and placing files there not solving problem also.

papka1974 commented 3 years ago

I got it working. I took full options.json file content and pasted it in Configuration page, updated values of course, pressed Save and everything works.

fixsssator commented 3 years ago

I got it working. I took full options.json file content and pasted it in Configuration page, updated values of course, pressed Save and everything works.

You are amazing, thank you for solution.

zachaj77 commented 3 years ago

I got it working. I took full options.json file content and pasted it in Configuration page, updated values of course, pressed Save and everything works.

Worked for me too. Thanks!

roxyamaha commented 2 years ago

I have same problem with launching my hisense_ac container jq: error: Could not open file /data/options.json: No such file or directory @papka1974 where exactly did you paste options.json contents? I'm trying to run it as docker container.

papka1974 commented 2 years ago

I have same problem with launching my hisense_ac container jq: error: Could not open file /data/options.json: No such file or directory @papka1974 where exactly did you paste options.json contents? I'm trying to run it as docker container.

I pasted full content of options.json file in plugin configuration page. Screenshot_20220421-112407_Home_Assistant

roxyamaha commented 2 years ago

Hm, okay. But this doesn't work for me since I'm using containers and need to run hisense_ac from container.