New module: DaikinAC

Begonnen von roelb, 26 März 2020, 19:16:24

Vorheriges Thema - Nächstes Thema

shamal2008

Hallo zusammen,

musste meine Daikin Stylish Geräte für die Verwendung der "neuen" Daikin Residential Controller App (aus dem Playstore) firmwaremäßig updaten.

Kann berichten, dass das Modul mit Firmware-Version 1_4_28 immer noch perfekt funktioniert!

Danke nochmal für das Modul!

lg Shamal
FHEM auf RasPiI 3+, MapleCUL 868+433MhZ, MAX! via CUL, LD686 LED-Controller, GHoma Plugins,, Shelly, ConbeeII + IKEA + Xiaomi, div. Infodienste & Google Assistant via FHEM;

kroonen

#61
Hi,

Thx  for the module. I now have a mode that is unknown? I think its the auto mode (that is what it is in thje Daikin App)


fhem> l AircoZolder
Internals:
   DEF        192.168.180.62
   FUUID      60b91aef-f33f-7999-7b15-bebcf341622ed577
   HOST       192.168.180.62
   INITIALIZED 1
   INTERVAL   60
   INTERVAL_PWRD 10
   LASTUPDATE 19.10.2021 / 23:17:57
   NAME       AircoZolder
   NR         100
   STATE      off/unknown
unknown
<br> Desired: 25.0 &degC
<br>In: 20.0 &degC <br>Out: 17.0 &degC
   TYPE       HVAC_DaikinAC
   VERSION    1.0.9
   HELPER:
     FAULTS     0
   READINGS:
     2021-10-18 08:31:51   cmpfreq         0
     2021-10-18 08:31:51   dh1             50
     2021-10-18 08:31:51   dh3             0
     2021-10-18 08:31:51   dh4             0
     2021-10-18 08:31:51   dt1             25.0
     2021-10-18 08:31:51   dt3             18.0
     2021-10-18 08:31:51   dt4             25.0
     2021-10-18 08:31:51   econo           off
     2021-10-18 08:31:51   f_dir           0
     2021-10-18 08:31:51   f_mode          7
     2021-10-18 08:31:51   f_rate          A
     2021-10-19 23:17:57   hhum            -
     2021-10-18 08:31:51   hhum_ifchanged  -
     2021-10-19 23:17:57   htemp           20.0
     2021-10-19 14:47:03   htemp_ifchanged 20.0
     2021-10-18 08:31:51   mac             00E93A4B4927
     2021-10-18 08:31:51   method          home only
     2021-10-18 08:31:51   mode            unknown
     2021-10-18 08:31:51   model           12FB
     2021-10-18 08:31:51   name            airco zolder
     2021-10-19 23:17:57   otemp           17.0
     2021-10-19 23:16:57   otemp_ifchanged 17.0
     2021-10-18 08:31:51   port            30050
     2021-10-18 22:32:27   pow             0
     2021-10-18 22:32:27   power           off
     2021-10-18 08:31:51   powerful        off
     2021-10-18 08:31:51   rate            auto
     2021-10-18 08:31:51   reg             eu
     2021-10-18 08:31:51   rev             203DE8C
     2021-10-18 08:31:51   shum            50
     2021-10-18 22:32:27   state           off
     2021-10-18 08:31:51   stemp           25.0
     2021-10-18 08:31:51   streamer        off
     2021-10-18 08:31:51   swing           none
     2021-10-18 08:31:51   type            N
     2021-10-18 08:31:51   ver             1_2_54
Attributes:
   devStateIcon off.*:control_standby@gray on.*cool:frost@blue on.*heat:sani_heating@red on.*dehumidify:humidity@blue on.*vent:vent_ventilation@green on.*auto:temp_temperature@red
   group      Klimaat
   interval   60
   interval_powered 10
   room       Zolder
   stateFormat power/mode
mode
<br> Desired: stemp &degC
<br>In: htemp &degC <br>Out: otemp &degC


pifs

Hello,

I tried this module but got the following error:
Daikin_Studeerkamer HVAC_DaikinAC_PollDone(): Invalid response on get_basic_info: Page Not Found
/common/basic_info

Model: FTXM20R
Firmwareversion: 1_12_51

I assumed this module works with the mentioned model, maybe the firmware is to new or am I doing something wrong. Webpage of the Daikin is accessible.
Any help would be appreciated and if more info is needed let me know.

Regards Paul.

pifs

Zitat von: pifs am 28 November 2021, 19:36:06
Hello,

I tried this module but got the following error:
Daikin_Studeerkamer HVAC_DaikinAC_PollDone(): Invalid response on get_basic_info: Page Not Found
/common/basic_info

Model: FTXM20R
Firmwareversion: 1_12_51

I assumed this module works with the mentioned model, maybe the firmware is to new or am I doing something wrong. Webpage of the Daikin is accessible.
Any help would be appreciated and if more info is needed let me know.

Regards Paul.

My new model contains the C version of the wifi controller and Daikin removed the local API, so local integration is not possible. Very disappointing from Daikin. There seems a solution possible via the cloud control.

Gr. Paul.

kroonen

Zitat von: kroonen am 19 Oktober 2021, 23:21:21
Hi,

Thx  for the module. I now have a mode that is unknown? I think its the auto mode (that is what it is in thje Daikin App)


fhem> l AircoZolder
Internals:
   DEF        192.168.180.62
   FUUID      60b91aef-f33f-7999-7b15-bebcf341622ed577
   HOST       192.168.180.62
   INITIALIZED 1
   INTERVAL   60
   INTERVAL_PWRD 10
   LASTUPDATE 19.10.2021 / 23:17:57
   NAME       AircoZolder
   NR         100
   STATE      off/unknown
unknown
<br> Desired: 25.0 &degC
<br>In: 20.0 &degC <br>Out: 17.0 &degC
   TYPE       HVAC_DaikinAC
   VERSION    1.0.9
   HELPER:
     FAULTS     0
   READINGS:
     2021-10-18 08:31:51   cmpfreq         0
     2021-10-18 08:31:51   dh1             50
     2021-10-18 08:31:51   dh3             0
     2021-10-18 08:31:51   dh4             0
     2021-10-18 08:31:51   dt1             25.0
     2021-10-18 08:31:51   dt3             18.0
     2021-10-18 08:31:51   dt4             25.0
     2021-10-18 08:31:51   econo           off
     2021-10-18 08:31:51   f_dir           0
     2021-10-18 08:31:51   f_mode          7
     2021-10-18 08:31:51   f_rate          A
     2021-10-19 23:17:57   hhum            -
     2021-10-18 08:31:51   hhum_ifchanged  -
     2021-10-19 23:17:57   htemp           20.0
     2021-10-19 14:47:03   htemp_ifchanged 20.0
     2021-10-18 08:31:51   mac             00E93A4B4927
     2021-10-18 08:31:51   method          home only
     2021-10-18 08:31:51   mode            unknown
     2021-10-18 08:31:51   model           12FB
     2021-10-18 08:31:51   name            airco zolder
     2021-10-19 23:17:57   otemp           17.0
     2021-10-19 23:16:57   otemp_ifchanged 17.0
     2021-10-18 08:31:51   port            30050
     2021-10-18 22:32:27   pow             0
     2021-10-18 22:32:27   power           off
     2021-10-18 08:31:51   powerful        off
     2021-10-18 08:31:51   rate            auto
     2021-10-18 08:31:51   reg             eu
     2021-10-18 08:31:51   rev             203DE8C
     2021-10-18 08:31:51   shum            50
     2021-10-18 22:32:27   state           off
     2021-10-18 08:31:51   stemp           25.0
     2021-10-18 08:31:51   streamer        off
     2021-10-18 08:31:51   swing           none
     2021-10-18 08:31:51   type            N
     2021-10-18 08:31:51   ver             1_2_54
