Daikin CMPfreq logging (defrosts)

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
mrevil1337
Posts: 1
Joined: Sunday 27 December 2020 22:57
Target OS: Linux
Domoticz version:
Contact:

Daikin CMPfreq logging (defrosts)

Post by mrevil1337 »

Dear all,

I want to log the cmpfreq for my Daikin airconditioner to see when the outsideunit go to defrost action and how calm the unit is running, but there is no option inside the default domoticz plugin called Daikin airconditioner, i found a pyton script from github but that one is linked to the default build-in plugin...

What do i see.
visit: http://192.168.0.250/aircon/get_sensor_info
ret=OK,htemp=23.0,hhum=-,otemp=4.0,err=0,cmpfreq=38,mompow=7

Information:
htemp=inside room temp, hhum= not supported on my unit only the Ururu Sahara has this option i think.
otemp= Outside temp, cmpfreq= The outside compressor load normaly between 12 to 84 max, mompow= Inside unit workload

Is there anyway i can edit the default script and where do i find the file? i cannot find it anywhere to edit it, most easy way should be edit hhum or htemp for me.

If i need to offer the hhum(inside temp) option so be it.

Anyone can assist me where to edit/find the config file inside the terminal console ?
of course if anyone know a script to log cmpfreq that would also be fine.

Note: The default Daikin power consumption scheme you cannot see any defrost action because it is too short 5-10 minutes.

Edit:phyton script on github: https://github.com/leejoow/domoticz_daikin_BRP069A42
A defrost action wil show up as cmpfreq=84 that is just the max compressor speed for about 5 to 15 minutes.
Last edited by mrevil1337 on Tuesday 29 December 2020 15:00, edited 3 times in total.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Daikin CMPfreq logging (defrosts)

Post by Egregius »

You have a different reply than my Daikins.
When I do /aircon/get_sensor_info I get:
ret=OK,htemp=20.0,hhum=-,otemp=5.0,err=0,cmpfreq=0

This is part of my Pass2PHP cron10 script, executed every 10 seconds:

Code: Select all

if ($d['daikinliving']['m']==3||$d['daikinkamer']['m']==3||$d['daikinalex']['m']==3) {$rgb=230;$mode=3;}
elseif ($d['daikinliving']['m']==4||$d['daikinkamer']['m']==4||$d['daikinalex']['m']==4) {$rgb=1;$mode=4;}
elseif ($d['daikinliving']['m']==2||$d['daikinkamer']['m']==2||$d['daikinalex']['m']==2) {$rgb=56;$mode=2;}
else $rgb=false;
if ($rgb!=false) {
	$data=file_get_contents('http://192.168.2.112/aircon/get_sensor_info');
	if($data === FALSE) {
		return FALSE;
	}else{
		$array=explode(",",$data);
		$control_info= array();
		foreach($array as $value) {
			$pair= explode("=",$value);
			$control_info[$pair[0]]=$pair[1];
		}
		$level=$control_info['cmpfreq'];
		if ($level>100)$level=100;
		$Xlight=round($level/3);
		if ($d['Xlight']['s']!=$Xlight) {
			if ($d['Weg']['s']==0) {
				rgb('Xlight', $rgb, $Xlight);
				sl('Xlight', $Xlight, basename(__FILE__).':'.__LINE__);
			}
			if ($mode==3)storemode('Xlight', -$level, basename(__FILE__).':'.__LINE__);
			elseif ($mode==4)storemode('Xlight', $level, basename(__FILE__).':'.__LINE__);
			elseif ($mode==2)storemode('Xlight', -$level, basename(__FILE__).':'.__LINE__);
		}
	}
} else {
	if ($d['Xlight']['s']>0) sw('Xlight', 'Off', basename(__FILE__).':'.__LINE__);
	if ($d['Xlight']['m']!=0) storemode('Xlight', 0, basename(__FILE__).':'.__LINE__);
}
if ($d['Weg']['s']>0) {
	if ($d['Xlight']['s']>0) {
		sw('Xlight', 'Off', basename(__FILE__).':'.__LINE__);
	}
}
What I do here is get the get_sensor_data and set the light of a Xiaomi gateway with it. When the Xiaomi lights up red the unit is heating, when it's blue it's cooling. The brighter the light is the more power is used (cmpfreq)

Because /aircon/get_sensor_info gives you a comma separated array you just need something to fetch it and work with the string.

I'm not sure where you would get the defrost action tough. That's not visible with this command, or am I looking over it?
Which was the script that you found on Github?
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Daikin CMPfreq logging (defrosts)

Post by Egregius »

Also, keep in mind that the get_sensor_info is only updated once a minute. There's no realtime information available.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest