Closed simkard69 closed 1 year ago
Is it just a matter of solving my problem using these lines ?
homekit_characteristic_t * ch_temp = homekit_service_characteristic_by_type(Thermostat, HOMEKIT_CHARACTERISTIC_CURRENT_TEMPERATURE); ch_temp->min_value.float_value=18.0; ch_temp->max_value.float_value=32.0; ch_temp->min_step.float_value=0.5;
I have a doubt regarding the ".float_value" ...
Found these lines in example "EspHap_HeaterControl.ino" :
Are these the ones I'm looking for ?
I managed to get something working in THERMOSTAT with HEAT or COOL modes :
But when defining these 2 for AUTO mode, they seem to avoid the pairing procedure in IOS :
Any idea ?
Manage to solve my problem using these lines :
INIT_CHARACHTERISTIC_VAL_BY_TYPE(int, HomeKit_Svc_1, HOMEKIT_CHARACTERISTIC_CURRENT_POSITION, 50);
INIT_CHARACHTERISTIC_VAL_BY_TYPE(int, HomeKit_Svc_1, HOMEKIT_CHARACTERISTIC_TARGET_POSITION, 50);
INIT_CHARACHTERISTIC_VAL_BY_TYPE(int, HomeKit_Svc_1, HOMEKIT_CHARACTERISTIC_POSITION_STATE, 2);
>>>>> EDIT, please jump directly to this comment as I managed to get things better, but not enough yet <<<<<
Hello,
I'm actually creating an interface between my old A/C heatpump and HomeKit for my own use and I wanted to know how can we define the accessories details for this kind of scenario :
I could see that in file "characteristics.h" we have these code lines (related to "HOMEKIT_CHARACTERISTIC_TARGET_TEMPERATURE") :
define HOMEKIT_CHARACTERISTIC_TARGET_TEMPERATURE HOMEKIT_APPLE_UUID2("35")
define HOMEKIT_DECLARE_CHARACTERISTIC_TARGET_TEMPERATURE(_value, ...) \
Thanks