rjdekker / MHI2MQTT

Arduino-based WiFi/MQTT controller for wireless operation of a Mitsubishi Heavy Industries air conditioner through its serial CNS port
MIT License
130 stars 26 forks source link

Only get subscription response from Roomname/Aircon/# #9

Open gamblor999 opened 5 years ago

gamblor999 commented 5 years ago

Thankyou for sharing this awesome writeup. I am using a RPI with openhab2 and mosquitto and can subscribe to Roomname/Aircon/# (giving me the response = "MHI2MQTT connected to MQTT broker at 192.168.1.148:1883" however any other subscriptions i enter return nothing eg. Roomname/Aircon/State Roomname/Aircon/Fanspeed etc

this is the first time i have used mqtt so am i doing something wrong here or do i need to reflash the arduino pro ? appreciate any help with this.

The only thing you may want to add on your readme for future users is that they should not get the latest version of ArduinoJSON (6) as the INO file requires (5.x) and pops up with errors in the Arduino IDE for the latest version of this library. The only other thing was that on the ESP8266 webpage the maximum character length for the host name is (16 characters) i was trying to debug my code with an online hostname (m16.cloudmqtt.com) but would not fit in the field. That said i could never create the awesomeness that you have here!!

gamblor999 commented 5 years ago

Hi Rob, I have tried numerous times to reflash both the ESP with your exact settings and Arduino pro mini, I have an SRK variety split system (pretty much identical to your picture here). I can get the broker to connect to the default "Roomname/Aircon/#" and then all the subscribe items get listed however no status messages are ever sent to the broker. I am completely stumped as to what I am doing wrong.

Cheers Glen

ThomasHFWright commented 4 years ago

@gamblor999 did you ever figure this out? I'm trying to get this setup working on my MHI units and none of my commands are getting through to the Aircon unit. I can set debug mode on, and set the Setpoint etc, but there's no reaction from the unit and I never get any of the status topics sent back.

I did have trouble flashing the ESP8266 module with Arduino IDE. I ended up having to use the nodemcu-flasher instead, but don't know whether this might have screwed anything up.

gamblor999 commented 4 years ago

Unfortunately I never solved this problem, tried multiple mqtt brokers, reflashed countless times. I also tried a couple of different Mitsubishi wifi air conditioners to no success.

Sent from my iPhone

On 27 Oct 2019, at 11:02 am, Thomas Wright notifications@github.com wrote:

@gamblor999 did you ever figure this out? I'm trying to get this setup working on my MHI units and none of my commands are getting through to the Aircon unit. I can set debug mode on, and set the Setpoint etc, but there's no reaction from the unit and I never get any of the status topics sent back.

I did have trouble flashing the ESP8266 module with Arduino IDE. I ended up having to use the nodemcu-flasher instead, but don't know whether this might have screwed anything up.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

gamblor999 commented 4 years ago

@ThomasHFWright I got it working with the nodemcu finally thanks to help from absaloms github - details here

https://github.com/absalom-muc/MHI-AC-Ctrl/issues/7

ThomasHFWright commented 4 years ago

@ThomasHFWright I got it working with the nodemcu finally thanks to help from absaloms github - details here

absalom-muc/MHI-AC-Ctrl#7

Excellent! I'll give this a try in April when I'm back with my units

ThomasHFWright commented 4 years ago

@ThomasHFWright I got it working with the nodemcu finally thanks to help from absaloms github - details here

absalom-muc/MHI-AC-Ctrl#7

@gamblor999 I'm not back with my units and eager to try and get this project finished :) Did you end up using the same hardware as on this project? Or did you have to buy the hardware listed on MHI-AC-Ctrl? I'm a novice at this and the other project seems quite advanced, requiring getting a PCB printed which I'm not even sure how to do! Plus a different version of the ESP8266, I have the ESP-01 ESP8266 WiFi Module from this project

gamblor999 commented 4 years ago

No I used my own hardware (nodemcu and a pololu voltage regulator)

Sent from my iPhone

On 29 Mar 2020, at 4:40 am, Thomas Wright notifications@github.com wrote:

 @ThomasHFWright I got it working with the nodemcu finally thanks to help from absaloms github - details here

absalom-muc/MHI-AC-Ctrl#7

@gamblor999 I'm not back with my units and eager to try and get this project finished :) Did you end up using the same hardware as on this project? Or did you have to buy the hardware listed on MHI-AC-Ctrl? I'm a novice at this and the other project seems quite advanced, requiring getting a PCB printed which I'm not even sure how to do! Plus a different version of the ESP8266, I have the ESP-01 ESP8266 WiFi Module from this project

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Allinijhof commented 8 months ago

@gamblor999 I am facing similar issues, I do receive feedback on the IMG_20231027_001330 roomname/aircon/service topic, I also receive feedback when sending commands to the Arduino Pro Mini hence the feedback has been generated by the ESP8266 (it's part of the script...).

So the problem has been linked to the Arduino Pro Mini, have you been able to fix the issue after all?

Lieta2 commented 5 months ago

Same here.

aaronactive commented 2 months ago

Trying to get this working in 2024 and going by the MHI-AC-Ctrl post it seems the SRK20ZSA-W models (which is what I have) has a different signature that isn't recognised by this code.

Looking at line 27 of MHI-SPI2ESP.ino

const byte rx_frameSignature[3] = { 0x6C, 0x80, 0x04 };

It would seem 0x6C needs to be changed 0x6D (which in the posts above has been noted to be the signature of said model)

EDIT - Looks like this works now!

leMax6608 commented 2 months ago

Trying to get this working in 2024 and going by the MHI-AC-Ctrl post it seems the SRK20ZSA-W models (which is what I have) has a different signature that isn't recognised by this code.

Looking at line 27 of MHI-SPI2ESP.ino

const byte rx_frameSignature[3] = { 0x6C, 0x80, 0x04 };

It would seem 0x6C needs to be changed 0x6D (which in the posts above has been noted to be the signature of said model)

EDIT - Looks like this works now!

Hi. I have the same ac and the same issue. Mqtt just doesn‘t show the values of the climate. I tried your method but it didn‘t worked. Do you have an idea why this isn‘t working?

aaronactive commented 2 months ago

Not sure - This worked for me across 4 units - Just make sure you are flashing properly and also make sure the connections are good between the ESP and the Arudino - I had some very weird issues and it came to a connection problem. This was after I got it working though.

As soon as the wifi is configured you should see the arduino login to the MQTT broker. It will have your name entry that you used in the configuration options, IP address, etc - You need to make sure this is correct first up. (Make sure IP, login details for MQTT are right in the config) Settings - Addons - MQTT Broker - Logs

And in the Listener - Settings - Devices - MQTT - Configure - Listen to a Topic Enter "yourcustomname/Aircon/#" Start Listening

Ervinmici commented 1 month ago

Hi, I have srf model and did everything as described. Steugled a bit with flashing esp 01, but i made it. After connecting to the unit i got the subscription message on the broker and nothing else. I dont recieve any state or send any command.

Any idea? My model is described in the description as tested