Attributes:
   devStateIcon off.*:control_standby@gray on.*cool:frost@blue on.*heat:sani_heating@red on.*dehumidify:humidity@blue on.*vent:vent_ventilation@green on.*auto:temp_temperature@red
   group      Klimaat
   interval   60
   interval_powered 10
   room       Zolder
   stateFormat power/mode
mode
<br> Desired: stemp &degC
<br>In: htemp &degC <br>Out: otemp &degC


I found the issue. The mode of my airco for auto = 7 . also found some documentation that de mode is 0,1 en 7.
https://github.com/ael-code/daikin-control

Can it also be changed in the module of fhem? I see only 0-6 and not 7.

eisman

Hi,

Problem:


2022.03.30 10:34:21 1: PERL WARNING: Prototype mismatch: sub main::sum: none vs (@) at /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm line 66, <$fh> line 4742.
2022.03.30 10:34:21 1: stacktrace:
2022.03.30 10:34:21 1:     main::__ANON__                      called by /usr/lib/x86_64-linux-gnu/perl-base/Exporter.pm (66)
2022.03.30 10:34:21 1:     Exporter::import                    called by ./FHEM/58_HVAC_DaikinAC.pm (23)
2022.03.30 10:34:21 1:     main::BEGIN                         called by ./FHEM/58_HVAC_DaikinAC.pm (23)
2022.03.30 10:34:21 1:     (eval)                              called by ./FHEM/58_HVAC_DaikinAC.pm (23)
2022.03.30 10:34:21 1:     (eval)                              called by fhem.pl (2728)
2022.03.30 10:34:21 1:     (eval)                              called by fhem.pl (2727)
2022.03.30 10:34:21 1:     main::CommandReload                 called by fhem.pl (2057)
2022.03.30 10:34:21 1:     main::LoadModule                    called by fhem.pl (2122)
2022.03.30 10:34:21 1:     main::CommandDefine                 called by fhem.pl (1275)
2022.03.30 10:34:21 1:     main::AnalyzeCommand                called by fhem.pl (1126)
2022.03.30 10:34:21 1:     main::AnalyzeCommandChain           called by fhem.pl (1415)
2022.03.30 10:34:21 1:     main::CommandInclude                called by fhem.pl (626)


Device:

Internals:
   DEF        192.168.xxx.xxx
   FUUID      6118a7a8-f33f-793a-8010-e618bf1b6b5695fa
   HOST       192.168.xxx.xxx
   INITIALIZED 1
   INTERVAL   60
   INTERVAL_PWRD 10
   LASTUPDATE 30.03.2022 / 10:37:40
   NAME       Daikin
   NR         373
   STATE      off-cool
   TYPE       HVAC_DaikinAC
   VERSION    1.0.9
   HELPER:
     FAULTS     1
   READINGS:
     2022-03-30 10:35:35   basic_info      ret=OK,type=aircon,reg=eu,dst=1,ver=1_2_54,rev=203DE8C,pow=0,err=0,location=0,name=%44%61%69%6b%69%6e%45%53,icon=0,method=home only,port=30050,id=,pw=,lpw_flag=0,adp_kind=3,pv=3.20,cpv=3,cpv_minor=20,led=1,en_setzone=1,mac=DCF5059CB000,adp_mode=run,en_hol=0,ssid1=MABRAP01,radio1=-57,grp_name=,en_grp=0
     2022-01-23 08:43:24   cmpfreq         0
     2022-01-23 08:43:24   control_info    ret=OK,pow=0,mode=3,adv=,stemp=18.0,shum=0,dt1=25.0,dt2=M,dt3=18.0,dt4=25.0,dt5=25.0,dt7=25.0,dh1=AUTO,dh2=50,dh3=0,dh4=0,dh5=0,dh7=AUTO,dhh=50,b_mode=3,b_stemp=18.0,b_shum=0,alert=255,f_rate=A,f_dir=0,b_f_rate=A,b_f_dir=0,dfr1=5,dfr2=5,dfr3=A,dfr4=5,dfr5=5,dfr6=5,dfr7=5,dfrh=5,dfd1=0,dfd2=0,dfd3=0,dfd4=0,dfd5=0,dfd6=0,dfd7=0,dfdh=0,dmnd_run=0,en_demand=0
     2022-01-23 08:43:24   dh1             AUTO
     2022-01-23 08:43:24   dh3             0
     2022-01-23 08:43:24   dh4             0
     2022-01-23 08:43:24   dt1             25.0
     2022-01-23 08:43:24   dt3             18.0
     2022-01-23 08:43:24   dt4             25.0
     2022-01-23 08:43:24   econo           off
     2022-01-23 08:43:24   f_dir           0
     2022-01-23 08:43:24   f_mode          3
     2022-01-23 08:43:24   f_rate          A
     2022-03-30 10:37:40   hhum            -
     2022-01-23 08:43:24   hhum_ifchanged  -
     2022-03-30 10:37:40   htemp           17.0
     2022-03-30 10:06:28   htemp_ifchanged 17.0
     2022-01-23 08:43:24   mac             DCF5059CB000
     2022-01-23 08:43:24   method          home only
     2022-01-23 08:43:24   mode            cool
     2022-01-23 08:43:24   model           0D75
     2022-01-23 08:43:24   model_info      ret=OK,model=0D75,type=N,pv=3.20,cpv=3,cpv_minor=20,mid=NA,humd=0,s_humd=0,acled=0,land=0,elec=1,temp=1,temp_rng=0,m_dtct=1,ac_dst=--,disp_dry=0,dmnd=1,en_scdltmr=1,en_frate=1,en_fdir=1,s_fdir=3,en_rtemp_a=0,en_spmode=3,en_ipw_sep=1,en_mompow=1,hmlmt_l=10.0
     2022-01-23 08:43:24   mompow          0
     2022-01-23 08:43:24   name            DaikinES
     2022-03-30 10:37:40   otemp           8.0
     2022-03-30 09:33:54   otemp_ifchanged 8.0
     2022-01-23 08:43:24   port            30050
     2022-01-23 08:43:24   pow             0
     2022-01-23 08:43:24   power           off
     2022-01-23 08:43:24   powerful        off
     2022-03-28 00:00:26   pwr_day_cur     0
     2022-03-29 00:00:03   pwr_day_last    0
     2022-01-23 08:43:24   pwr_history_daily_dec 0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0.1,0,0,0,0.1,0,0,0
     2022-02-28 06:00:55   pwr_history_daily_feb 0.1,0,0,0,0.1,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,,,
     2022-01-28 11:00:30   pwr_history_daily_jan 0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0
     2022-03-27 06:00:53   pwr_history_daily_mar 0,0,0,0.1,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0.1,0,0,0,0
     2022-03-28 00:00:26   pwr_history_hourly_today 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
     2022-03-29 00:00:03   pwr_history_hourly_yesterday 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
     2022-01-23 08:43:24   pwr_history_monthly_2021 0,0,0,0,0,0,0,0,1.2,0.8,0.8,0.8
     2022-03-27 06:00:53   pwr_history_monthly_2022 0.8,0.8,0.7,0,0,0,0,0,0,0,0,0
     2022-01-23 08:43:24   pwr_hour_cur    0
     2022-03-27 07:00:45   pwr_hour_last   0
     2022-03-27 06:00:53   pwr_month_cur   0.7
     2022-01-23 08:43:24   pwr_month_last  0.8
     2022-03-27 06:00:53   pwr_year_cur    2.3
     2022-01-23 08:43:24   pwr_year_last   3.6
     2022-01-23 08:43:24   rate            auto
     2022-01-23 08:43:24   reg             eu
     2022-01-23 08:43:24   rev             203DE8C
     2022-03-30 10:06:28   sensor_info     ret=OK,htemp=17.0,hhum=-,otemp=8.0,err=0,cmpfreq=0,mompow=1
     2022-01-23 08:43:24   shum            0
     2022-01-23 08:43:24   state           off
     2022-01-23 08:43:24   stemp           18.0
     2022-01-23 08:43:24   streamer        off
     2022-01-23 08:43:24   swing           none
     2022-01-23 08:43:24   type            N
     2022-03-30 10:37:40   unit_date       2022/03/30 10:37:41
     2022-01-23 08:43:24   ver             1_2_54
Attributes:
   alias      Klimaanlage
   comment    xxx
   devStateIcon off.*:control_standby@gray:on
on-cool:frost@blue:off
on-heat:sani_heating@red:off
on-dehumidify:humidity@blue:off
on-vent:vent_ventilation@green:off
on-auto:temp_temperature@red:off
   fp_Floorplan 17,1069,0,Daikin,
   icon       frost@blue
   interval   60
   interval_powered 10
   pwrconsumption 1
   rawdata    1
   room       Heizung,Schlafzimmer
   stateFormat [$name:state]-[$name:mode]
   verbose    0
   widgetOverride stemp:18.0,19.0,20.0,21.0,22.0,23.0,24.0,25.0,26.0,27.0,28.0,29.0,30.0


mfg
1x FHEM Debian, Homematic,ZigBee,FS20 / 1X Raspberry, ConBee / 5x ESP
1x FHEM Debian, Homematic,ZigBee         / 1X Raspberry, ConBee / 5x ESP
1x FHEM Debian,MQTT                               / 1X Raspberry, i2c,onewire,gpio
1x auf Windows 2012 Hyper-V-S

roelb

Hey folks. I've been extremely busy lately, so no time for maintenance on this module. I understand that Daikin has changed some things in newer software versions. I will try to have a look at this in the near future.

pifs

Found some useful info to control the Daikin via cloud https://github.com/Apollon77/daikin-controller-cloud

Gr. Paul.

GodVatter

Hi Mike,

do you have any updates or information to that issue that mompow and mompow_max doesn't exist within the FTXA?

BR
GV

Zitat von: MikeR am 18 Mai 2021, 22:13:09
Hello,

a few days ago i got my new Daikin Multisplit System installed. Today i tried this model for fhem and it works like a charm. Perfect.
Congratulations, superb job.

One thing: the two readings "mompow" and "mompow_max" didn't appear in my module. I have the indoor unit Stylish (aka: FTXA) with build in wifi adapter. I have activated the "pwrconsumption" attribute.

Any idea?

Greetings from Germany
Mike

t1me2die

Hi, my Daikin have two special extra modes, first: powerfull ("Leistungsstark") and second: economic.

But I can't set these modes via API.

http://xxx.xxx.xxx.xx/aircon/get_control_info

Gives me following response:

et=OK,pow=1,mode=3,adv=,stemp=19.0,shum=0,dt1=22.0,dt2=M,dt3=19.0,dt4=25.0,dt5=25.0,dt7=22.0,dh1=0,dh2=50,dh3=0,dh4=0,dh5=0,dh7=0,dhh=50,b_mode=3,b_stemp=19.0,b_shum=0,alert=255,f_rate=6,f_dir=3,b_f_rate=6,b_f_dir=3,dfr1=A,dfr2=5,dfr3=6,dfr4=5,dfr5=5,dfr6=5,dfr7=A,dfrh=5,dfd1=2,dfd2=0,dfd3=3,dfd4=0,dfd5=0,dfd6=0,dfd7=2,dfdh=0,dmnd_run=0,en_demand=0


In the special powerfull mode I've got this result:

ret=OK,pow=1,mode=3,adv=2,stemp=19.0,shum=0,dt1=22.0,dt2=M,dt3=19.0,dt4=25.0,dt5=25.0,dt7=22.0,dh1=0,dh2=50,dh3=0,dh4=0,dh5=0,dh7=0,dhh=50,b_mode=3,b_stemp=19.0,b_shum=0,alert=255,f_rate=6,f_dir=3,b_f_rate=6,b_f_dir=3,dfr1=A,dfr2=5,dfr3=6,dfr4=5,dfr5=5,dfr6=5,dfr7=A,dfrh=5,dfd1=2,dfd2=0,dfd3=3,dfd4=0,dfd5=0,dfd6=0,dfd7=2,dfdh=0,dmnd_run=0,en_demand=0


Now I try to change the "adv" parameter over the API like:

http://xxx.xxx.xxx.xx/aircon/set_control_info?pow=1&mode=3&adv=2&stemp=19&shum=0&f_rate=6&f_dir=3


Got following result:
ret=OK,adv=

What's wrong with my statement?

Kind regards
Mathias

t1me2die

After many hours of testing and looking by google, I've found the solution.


Meaning:
spmode_kind=1 -> powerful
spmode_kind=2 -> economic

http://xxx.xxx.xxx.xx/aircon/set_special_mode?set_spmode=1&spmode_kind=1


Kind regards

Gisbert

Zitat von: pifs am 30 März 2022, 13:37:08
Found some useful info to control the Daikin via cloud https://github.com/Apollon77/daikin-controller-cloud

Gr. Paul.

How does this work in detail? I'm lost.
To which URL do I need to login?
ZitatThe easy mode is to use the login method of the DaikinControllerCloud class and provide the E-Mail and the Password.

An automatic login is tried in this case and the tokens are retrieved.

Regards
Gisbert​
Aktuelles FHEM | PROXMOX | Fujitsu Futro S740 | Debian 12 | UniFi | Homematic, VCCU, HMUART | ESP8266 | ATtiny85 | Wasser-, Stromzähler | Wlan-Kamera | SIGNALduino, Flamingo Rauchmelder FA21/22RF | RHASSPY

chris_kmn

#72
Moin Moin,

ich habe nun auch einige Daikins vom Typ FTXM-R mit dem integrierten WLAN Modul und der Firmware 1_12_84.

Aus den Diskussionen hier habe ich verstanden, dass es keine HTTP-Api mehr gibt, aber eine Cloud-Anbindung. Das DaikinAC Modul scheint auch nicht zu funktionieren.

Gibt es dazu schon FHEM-Lösungen wie man die Geräte ansteuern könnte ? Mit Alexa sind die Gerate verbunden und steuerbar.
Gerne hätte ich das natürlich auch per FHEM im Zugriff.

Gefunden habe ich eine Library die zur Kommunikation mit der Daikin Cloud genutzt werden können soll:
https://github.com/Apollon77/daikin-controller-cloud

Leider kann ich damit nix anfangen :-(

Viele Grüße,

   Chris

Hilde25

Hallo,

bin nicht sicher, aber probiere mal die Angaben der Commandref:

define MYDEVICENAME HVAC_DaikinAC daikin-living.mydomainname 300 60
create a device with name MYDEVICENAME. Unit can be reached through DNS name daikin-living.mydomainname. Set polling intervals to 300 seconds when turned off and 60 seconds when the unit is powered on

https://fhem.de/commandref.html#HVAC_DaikinAC

Gruss

chris_kmn

Vielen Dank. Aber das ist leider die ,,alte" Variante für die die Controller direkt über Port 80 ansprechbar sein müssen. Das haben sie jedoch bei den neuen Versionen nun deaktiviert (was aktuell zu viel Frust bei den Smarthome Nutzern führt).

Ich hoffe Daikin besinnt sich da noch eines Besseren. Mit dieser Cloud-Einbahnstraße erzwingt man sich halt die Kundendaten - oder man kann halt die teuer bezahlte Online-Funktion nicht nutzen. Pech gehabt lieber Kunde :(