absalom-muc / MHI-AC-Ctrl

Reads and writes data (e.g. power, mode, fan status etc.) from/to a Mitsubishi Heavy Industries (MHI) air conditioner (AC) via SPI controlled by MQTT
MIT License
277 stars 62 forks source link

Made WiFi SSID, hostname and MQTT server dynamic #69

Closed WickedDurkie closed 3 years ago

WickedDurkie commented 3 years ago

Hi absalom-muc,

First of all, thanks for your project!

I updated your original project so that you can determine the WiFi SSID, host name and MQTT server when the ESP starts for the first time. For that, you have to connect your WiFi to the ESP_XXXXX accespoint and access 192.168.4.1.

The changes make use of the WifiManager and the latestArduinoJson library.

If you like it, you can merge it, otherwise i will host the changes myself.

absalom-muc commented 3 years ago

Hello WickedDurkie,

Thank you very much for your contribution.

I would prefer to leave the update in your repository. Background of my request is, that I plan midterm to test Tasmota or a similar environment for MHI-AC-Ctrl and I don't want to maintain too many options. If you don't mind, I would add a link here.

WickedDurkie commented 3 years ago

Hi absalom-muc,

No problem. I merged the updated branch into 'my' master repo.

WorlockM commented 2 years ago

@WickedDurkie i tried your project. But it didn't work for me. I can connect to it via Wifi and configure it. It also connects to my Wifi network after that. But it doesn't seem to send or receive any MQTT commands regarding the AC when I look into my MQTT explorer. I only see:

connected = 1
RSSI = -64
fSCK = 0
fMOSI = 520
fMISO = 0

I don't have this problem when using absalom-muc his version...

WickedDurkie commented 2 years ago

I'll try to take a look next week.

WorlockM commented 2 years ago

I'll try to take a look next week.

Great, let me know if I can do any testing for you.

WickedDurkie commented 2 years ago

Hi WorlockM,

Another question. Did you use PubSubClient 2.7 instead of 2.8? There seems to be a problem in 2.8

On Mon, Mar 21, 2022 at 7:04 PM WorlockM @.***> wrote:

I'll try to take a look next week.

Great, let me know if I can do any testing for you.

— Reply to this email directly, view it on GitHub https://github.com/absalom-muc/MHI-AC-Ctrl/pull/69#issuecomment-1074239746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASG56WR5U2NB7DPLBCRU4SDVBC22DANCNFSM5DCRFJFA . You are receiving this because you were mentioned.Message ID: @.***>

WickedDurkie commented 2 years ago

Hi WorlockM,

I tested my airco ESP today and its working like it should. It outputs the mqtt topics under the root topic that is named as the configured host name.

Can you debug and see where it fails?

On Mon, Mar 21, 2022 at 7:04 PM WorlockM @.***> wrote:

I'll try to take a look next week.

Great, let me know if I can do any testing for you.

— Reply to this email directly, view it on GitHub https://github.com/absalom-muc/MHI-AC-Ctrl/pull/69#issuecomment-1074239746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASG56WR5U2NB7DPLBCRU4SDVBC22DANCNFSM5DCRFJFA . You are receiving this because you were mentioned.Message ID: @.***>

WorlockM commented 2 years ago

Sorry for missing your previous post. I moved to another house 2 weeks ago but, so at this moment I don't have my WiFi modules installed. But I do have new MHI airco's so I will be able to, but that will be in a couple of weeks. I will get back to you when I can!