Closed kenthinson closed 4 years ago
I found this information looks the same but it's for Homebridge. Not sure how to translate it over to this library. https://github.com/nfarina/homebridge/issues/2239
Change the Current State and Target State based on that:
homekit_characteristic_t current_state = HOMEKIT_CHARACTERISTIC_(CURRENT_HEATING_COOLING_STATE, 0, .valid_values={.count=2, .values=(uint8_t[]) {0, 1}}; // Only OFF/HEAT state
homekit_characteristic_t target_state = HOMEKIT_CHARACTERISTIC_(TARGET_HEATING_COOLING_STATE, 0, .valid_values={.count=2, .values=(uint8_t[]) {0, 1}}, .callback=HOMEKIT_CHARACTERISTIC_CALLBACK(on_update)); // Only OFF/HEAT state
It basically sets the values to be only OFF and HEAT (0 and 1) so the Cooling option will be invisible in the Home app 😄
@HomeKidd nice thanks!
Hello I am attempting to create a heater using the thermostat code as an example. Despite the fact that I've striped out all the cooling declaration that I can see. I still cooling as an option in the HomeKit app. Can you point out where I'm going wrong? After I get the heater working I would be happy to contribute it back as an example file.