Page 1 sur 17

[Plugin] Climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 15 juin 2019, 14:03
par Masure
Salut,

Voici mon deuxième plugin
https://github.com/Masurov/Domoticz-Mit ... QTT-Plugin

Il repose sur l'interface série/MQTT de Swicago

Prérequis :
- un ESP8266 flashé avec l'implémentation MQTT de Swicago (dans le dossier exemples)
- branchement de l'ESP au connecteur CN105 de la clim
- un broker MQTT

Pour faire court, voilà ce qu'expose le plugin :

Image

J'espère que ça sera utile à d'autres

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 16 juin 2019, 12:15
par adv
Rooooooooooooo :o

Magnifique quel boulot !!!
C'eût été mon rêve hélas j'ai un connecteur CN-RMT sur ma pac air-air gamme TKE (pour les nouvelles interfaces Wifi etherea intesis), du coup je tourne avec esp easy, une diode infrarouge et le plugin heatpump que j'ai un peu modifié.

Pas trouvé comment était encodé le protocole à ce jour sur le net...

A+

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 24 juin 2019, 19:57
par Masure
Nouvelle version 1.1
corrige un bug avec python < 3.7 qui rendait les états des sélecteurs erronés à la création des devices

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 02 déc. 2019, 01:01
par pascal_frigoriste
Merci super intégration!
j'ai pris cette version:
https://github.com/dzungpv/mitsubishi2M ... bishi2mqtt
j'ai réussi à téléverser le fichier .bin
Je n'arrive pas à compiler le fichier de swiCaGO, j'ai toujours des probléme de librairie ou autre... :s :x
je n'ai plus qu'à l'intégrer dans domoticz et surtout trouver le connecteur Cn105 (vous avez fait comment?)

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 02 déc. 2019, 09:33
par Masure
Si vous avez un peu de mal avec la partie "hard", je vous conseille de jeter un coup d'oeil à ce tuto :
https://chrdavis.github.io/hacking-a-mi ... mp-Part-1/
https://chrdavis.github.io/hacking-a-mi ... mp-Part-2/

Il faudra uploader le programme MQTT dans le micro controller.

compilation ide arduino

Publié : 02 déc. 2019, 23:12
par pascal_frigoriste
oui justement j'avais trouvé ce tutaux, il y a longtemps déjà. Mais je ne doit pas avoir les bonnes librairie dans ide arduino et ça me faisait des erreur de compilation. Mais merci quand même. J'ai finalement réussi avec le fichier .bin

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 02 févr. 2020, 19:07
par benbiais
Bonjour,
C'est vraiment extra ce que vous avez fait. Superbe boulot. Grand bravo !
J'ai installé votre plugin. Tout marche à la perfection, à l'exception de la seule commande "Inclinaison Vvane" qui est inopérante (par contre, quand je change "Inclinaison Vvane" avec la télécommande, je récupère bien sur l'écran Domoticz le nouvel état).
Auriez vous une idée de l'origine de cette commande Vvane non prise en compte, et dans quelle direction je dois chercher ?
Merci d'avance
Mon unité murale : MSZ-AP25VG

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 02 févr. 2020, 21:26
par Masure
Bonsoir,

étonnant que seule la récupération de l'info soit ok mais pas l'envoi de la commande. Le code que j'utilise est assez symétrique.

Apparemment quelqu'un a un problème avec le réglage des ailettes (mais horizontales) sur le même modèle que toi et il y a un correctif récent : https://github.com/SwiCago/HeatPump/issues/148

Tu peux suivre la même méthode pour voir les paquets debug et voir si c'est le même problème ?

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 06 févr. 2020, 23:41
par benbiais
Bonsoir,
Trace plusieurs commandes Vane KO (suivie à titre de comparaison d'une trace Cde WideVane OK :
heatpump/set {"vane": "SWING"}
heatpump/debug {"packetSent":"fc 41 01 30 10 01 10 00 00 00 00 00 87 00 00 00 00 00 00 00 00 e6 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 06 00 00 19 00 00 00 00 07 00 00 42 00 00 00 00 f5 "}
heatpump/debug heatpump: update() failed
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7b "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 00 01 0e 00 00 00 00 8c a2 28 00 00 00 f6 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7a "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 03 00 00 06 00 84 a0 a4 fe 42 00 00 0b 93 00 00 ae "}
heatpump/debug {"packetSent":"fc 42 01 30 10 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 04 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 d9 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 06 00 00 1a 00 00 00 00 07 00 00 42 00 00 00 00 f4 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 61 01 30 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5e "}
heatpump/debug {"packetSent":"fc 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7b "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7a "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 00 01 0e 00 00 00 00 8c a2 28 00 00 00 f6 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 03 00 00 06 00 84 a0 a3 fe 42 00 00 0b 93 00 00 af "}
heatpump/set {"vane": "2"}
heatpump/debug {"packetSent":"fc 41 01 30 10 01 10 00 00 00 00 00 82 00 00 00 00 00 00 00 00 eb "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 04 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 d9 "}
heatpump/debug heatpump: update() failed
heatpump/debug {"packetSent":"fc 42 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}
heatpump/status {"roomTemperature":16,"operating":false}
heatpump/timers {"mode":"NONE","onMins":0,"onRemainMins":0,"offMins":0,"offRemainMins":0}
heatpump/debug {"packetRecv":"fc 62 01 30 10 06 00 00 1a 00 00 00 00 07 00 00 42 00 00 00 00 f4 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7b "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 00 01 0e 00 00 00 00 8c a2 28 00 00 00 f6 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7a "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 03 00 00 06 00 84 a0 a4 fe 42 00 00 0b 93 00 00 ae "}
heatpump/debug {"packetSent":"fc 42 01 30 10 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 04 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 d9 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78 "}
heatpump/debug {"packetRecv":"fc 61 01 30 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5e "}
heatpump/debug {"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 "}
heatpump/set {"vane": "4"}
heatpump/debug {"packetSent":"fc 41 01 30 10 01 10 00 00 00 00 00 84 00 00 00 00 00 00 00 00 e9 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 06 00 00 1a 00 00 00 00 07 00 00 42 00 00 00 00 f4 "}
heatpump/debug heatpump: update() failed
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7b "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 00 01 0e 00 00 00 00 8c a2 28 00 00 00 f6 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7a "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 03 00 00 06 00 84 a0 a4 fe 42 00 00 0b 93 00 00 ae "}
heatpump/debug {"packetSent":"fc 42 01 30 10 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 04 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 d9 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 06 00 00 1a 00 00 00 00 07 00 00 42 00 00 00 00 f4 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 61 01 30 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5e "}
-----------------------------------------------------------------------------
Trace d'une commande WideVane OK :
heatpump {"power":"OFF","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"AUTO","wideVane":"<<"}
heatpump/status {"roomTemperature":15.5,"operating":false}
heatpump/timers {"mode":"NONE","onMins":0,"onRemainMins":0,"offMins":0,"offRemainMins":0}
heatpump/debug {"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}
heatpump/set {"wideVane": "SWING"}
heatpump/debug {"packetSent":"fc 41 01 30 10 01 10 01 00 00 00 00 87 00 00 00 00 00 0c 00 00 d9 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 04 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 d9 "}
heatpump/debug heatpump: update() failed
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 58 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7b "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 06 00 00 1e 00 00 00 00 07 00 00 42 00 00 00 00 f0 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7a "}
heatpump/debug {"packetRecv":"fc 61 01 30 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5e "}
heatpump/debug {"packetSent":"fc 42 01 30 10 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 79 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 54 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 78 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 00 01 0e 00 00 00 00 8c a2 28 00 00 00 f6 "}
heatpump {"power":"OFF","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"AUTO","wideVane":"SWING"}
heatpump/debug {"packetSent":"fc 42 01 30 10 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 77 "}
heatpump/status {"roomTemperature":15.5,"operating":false}
heatpump/timers {"mode":"NONE","onMins":0,"onRemainMins":0,"offMins":0,"offRemainMins":0}
heatpump/debug {"packetRecv":"fc 62 01 30 10 03 00 00 05 00 84 9f a3 fe 42 00 00 0b 93 00 00 b1 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 74 "}
heatpump/debug {"packetRecv":"fc 62 01 30 10 04 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 d9 "}
heatpump/debug {"packetSent":"fc 42 01 30 10 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7b "}

Re: Plugin climatiseur Mitsubishi (interface série et non MELCloud)

Publié : 07 févr. 2020, 22:37
par benbiais
Masure a écrit : 02 févr. 2020, 21:26 Bonsoir,

étonnant que seule la récupération de l'info soit ok mais pas l'envoi de la commande. Le code que j'utilise est assez symétrique.

Apparemment quelqu'un a un problème avec le réglage des ailettes (mais horizontales) sur le même modèle que toi et il y a un correctif récent : https://github.com/SwiCago/HeatPump/issues/148

Tu peux suivre la même méthode pour voir les paquets debug et voir si c'est le même problème ?

Bonsoir,
J'ai suivi la méthode que tu m'as indiquée pour voir les paquets debug et voir quel octet change quand je parcoure la commandes VANE (volets verticaux) avec la telecommande.

J'ai testé les positions AUTO, 1, 2, 5 et SWING et suis revenu à AUTO. J'obtiens :
heatpump {"power":"ON","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"AUTO","wideVane":"<<"}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 01 01 0e 00 00 00 00 81 a2 28 00 00 00 00 "}

heatpump {"power":"ON","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"1","wideVane":"<<"}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 01 01 0e 00 01 00 00 81 a2 28 00 00 00 ff "}

heatpump {"power":"ON","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"2","wideVane":"<<"}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 01 01 0e 00 02 00 00 81 a2 28 00 00 00 fe "}

heatpump {"power":"ON","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"5","wideVane":"<<"}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 01 01 0e 00 05 00 00 81 a2 28 00 00 00 fb "

heatpump {"power":"ON","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"SWING","wideVane":"<<"}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 01 01 0e 00 07 00 00 81 a2 28 00 00 00 f9 "}

heatpump {"power":"ON","mode":"HEAT","temperature":17,"fan":"AUTO","vane":"AUTO","wideVane":"<<"}
heatpump/debug {"packetRecv":"fc 62 01 30 10 02 00 00 01 01 0e 00 00 00 00 81 a2 28 00 00 00 00 "}

J'en conclus que AUTO = 00, pos1=FF, pos2=FE, pos5=FB, SWING=F9, et donc logiquement pos3=FD et pos4=FC

Avec ton plugin Domoticz (bravo encore !) tout fonctionne à merveille, à l'exception de cette commande VANE qui est sans effet. Que puis-je déduire de mes traces, et comment poursuivre pour tenter d'avoir la commande VANE qui fonctionne quand envoyée avec Domoticz.
Merci d'avance pour ton aide.