Update proto to match esphome

This commit is contained in:
Otto Winter 2019-10-17 21:25:39 +02:00
parent 8cb72b7e69
commit 1ee792ff39
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
2 changed files with 69 additions and 24 deletions

View File

@ -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