P093 - Mitsubishi Heat Pump plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

P093 - Mitsubishi Heat Pump plugin

#1 Post by TungstenE2 » 27 Apr 2020, 11:05

Hi all,

I recently saw release updates for P093 - Mitsubishi Heat Pump plugin
but I do not find any discussion or details in the forum or the plugin list.

What is the plugin status?

Missing in plugin list:
https://www.letscontrolit.com/wiki/inde ... lugin_list

Documentation:
https://espeasy.readthedocs.io/en/lates ... /P093.html

I would like to use this plugin on my MSZ-AP35VG heat pump.

Questions:

Accoording to parts list I need JST PA 5-pin 2.0mm for CN105 connector but I only find JST PH 5-pin 2.0mm on ebay.

Does anybody know the difference between JST PA and JST PH connector?

Can somebody provide me with a link for JST PA connector with shipping to Germany?

thx

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#2 Post by TungstenE2 » 27 Apr 2020, 11:15

Ok, found the latest plugin list:

https://espeasy.readthedocs.io/en/lates ... lugin.html

@Admins: please redirect old plugin list URL to latest URL.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#3 Post by TungstenE2 » 28 Apr 2020, 11:27

How to select TX and RX GPIOs? They are greyed out and can not be selected running Release ESP_Easy_mega-20200426_test_ESP8266_4M1M_VCC.bin
Attachments
P093-GPIO.PNG
P093-GPIO.PNG (40.65 KiB) Viewed 37090 times

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P093 - Mitsubishi Heat Pump plugin

#4 Post by TD-er » 28 Apr 2020, 12:04

If they are greyed out, it means you have the Serial port used for something else.
Go to tools -> Advanced and disable serial there.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#5 Post by TungstenE2 » 28 Apr 2020, 12:15

thx, solved, Advanced settings -> Serial port needs to be disabled
just discovered myself and found your reply afterwards.... ;-)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P093 - Mitsubishi Heat Pump plugin

#6 Post by TD-er » 28 Apr 2020, 13:12

TungstenE2 wrote: 28 Apr 2020, 12:15 thx, solved, Advanced settings -> Serial port needs to be disabled
just discovered myself and found your reply afterwards.... ;-)
Always good to get confirmation then :)

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#7 Post by TungstenE2 » 28 Apr 2020, 15:59


Flying Domotic
Normal user
Posts: 37
Joined: 27 Aug 2019, 23:57

Re: P093 - Mitsubishi Heat Pump plugin

#8 Post by Flying Domotic » 30 Apr 2020, 23:39

You may find cables at http://www.usastore.revolectrix.com/Pro ... 5-Position (takes around 3 weeks in non corona-virus days to come to France ;-).

I didn't choose ESPeasy to manage mines, but https://github.com/SwiCago/HeatPump, with one MSZ-SF35VE3-E1, one MSZ-SF20VA-E4 and a couple of MSZ-SF15VA-E4. They're sending data to MQTT, and integrated to Domoticz with https://github.com/Masurov/Domoticz-Mit ... QTT-Plugin.

Instead of ESP-01, I used few D1-mini with cables directly soldered on PCB (no pull-up, internal voltage regulator)

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#9 Post by TungstenE2 » 01 May 2020, 09:06

thx, I already saw that link. Cable price is normal, but shipping is very expensive to Germany.

I ordered:

https://www.ebay.de/itm/JST-PH-2-0mm-St ... 3607216953

https://www.ebay.de/itm/10x-PAP-05V-S-S ... 3981567619

Only found connector with no cables, so I will take cables from PH and put them into PA.

So the plan...

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#10 Post by TungstenE2 » 04 May 2020, 16:45

correction, as the cable did not fit the connector.


https://www.ebay.de/itm/80x-SPHD-001T-P ... 3852709397

Eisbahn
Normal user
Posts: 14
Joined: 06 Jul 2020, 10:30

Re: P093 - Mitsubishi Heat Pump plugin

#11 Post by Eisbahn » 06 Jul 2020, 10:47

Can someone give me some "raw" MQTT examples on how the controlling the aircon is working? I try to send out MQTT messages, but I could not see any reaction of the aircon itself. Reading is working fine and I do get the actual status:

Code: Select all

Klima_OG_SZ/aircon/settings:{"roomTemperature":25.5,"wideVane":"|","power":"ON","mode":"COOL","fan":"QUIET","vane":"1","iSee":false,"temperature":24.0}
But If I send some commands mentioned here https://espeasy.readthedocs.io/en/lates ... /P093.html I get no reaction. What I'm sendig out is e.g.

Code: Select all

Klima_OG_SZ/aircon/settings:{"power":"OFF"}
or
Klima_OG_SZ/aircon/settings/cmd:{"MitsubishiHP,power,OFF"}
Do I need to pass the complete JSON to change just one of the parameters or is the topic wrong?
Any help is highly welcome.

Best, Jürgen
Last edited by Eisbahn on 06 Jul 2020, 10:56, edited 1 time in total.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P093 - Mitsubishi Heat Pump plugin

#12 Post by TD-er » 06 Jul 2020, 10:55

Without knowing the specifics of that plugin, I do like to reply to the given MQTT message.

Code: Select all

Klima_OG_SZ/aircon/settings:{"power":"OFF"}
How do you send this to the MQTT broker?
I assume the first ":" is the separator between the topic and the message?
Maybe you should take a look with some tools like MQTT toolbox, or MQTT explorer (Windows store, really good and extensive tool) to see if the message is actually delivered to the topic you'd expect.

Also make sure you subscribe to the right topic.

And as a last thought. I didn't know this plugin was also subscribing to MQTT topics. Is it?
If it needs MQTT import, then the string type messages will very likely not work.

Eisbahn
Normal user
Posts: 14
Joined: 06 Jul 2020, 10:30

Re: P093 - Mitsubishi Heat Pump plugin

#13 Post by Eisbahn » 06 Jul 2020, 15:51

Hello TD-er,

thanks for your help, managed it by in a quite similar way with try and error and cheking the source https://github.com/letscontrolit/ESPEas ... ishiHP.ino due to missing documentation. As the setting and internal state reporting use different topics, a MQTT logger does not help that much (as you don't see the hidden/unused "set" topics" and just see the "state reports" on the ETH/WiFI which I posted). also I was confused by having it named "settings" but being a state report....
Maybe one of youd mods could add it in the doc page of the interface https://espeasy.readthedocs.io/en/lates ... /P093.html how it works to help others. Because beside this small lack of documentation I could fully confirm a perfect work and function. What about taking following into the docs:

How it works to use the "set" instructions:
correct topic you need is

Code: Select all

"your state report topic" + "/cmd" (without quotes)
. As an example my state report topic is

Code: Select all

Klima_OG_SZ/aircon/settings
which leads to the correct topic for the "real" set commands

Code: Select all

Klima_OG_SZ/aircon/settings/cmd
By knowing the correct topic, you could now send the command as message as it's stated in the docs, e.g. to turn the aircon on

Code: Select all

Klima_OG_SZ/aircon/settings/cmd MitsubishiHP,power,ON
. No JSON, just pure text, no quotes, no spaces is expected as the MQTT message.

Don't get confused by the "state report" example named as settings and don't think of JSON for the set commands ;-)

Best, Jürgen

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P093 - Mitsubishi Heat Pump plugin

#14 Post by TD-er » 06 Jul 2020, 17:35

I made a reminder for it:
https://github.com/letscontrolit/ESPEasy/issues/3158

Is this plugin subscribing itself to these MQTT topics?
Or do you have a specific MQTT controller, like OpenHAB which implements to subscribe to the `cmd` sub topic?
The commands you gave are just in the ESPEasy command format.

Eisbahn
Normal user
Posts: 14
Joined: 06 Jul 2020, 10:30

Re: P093 - Mitsubishi Heat Pump plugin

#15 Post by Eisbahn » 06 Jul 2020, 19:15

I'm not that MQTT expert, but what I'm having: mosquitto as a broker and there I don't see the client (here: ESPeasy) subcribes to it's cmd oned. It does for the status report one (Klima_OG_SZ/aircon/settings), but not to the cmd ones. Otherwise it would have been very easy, as I could have checked them (e.g. in mosquitto, by MQTT explorer or whatever tool) by checking the subscriptions ;-) Most likely you mean something like homeassistance discovery, but that is something I don't like as it's not needed (if all topics are included in the docs). So finding the clue to append the cmd one was the tricky part, the rest was just try in JSON, try in plain...
Never used ESP before and was more addicted to Tasmota as it supports SSL for security (now I've set up everything in parallel on another port...) So sorry for my stupid questions and that the format is common within ESP.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#16 Post by TungstenE2 » 02 Mar 2021, 12:54

@Eisbahn did you manage to controll the plugin via MQTT?

By now I only managed to receive status using MQTT in FHEM, but I would also like to controll the heat pump using MQTT.

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#17 Post by TungstenE2 » 02 Mar 2021, 12:57


TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: P093 - Mitsubishi Heat Pump plugin

#18 Post by TungstenE2 » 02 Mar 2021, 16:41

managed to controll my heat pump using the HTTP commands below:

commad syntax:
http://<ESP IP address>/control?cmd=MitsubishiHP,power,ON

samples:

Code: Select all

http://192.168.178.107/control?cmd=MitsubishiHP,temperature,20

http://192.168.178.107/control?cmd=MitsubishiHP,power,ON
http://192.168.178.107/control?cmd=MitsubishiHP,power,OFF

http://192.168.178.107/control?cmd=MitsubishiHP,mode,HEAT
http://192.168.178.107/control?cmd=MitsubishiHP,mode,COOL
http://192.168.178.107/control?cmd=MitsubishiHP,mode,AUTO

http://192.168.178.107/control?cmd=MitsubishiHP,fan,AUTO

http://192.168.178.107/control?cmd=MitsubishiHP,vane,AUTO

http://192.168.178.107/control?cmd=MitsubishiHP,widevane,SWING

IRo
New user
Posts: 4
Joined: 26 Sep 2022, 08:56

Re: P093 - Mitsubishi Heat Pump plugin

#19 Post by IRo » 26 Sep 2022, 12:19

Is P093 plugin compatible with MitsubishiHpMQTT-Plugin for Domoticz?

I'm using ESPEasy "mega_20220809_collection_D_ESP8266_4M1M.bin" (includes plugin P093) to control Mitsubishi heatpump. I can control heatpump with HTTP-commands, but not via MQTT using Domoticz&MitsubishiHpMQTT-Plugin.

P009 spec says ESPEasy will publish MQTT message with payload {"roomTemperature":25.5,"wideVane":"|","power":"OFF","mode":"COOL","fan":"AUTO","vane":"AUTO","iSee":true,"operating":true,"compressorFrequency":5,"temperature":24.0}

My MQTT Explorer shows ESPEasy is sending heatpump's current settins to MQTT-broker using format {"idx":1,"RSSI":6,"nvalue":0,"svalue":"{'roomTemperature':21.0,'wideVane':'|','power':'ON','mode':'HEAT','fan':'AUTO','vane':'1','iSee':true,'operating':false,'compressorFrequency':4,'temperature':19.0}"}
Domotitcz log shows that MQTT-message is received, no errosr but no action so far.

If I manually publish same information in format {"idx":1,"RSSI":6,"roomTemperature":25.5,"wideVane":"|","power":"OFF","mode":"COOL","fan":"AUTO","vane":"AUTO","iSee":true,"operating":true,"compressorFrequency":5,"temperature":24.0}
Domoticz Domotitcz log shows that MQTT-message is received and updates relatedDomoticz paremeters.

Looks like "mega_20220809_collection_D_ESP8266_4M1M.bin" plugin P093 is not compatible with Domoticz&MitsubishiHpMQTT-Plugin? Should it be ?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P093 - Mitsubishi Heat Pump plugin

#20 Post by TD-er » 26 Sep 2022, 13:15

P093 is sending data with type Sensor_VType::SENSOR_TYPE_STRING;
This is right now still experimental.
I think we may need to make all variables in this plugin available via 'virtual' taskvalues, like is done in the Level plugin.

Thus something like this (with task name "HP" in this example)
- [HP#roomTemperature]
- [HP#power]
- etc.

This way you could copy those to some dummy task or use them in rules.
To be honest, when seeing these parameters, I have no idea why this plugin needs to be of type string.

Edit:
The suggested syntax is for me a proposal to make changes into the code, not indicating that it is already implemented.

IRo
New user
Posts: 4
Joined: 26 Sep 2022, 08:56

Re: P093 - Mitsubishi Heat Pump plugin

#21 Post by IRo » 26 Sep 2022, 14:10

Thanks for your quick responce.
So, current P093 is not compatible with Domoticz&MitsubishiHpMQTT-Plugin.
For getting my system up-and-runnig...
do you know if there are some older ESPEasy/P093 releases having specifed type of MQTT-message
e.g. {"roomTemperature":25.5,"wideVane":"|","power":"OFF","mode":"COOL","fan":"AUTO","vane":"AUTO","iSee":true,"operating":true,"compressorFrequency":5,"temperature":24.0}

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P093 - Mitsubishi Heat Pump plugin

#22 Post by Ath » 26 Sep 2022, 14:29

You could try the HomeAssistant/OpenHAB MQTT controller, as that won't include the idx and svalue/nvalue fields used by Domoticz.
/Ton (PayPal.me)

IRo
New user
Posts: 4
Joined: 26 Sep 2022, 08:56

Re: P093 - Mitsubishi Heat Pump plugin

#23 Post by IRo » 28 Sep 2022, 08:18

HomeAssistant/OpenHAB MQTT controller did not help, MQTT is not compatible with Domoticz&MitsubishiHpMQTT-Plugin. Might to be reasonably to switch to original SwiCago/HeatPump, for me too many unknown issues regarding ESPEasy and Domoticz&MitsubishiHpMQTT-Plugin compatibility.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P093 - Mitsubishi Heat Pump plugin

#24 Post by TD-er » 28 Sep 2022, 13:03

IRo wrote: 28 Sep 2022, 08:18 HomeAssistant/OpenHAB MQTT controller did not help, MQTT is not compatible with Domoticz&MitsubishiHpMQTT-Plugin. Might to be reasonably to switch to original SwiCago/HeatPump, for me too many unknown issues regarding ESPEasy and Domoticz&MitsubishiHpMQTT-Plugin compatibility.
Just an idea as temporary hack until we have fixed this...
You could publish this to a separate topic and then use MQTT import plugin to actually parse the JSON and strip out whatever you need.

It is quite a work-around and maybe it is easier to actually adapt the P093 plugin to allow to split the values before sending them to the controller.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P093 - Mitsubishi Heat Pump plugin

#25 Post by Ath » 28 Sep 2022, 13:31

That will require a Custom.h defined build, as the Collection builds only include a limited version of MQTT Import, without the JSON parsing and filtering feature available...
/Ton (PayPal.me)

IRo
New user
Posts: 4
Joined: 26 Sep 2022, 08:56

Re: P093 - Mitsubishi Heat Pump plugin

#26 Post by IRo » 03 Oct 2022, 18:49

Thanx for your idea to use Using HomeAssistant/OpenHAB MQTT controller in ESPEasy. Domoticz now understands MQTT message published by ESPEasy. From Domoticz to ESPEasy MQTT connection fails, but I can handel it using HTTP-commands. So my system to control Mitsubish heatpum with Domoticz is up-and-running. :D

borisk
New user
Posts: 2
Joined: 04 May 2023, 13:45

Re: P093 - Mitsubishi Heat Pump plugin

#27 Post by borisk » 04 May 2023, 13:53

TD-er wrote: 26 Sep 2022, 13:15 P093 is sending data with type Sensor_VType::SENSOR_TYPE_STRING;
This is right now still experimental.
I think we may need to make all variables in this plugin available via 'virtual' taskvalues, like is done in the Level plugin.

Thus something like this (with task name "HP" in this example)
- [HP#roomTemperature]
- [HP#power]
- etc.

This way you could copy those to some dummy task or use them in rules.
To be honest, when seeing these parameters, I have no idea why this plugin needs to be of type string.

Edit:
The suggested syntax is for me a proposal to make changes into the code, not indicating that it is already implemented.
Would you mind pointing me into direction what the recommended way should/would be of exposing values (currently there are 10 values reported by an AC unit) and I'll try to make it happen ... Plugin now sends json string which is easy to process in i.e. openhab which I'm using ... and have been using this plugin for years now and works like a charm in 4 ACs ... Thx in advance.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P093 - Mitsubishi Heat Pump plugin

#28 Post by Ath » 04 May 2023, 21:07

ESPEasy only allows up to 4 values to be made available to a Controller, but there is a way to get all available values, and I'll implement that in a PR soon.
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P093 - Mitsubishi Heat Pump plugin

#29 Post by Ath » 04 May 2023, 23:27

I've created PR #4647 that adds the possibility to retrieve all available (and enabled) values from the device, like available in the json file, so you can use that in rules to send where you need it.
For downloads see below. (Need to be logged in to Github to be able to download)
Last edited by Ath on 05 May 2023, 21:08, edited 1 time in total.
/Ton (PayPal.me)

borisk
New user
Posts: 2
Joined: 04 May 2023, 13:45

Re: P093 - Mitsubishi Heat Pump plugin

#30 Post by borisk » 05 May 2023, 09:08

Wow, thank you for the (very!) prompt feedback and PR! Yeah, if I remember correctly the reason for picking string and json was actually
ESPEasy only allows up to 4 values to be made available to a Controller
and I was not aware of PLUGIN_GET_CONFIG_VALUE. Will try to flash one of my ACs over the weekend and let you know the result. Thx again.

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P093 - Mitsubishi Heat Pump plugin

#31 Post by Ath » 05 May 2023, 21:08

I've made a few improvements, downloads available form this Actions run
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests