Closed CHNleing closed 4 years ago
When you create the characteristic, you can add a min_value
and a max_value
. Here's mine, for a HEATER_COOLER
:
HOMEKIT_CHARACTERISTIC(
COOLING_THRESHOLD_TEMPERATURE, 0,
.getter=ac_cooling_threshold_get,
.setter=ac_cooling_threshold_set,
.min_value = (float[]) {16},
.max_value = (float[]) {30},
.min_step = (float[]) {1}
),
@pbendersky And how to get characteristics in real time. After the cooling is set, the heating status is still displayed, and the cooling will be displayed only when you exit the home APP and reopen it. Please advise, thank you
When I use the remote control to turn off the air conditioner, I must quit the home app and then open the app to see the correct status
solved
Ask a question, the air conditioning temperature range: 16-30. I use HEATER_COOLER range is 0-100, 0-25. How to change this range. In line with air conditioning.