mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-29 04:37:27 +02:00
Update proto to match esphome
This commit is contained in:
parent
8cb72b7e69
commit
1ee792ff39
@ -644,6 +644,12 @@ enum ClimateMode {
|
|||||||
CLIMATE_MODE_COOL = 2;
|
CLIMATE_MODE_COOL = 2;
|
||||||
CLIMATE_MODE_HEAT = 3;
|
CLIMATE_MODE_HEAT = 3;
|
||||||
}
|
}
|
||||||
|
enum ClimateAction {
|
||||||
|
CLIMATE_ACTION_OFF = 0;
|
||||||
|
// values same as mode for readability
|
||||||
|
CLIMATE_ACTION_COOLING = 2;
|
||||||
|
CLIMATE_ACTION_HEATING = 3;
|
||||||
|
}
|
||||||
message ListEntitiesClimateResponse {
|
message ListEntitiesClimateResponse {
|
||||||
option (id) = 46;
|
option (id) = 46;
|
||||||
option (source) = SOURCE_SERVER;
|
option (source) = SOURCE_SERVER;
|
||||||
@ -661,6 +667,7 @@ message ListEntitiesClimateResponse {
|
|||||||
float visual_max_temperature = 9;
|
float visual_max_temperature = 9;
|
||||||
float visual_temperature_step = 10;
|
float visual_temperature_step = 10;
|
||||||
bool supports_away = 11;
|
bool supports_away = 11;
|
||||||
|
bool supports_action = 12;
|
||||||
}
|
}
|
||||||
message ClimateStateResponse {
|
message ClimateStateResponse {
|
||||||
option (id) = 47;
|
option (id) = 47;
|
||||||
@ -675,7 +682,7 @@ message ClimateStateResponse {
|
|||||||
float target_temperature_low = 5;
|
float target_temperature_low = 5;
|
||||||
float target_temperature_high = 6;
|
float target_temperature_high = 6;
|
||||||
bool away = 7;
|
bool away = 7;
|
||||||
ClimateMode action = 8;
|
ClimateAction action = 8;
|
||||||
}
|
}
|
||||||
message ClimateCommandRequest {
|
message ClimateCommandRequest {
|
||||||
option (id) = 48;
|
option (id) = 48;
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user