Homekit Thermostat Status not Updating?

Hey there,
after painfull but goldenhours diving in openhab i came to the point to integrate homekit.
I have a little problem with my Dect 301 thermostates. This Thermostates support 5 stats (off,boost,eco,comfort,on(manual).

As I know, homekit thermostats support off, heat, cool, auto, on.

So, i did a rule to replace the Strings.

.items

/* Thermostate */
		Group	F2_thermostat_kueche_hk							"Heizung Küche"						(F2_room_kueche_hk)							[ "Thermostat" ]																								
		Number	F2_thermostat_kueche_TEMP_hk 					"Temperatur" 						(F2_room_bad_hk,F2_thermostat_kueche_hk) 	[ "CurrentTemperature" ]		...	
		Number	F2_thermostat_kueche_SOLL_hk 					"Temperatur Soll" 					(F2_room_bad_hk,F2_thermostat_kueche_hk) 	[ "TargetTemperature" ]			...	
		String	F2_thermostat_kueche_HKS_hk						"Temperatur Modus"					(F2_room_bad_hk,F2_thermostat_kueche_hk)

.rules

rule "Thermostat Informationen Homekit Bad"
	when
		Item F2_thermostat_bad_HKS_hk changed
	then
		var String thermostat_bad_HKS_hk = F2_thermostat_bad_HKS_hk.state.toString
		thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("COMFORT","auto")
		thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("BOOST","heat")
		thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("ECO","cool")
		thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("OFF","off")
		
		F2_thermostat_bad_HKS_hk.postUpdate(thermostat_bad_HKS_hk.toString)
	end

The Thermostat is importing in Home, shows actual and set Temp. But wenn I chose a mode, it goes to “no responding”
In the log an entry appears.

2018-10-29 18:50:42.020 [ERROR] [al.accessories.HomekitThermostatImpl] - Unrecognized heating cooling target mode: cool. Expected cool, heat, auto, or off strings in value.

So what? I am wrong or do i have a logical fail in my head?

Thanks :slight_smile:

Add some logging to check the value:

rule "Thermostat Informationen Homekit Bad"
when
    Item F2_thermostat_bad_HKS_hk changed
then
    var String thermostat_bad_HKS_hk = F2_thermostat_bad_HKS_hk.state.toString
    thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("COMFORT","auto")
    thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("BOOST","heat")
    thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("ECO","cool")
    thermostat_bad_HKS_hk = thermostat_bad_HKS_hk.replace("OFF","off")

    logInfo(" thermostat_bad_HKS_hk: ",  thermostat_bad_HKS_hk)
    F2_thermostat_bad_HKS_hk.postUpdate(thermostat_bad_HKS_hk.toString)
end

Dear all,

I have a related issue. I have no clue how to find the right replacements (if needed) for matching the Homekit mode strings with the ones fitting to my thermostat:

If the issue here was resolved: Could you recommend a solution in that thread? Thanks.