Mitsubishi Heavy oder Remko Klimaanlage wie einbinden?

Begonnen von bicmac, 13 Januar 2021, 15:44:16

Vorheriges Thema - Nächstes Thema

bicmac

Gi,

ich bekomme im Mai/April eine MultiSplit Klimaanlage von Mitsubishi Heavy Installiert.
Als Innengeräte kommen dann wohl 1x SRK 20 ZS-W / 1x SRK 25 ZS-W / 1 x SRJK 50 ZS-W zum Einsatz.
Ich würde die nun gern irgendwie an mein FHEM anbinden um automatisch ein paar Sachen einstellen zu können und auch um die Klimaanlage auszuschalten wenn mein FHEM ein Fenster auf in dem Raum meldet.
Wie mache ich das am besten? Ich habe bisher nur Adapter zum selber löten gefunden. Ich bin aber nicht wirklich der Lotta Mensch. Gibt es auch Fertige Adapter die man einfach anschließt und an FHEM anbinden kann?

Alternativ köpenick eine Remko Anlage montiert bekommen. Wie sieht es denn da mit der Anbindung aus? Die Mitsubishi Heavy wurde mir aber eher empfohlen.

Treibhaus

Hallo  BICMAC,

hast Du eine Lösung für deine hier angesprochen Herrausforderung gefunden ?
Ich würde diese Anlage gerne in FHEM implementieren:
https://www.bauhaus.es/aire-acondicionado-multisplit/mitsubishi-aire-acondicionado-inverter-41zs-3x1/p/30661273#anchor-product-scope-of-delivery

Über eine Antwort würde ich mich freuen.
Gruß Jörg
Signatur:
Raspberry 5 & NVMe + HM-Module für 3 Etagen (inkl  Garage/Garten) 
+BSC EnOcean TCM310 -Fensterkontakt,-Bewegungsmelder
+ 1-wired Temp-Sensoren + RHASSPY-Spracherkennung

KölnSolar

MHI funktioniert super in FHEM: https://forum.fhem.de/index.php?msg=1254511
Läuft bei mir seit 8.12.23
Du musst Dir den WIFI selber basteln(ich habs rein mit einem Wemos-D1+LED zur Spannungsreduzierung gemacht)
Stichworte: MQTT, fast alle Funktionen der Fb in FHEM, Wifi-Selbstbau-Adapter
Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Treibhaus

Hi Markus,

Danke für den Tip.

Die Mitsubishi Heavy Wandgeräte  SRK15ZS-WF   oder  SRK35ZS-WF kommen schon mit WIFI "onboard". 
Damit hoffe ich das ich nicht unbedingt ein extra WIFI-Modul dazu bauen muss.

Wäre gut zu wissen ob diese auch funktioniert.

Gruß aus Kölle.
Jörg

Signatur:
Raspberry 5 & NVMe + HM-Module für 3 Etagen (inkl  Garage/Garten) 
+BSC EnOcean TCM310 -Fensterkontakt,-Bewegungsmelder
+ 1-wired Temp-Sensoren + RHASSPY-Spracherkennung

juemuc

Hallo Jörg,

wir haben zwei Mitsubishi Klimaanlagen, die über "MELCLOUD" angebunden sind. In FHEM kann ich sie über folgende Module steuern MELCLOUD-FHEM

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

ch.eick

Zitat von: Treibhaus am 15 Februar 2024, 09:08:27Die Mitsubishi Heavy Wandgeräte  SRK15ZS-WF   oder  SRK35ZS-WF kommen schon mit WIFI "onboard". 
Damit hoffe ich das ich nicht unbedingt ein extra WIFI-Modul dazu bauen muss.
Hallo Jörg,
hast Du bereits über das integrierte WIFI Verbindung zum FHEM herstellen können?
VG   Christian
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

Treibhaus

Hallo ch.eick ,

Nein, der Sommer kommt erst noch.  ;)
D.h. ich habe noch kein Gerät erworben.
Somit -> Sommerferien.

Gruß Jörg
Signatur:
Raspberry 5 & NVMe + HM-Module für 3 Etagen (inkl  Garage/Garten) 
+BSC EnOcean TCM310 -Fensterkontakt,-Bewegungsmelder
+ 1-wired Temp-Sensoren + RHASSPY-Spracherkennung

ch.eick

#7
Hallo Jörg,
jetzt ist bald Sommer :-)

- Ich habe bereits gelernt, dass Mitsubishi Heavy ein eigenständiger Hersteller ist und nicht über die MELCLOUD zu verbinden ist.
- Das integrietre WLAN hat eine API, die wohl bereits in HomeAssistant integriet wurde. https://github.com/jeatheak/Mitsubishi-WF-RAC-Integration

- Mit HTTPMOD bekommt man jedoch ein "Not supported this command" bereits eine Antort :-)

- Eventuell braucht man von irgendwoher die operatorID, die auch eine Rückmeldung der API sein könnte, nur habe ich das Zauberwort noch nicht gefunden.

- Die MHI Heavy muss mit "Zugriff über Internet" konfiguriert werden
- Der Energiezähler wird nur Angezeigt, wenn "Zugriff über Internet" verwendet wird, wie gut der Zählt kann ich noch nicht sagen, er steht aber jetzt auf 0

Hier wäre schon mal die erste Definition
defmod Klima HTTPMOD none
attr Klima DbLogExclude .*
attr Klima disable 0
attr Klima enableControlSet 0
attr Klima get01-1Name info_apiVer
attr Klima get01-2Name info_command
attr Klima get01-3Name info_deviceId
attr Klima get01-4Name info_result
attr Klima get01-5Name contents_airconId
attr Klima get01-6Name contents_macAddress
attr Klima get01-7Name info_operatorId
attr Klima get01-8Name contents_apMode
attr Klima get01-9Name info_timestamp
attr Klima get01CheckAllReadings 1
attr Klima get01Data {"apiVer":"1.0","command":"getDeviceInfo","deviceId":"e81656185d42","operatorId":"b4220891-e32a-4252-b448-cf3ab2172944","timestamp":1722259820}
attr Klima get01JSON .
attr Klima get01Name 01_getDeviceInfo
attr Klima get01URL http://192.168.178.77:51443/beaver/command
attr Klima get02-10Name contents_logStat
attr Klima get02-11Name contents_lowTemp
attr Klima get02-12Name contents_wireless_firmVer
attr Klima get02-13Name contents_numOfAccount
attr Klima get02-14Name contents_remoteList_0
attr Klima get02-15Name contents_remoteList_1
attr Klima get02-16Name contents_remoteList_2
attr Klima get02-17Name contents_remoteList_3
attr Klima get02-18Name contents_timezone
attr Klima get02-19Name contents_updatedBy
attr Klima get02-1Name info_apiVer
attr Klima get02-20Name contents_mcu_firmVer
attr Klima get02-21Name contents_airconId
attr Klima get02-22Name info_operatorId
attr Klima get02-23Name contents_ledStat
attr Klima get02-24Name info_timestamp
attr Klima get02-2Name info_command
attr Klima get02-3Name info_deviceId
attr Klima get02-4Name contents_airconStat
attr Klima get02-5Name contents_autoHeating
attr Klima get02-6Name contents_expires
attr Klima get02-7Name contents_firmType
attr Klima get02-8Name contents_highTemp
attr Klima get02-9Name info_result
attr Klima get02CheckAllReadings 1
attr Klima get02Data {"apiVer":"1.0","command":"getAirconStat","deviceId":"e81656185d42","operatorId":"b4220891-e32a-4252-b448-cf3ab2172944","timestamp":1722259820}
attr Klima get02JSON .
attr Klima get02Name 02_getAirconStat
attr Klima get02URL http://192.168.178.77:51443/beaver/command
attr Klima replacement01Mode expression
attr Klima replacement01Regex %TIME%
attr Klima replacement01Value {round(time(),0)}
attr Klima replacement02Mode reading
attr Klima replacement02Regex %AIRCONSTAT%
attr Klima replacement02Value contents_airconStat
attr Klima room Neu
attr Klima set02-10Name contents_logStat
attr Klima set02-11Name contents_lowTemp
attr Klima set02-12Name contents_wireless_firmVer
attr Klima set02-13Name contents_numOfAccount
attr Klima set02-14Name contents_remoteList_0
attr Klima set02-15Name contents_remoteList_1
attr Klima set02-16Name contents_remoteList_2
attr Klima set02-17Name contents_remoteList_3
attr Klima set02-18Name contents_timezone
attr Klima set02-19Name contents_updatedBy
attr Klima set02-1Name info_apiVer
attr Klima set02-20Name contents_mcu_firmVer
attr Klima set02-21Name contents_airconId
attr Klima set02-22Name info_operatorId
attr Klima set02-23Name contents_ledStat
attr Klima set02-24Name info_timestamp
attr Klima set02-2Name info_command
attr Klima set02-3Name info_deviceId
attr Klima set02-4Name contents_airconStat
attr Klima set02-5Name contents_autoHeating
attr Klima set02-6Name contents_expires
attr Klima set02-7Name contents_firmType
attr Klima set02-8Name contents_highTemp
attr Klima set02-9Name info_result
attr Klima set02CheckAllReadings 1
attr Klima set02Data {"apiVer":"1.0","command":"setAirconStat","operatorId":"b4220891-e32a-4252-b448-cf3ab2172944","deviceId":"e81656185d42","timestamp":%TIME%,"contents":{"airconId":"e81656185d42","airconStat":"%AIRCONSTAT%"}}
attr Klima set02JSON .
attr Klima set02Name 02_setAirconStat
attr Klima set02NoArg 1
attr Klima set02ParseResponse 1
attr Klima set02URL http://192.168.178.77:51443/beaver/command
attr Klima set03-1Name info_apiVer
attr Klima set03-2Name info_command
attr Klima set03-3Name info_deviceId
attr Klima set03-4Name info_operatorId
attr Klima set03-5Name info_result
attr Klima set03-6Name info_timestamp
attr Klima set03CheckAllReadings 1
attr Klima set03Data {"apiVer":"1.0","command":"updateAccountInfo","deviceId":"e81656185d42","operatorId":"b4220891-e32a-4252-b448-cf3ab2172944","timestamp":%TIME%}
attr Klima set03JSON .
attr Klima set03Method PUT
attr Klima set03Name 03_updateAccountInfo
attr Klima set03NoArg 1
attr Klima set03ParseResponse 1
attr Klima set03URL http://192.168.178.77:51443/beaver/command
attr Klima showBody 1
attr Klima showError 1
attr Klima timeout 7
attr Klima userReadings contents_airconStat_test:contents_airconStat.* { my $airconStat = encode_base64(ReadingsVal("$NAME","contents_airconStat","")) ;; $airconStat =~ s/\n//g ;; $airconStat }
attr Klima verbose 5

Mit dem Device kann man nun bereits drei Aufrufe starten:
get
- 01_getDeviceInfo
- 02_getAirconStat

set
- 02_setAirconStat       <<< Zum Test setze ich exact den Wert vom reading contents_airconStat
- 03_updateAccountInfo   <<< Da fehlt der Syntax

Ich bräuchte dann jetzt mal Unterstützung beim Code Transfer von Python zu Perl.
Python Code von HA

Hier ist der nächste Schritt contents_airconStat zu decodieren.
Ich bin bei base64 schon ausgestiegen :-) , da dann noch diverse Bit Operationen durchgeführt werden müssen.
Auch das \n muss entfernt werden, warum auch immer.

Perl Experimente, das ich im userReadings eingebaut habe.
{ my $airconStat = encode_base64("AACyn6r/AAAAAAARigAAAAAAAf////9tpIEEEBcqqQAAiAAAAQAAAAAAAAOAIKn/gBDK/5QQAADRmg==") ;; $airconStat =~ s/\n//g ;; $airconStat }

VG  Christian
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick

ch.eick

Hallo zusammen,
ich habe für's decodieren dann mal hier nach Hilfe gerufen.
RPI4; Docker; CUNX; Eltako FSB61NP; SamsungTV H-Serie; Sonos; Vallox; Luxtronik; 3x FB7490; Stromzähler mit DvLIR; wunderground; Plenticore 10 mit BYD; EM410; SMAEM; Modbus TCP
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/ch.eick