P093 - Mitsubishi Heat Pump plugin
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
P093 - Mitsubishi Heat Pump plugin
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
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
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
Ok, found the latest plugin list:
https://espeasy.readthedocs.io/en/lates ... lugin.html
@Admins: please redirect old plugin list URL to latest URL.
https://espeasy.readthedocs.io/en/lates ... lugin.html
@Admins: please redirect old plugin list URL to latest URL.
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
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 (40.65 KiB) Viewed 37963 times
Re: P093 - Mitsubishi Heat Pump plugin
If they are greyed out, it means you have the Serial port used for something else.
Go to tools -> Advanced and disable serial there.
Go to tools -> Advanced and disable serial there.
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
thx, solved, Advanced settings -> Serial port needs to be disabled
just discovered myself and found your reply afterwards....
just discovered myself and found your reply afterwards....
Re: P093 - Mitsubishi Heat Pump plugin
Always good to get confirmation thenTungstenE2 wrote: ↑28 Apr 2020, 12:15 thx, solved, Advanced settings -> Serial port needs to be disabled
just discovered myself and found your reply afterwards....
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
will somebody update this page?
https://www.letscontrolit.com/wiki/index.php/Plugin93
https://www.letscontrolit.com/wiki/index.php/Plugin93
-
- Normal user
- Posts: 37
- Joined: 27 Aug 2019, 23:57
Re: P093 - Mitsubishi Heat Pump plugin
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)
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)
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
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...
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...
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
correction, as the cable did not fit the connector.
https://www.ebay.de/itm/80x-SPHD-001T-P ... 3852709397
https://www.ebay.de/itm/80x-SPHD-001T-P ... 3852709397
Re: P093 - Mitsubishi Heat Pump plugin
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:
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.
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
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}
Code: Select all
Klima_OG_SZ/aircon/settings:{"power":"OFF"}
or
Klima_OG_SZ/aircon/settings/cmd:{"MitsubishiHP,power,OFF"}
Any help is highly welcome.
Best, Jürgen
Last edited by Eisbahn on 06 Jul 2020, 10:56, edited 1 time in total.
Re: P093 - Mitsubishi Heat Pump plugin
Without knowing the specifics of that plugin, I do like to reply to the given MQTT message.
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.
Code: Select all
Klima_OG_SZ/aircon/settings:{"power":"OFF"}
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.
Re: P093 - Mitsubishi Heat Pump plugin
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. As an example my state report topic is which leads to the correct topic for the "real" set commands
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 . 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
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)
Code: Select all
Klima_OG_SZ/aircon/settings
Code: Select all
Klima_OG_SZ/aircon/settings/cmd
Code: Select all
Klima_OG_SZ/aircon/settings/cmd MitsubishiHP,power,ON
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
Re: P093 - Mitsubishi Heat Pump plugin
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.
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.
Re: P093 - Mitsubishi Heat Pump plugin
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.
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.
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
@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.
By now I only managed to receive status using MQTT in FHEM, but I would also like to controll the heat pump using MQTT.
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
nice link using the plugin:
https://community.openhab.org/t/mitsubi ... p/91765/16
https://community.openhab.org/t/mitsubi ... p/91765/16
-
- Normal user
- Posts: 123
- Joined: 03 Apr 2018, 21:46
Re: P093 - Mitsubishi Heat Pump plugin
managed to controll my heat pump using the HTTP commands below:
commad syntax:
http://<ESP IP address>/control?cmd=MitsubishiHP,power,ON
samples:
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
Re: P093 - Mitsubishi Heat Pump plugin
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 ?
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 ?
Re: P093 - Mitsubishi Heat Pump plugin
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.
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.
Re: P093 - Mitsubishi Heat Pump plugin
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}
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}
Re: P093 - Mitsubishi Heat Pump plugin
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)
Re: P093 - Mitsubishi Heat Pump plugin
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.
Re: P093 - Mitsubishi Heat Pump plugin
Just an idea as temporary hack until we have fixed this...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.
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.
Re: P093 - Mitsubishi Heat Pump plugin
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)
Re: P093 - Mitsubishi Heat Pump plugin
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.
Re: P093 - Mitsubishi Heat Pump plugin
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.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.
Re: P093 - Mitsubishi Heat Pump plugin
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)
Re: P093 - Mitsubishi Heat Pump plugin
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)
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)
Re: P093 - Mitsubishi Heat Pump plugin
Wow, thank you for the (very!) prompt feedback and PR! Yeah, if I remember correctly the reason for picking string and json was actually
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.ESPEasy only allows up to 4 values to be made available to a Controller
Re: P093 - Mitsubishi Heat Pump plugin
I've made a few improvements, downloads available form this Actions run
/Ton (PayPal.me)
Who is online
Users browsing this forum: Google [Bot] and 33 guests