Skip to content

TARGET_HEATING_COOLING_STATE thermostat #266

@fpgiovanini-blip

Description

@fpgiovanini-blip

When I tried to read the TARGET_HEATING_COOLING_STATE using the function

void target_state_setter(const homekit_value_t value) {
LOG_D("TARGET STATE SETTER: Got value INT: %d", value.int_value);
ac_target_state.value = value; //sync value

i received the folowing strange big values:
//TARGET STATE SETTER: Got value INT: 1073646336--off
//TARGET STATE SETTER: Got value INT: 1073646337--heat
//TARGET STATE SETTER: Got value INT: 1073646338--cool
//TARGET STATE SETTER: Got value INT: 1073646339--auto

instead of:
0: OFF
1: HEAT
2: COOL
3: AUTO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions