hass-core/homeassistant/components/ecobee/strings.json
myztillx 6861bbed79
Add ecobee set_sensors_used_in_climate service (#102871)
* Add set_active_sensors Service

* Remove version bump from service addition commit

* Reviewer suggested changes

* Changed naming to be more clear of functionality

* Adjusted additional naming to follow new convention

* Updated to pass failing CI tests

* Fix typo

* Fix to pass CI

* Changed argument from climate_name to preset_mode and changed service error

* Made loop more clear and changed raised error to log msg

* Fix typo

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Removed code that was accidentally added back in and fixed mypy errors

* Add icon for service

* Added sensors as attributes and updated tests

* Revert changes made in #126587

* Added tests for remote_sensors and set_sensors_used_in_climate

* Changed back to load multiplatforms (#126587)

* Check for empty sensor list and negative tests for errors raised

* Added tests and fixed errors

* Add hass to class init to allow for device_registry lookup at startup and check for name changed by user

* Added tests to test the new functions

* Simplified code and fixed testing error for simplification

* Added freeze in test

* Fixed device filtering

* Simplified code section

* Maintains the ability to call `set_sensors_used_in_climate` function even is the user changes the device name from the ecobee app or thermostat without needing to reload home assistant.

* Update tests with new functionality. Changed thermostat identifier to a string, since that is what is provided via the ecobee api

* Changed function parameter

* Search for specific ecobee identifier

* Moved errors to strings.json

* Added test for sensor not on thermostat

* Improved tests and updated device check

* Added attributes to _unrecoreded_attributes

* Changed name to be more clear

* Improve error message and add test for added property

* Renamed variables for clarity

* Added device_id to available_sensors to make it easier on user to find it

---------

Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-10-21 16:21:56 +02:00

214 lines
7.3 KiB
JSON

{
"config": {
"step": {
"user": {
"description": "Please enter the API key obtained from ecobee.com.",
"data": {
"api_key": "[%key:common::config_flow::data::api_key%]"
}
},
"authorize": {
"description": "Please authorize this app at https://www.ecobee.com/consumerportal/index.html with PIN code:\n\n{pin}\n\nThen, select **Submit**."
}
},
"error": {
"pin_request_failed": "Error requesting PIN from ecobee; please verify API key is correct.",
"token_request_failed": "Error requesting tokens from ecobee; please try again."
},
"abort": {
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]"
}
},
"entity": {
"climate": {
"ecobee": {
"state_attributes": {
"preset_mode": {
"state": {
"away_indefinitely": "Away Indefinitely"
}
}
}
}
},
"number": {
"ventilator_min_type_home": {
"name": "Ventilator min time home"
},
"ventilator_min_type_away": {
"name": "Ventilator min time away"
}
},
"switch": {
"aux_heat_only": {
"name": "Aux heat only"
}
}
},
"services": {
"create_vacation": {
"name": "Create vacation",
"description": "Creates a vacation on the selected thermostat. Note: start/end date and time must all be specified together for these parameters to have an effect. If start/end date and time are not specified, the vacation will start immediately and last 14 days (unless deleted earlier).",
"fields": {
"entity_id": {
"name": "Entity",
"description": "Ecobee thermostat on which to create the vacation."
},
"vacation_name": {
"name": "Vacation name",
"description": "Name of the vacation to create; must be unique on the thermostat."
},
"cool_temp": {
"name": "Cool temperature",
"description": "Cooling temperature during the vacation."
},
"heat_temp": {
"name": "Heat temperature",
"description": "Heating temperature during the vacation."
},
"start_date": {
"name": "Start date",
"description": "Date the vacation starts in the YYYY-MM-DD format (optional, immediately if not provided along with start_time)."
},
"start_time": {
"name": "Start time",
"description": "Time the vacation starts, in the local time of the thermostat, in the 24-hour format \"HH:MM:SS\"."
},
"end_date": {
"name": "End date",
"description": "Date the vacation ends in the YYYY-MM-DD format (optional, 14 days from now if not provided along with end_time)."
},
"end_time": {
"name": "End time",
"description": "Time the vacation ends, in the local time of the thermostat, in the 24-hour format \"HH:MM:SS\"."
},
"fan_mode": {
"name": "Fan mode",
"description": "Fan mode of the thermostat during the vacation."
},
"fan_min_on_time": {
"name": "Fan minimum on time",
"description": "Minimum number of minutes to run the fan each hour (0 to 60) during the vacation."
}
}
},
"delete_vacation": {
"name": "Delete vacation",
"description": "Deletes a vacation on the selected thermostat.",
"fields": {
"entity_id": {
"name": "Entity",
"description": "Ecobee thermostat on which to delete the vacation."
},
"vacation_name": {
"name": "[%key:component::ecobee::services::create_vacation::fields::vacation_name::name%]",
"description": "Name of the vacation to delete."
}
}
},
"resume_program": {
"name": "Resume program",
"description": "Resumes the programmed schedule.",
"fields": {
"entity_id": {
"name": "Entity",
"description": "Name(s) of entities to change."
},
"resume_all": {
"name": "Resume all",
"description": "Resume all events and return to the scheduled program."
}
}
},
"set_fan_min_on_time": {
"name": "Set fan minimum on time",
"description": "Sets the minimum fan on time.",
"fields": {
"entity_id": {
"name": "Entity",
"description": "[%key:component::ecobee::services::resume_program::fields::entity_id::description%]"
},
"fan_min_on_time": {
"name": "[%key:component::ecobee::services::create_vacation::fields::fan_min_on_time::name%]",
"description": "New value of fan min on time."
}
}
},
"set_dst_mode": {
"name": "Set Daylight savings time mode",
"description": "Enables/disables automatic daylight savings time.",
"fields": {
"dst_enabled": {
"name": "Daylight savings time enabled",
"description": "Enable automatic daylight savings time."
}
}
},
"set_mic_mode": {
"name": "Set mic mode",
"description": "Enables/disables Alexa mic (only for Ecobee 4).",
"fields": {
"mic_enabled": {
"name": "Mic enabled",
"description": "Enable Alexa mic."
}
}
},
"set_occupancy_modes": {
"name": "Set occupancy modes",
"description": "Enables/disables Smart Home/Away and Follow Me modes.",
"fields": {
"auto_away": {
"name": "Auto away",
"description": "Enable Smart Home/Away mode."
},
"follow_me": {
"name": "Follow me",
"description": "Enable Follow Me mode."
}
}
},
"set_sensors_used_in_climate": {
"name": "Set Sensors Used in Climate",
"description": "Sets the participating sensors for a climate.",
"fields": {
"entity_id": {
"name": "Entity",
"description": "Ecobee thermostat on which to set active sensors."
},
"preset_mode": {
"name": "Climate Name",
"description": "Name of the climate program to set the sensors active on.\nDefaults to currently active program."
},
"device_ids": {
"name": "Sensors",
"description": "Sensors to set as participating sensors."
}
}
}
},
"exceptions": {
"invalid_preset": {
"message": "Invalid climate name, available options are: {options}"
},
"invalid_sensor": {
"message": "Invalid sensor for thermostat, available options are: {options}"
},
"sensor_lookup_failed": {
"message": "There was an error getting the sensor ids from sensor names. Try reloading the ecobee integration."
}
},
"issues": {
"migrate_aux_heat": {
"title": "Migration of Ecobee set_aux_heat action",
"fix_flow": {
"step": {
"confirm": {
"description": "The Ecobee `set_aux_heat` action has been migrated. A new `aux_heat_only` switch entity is available for each thermostat that supports a Heat Pump.\n\nUpdate any automations to use the new `aux_heat_only` switch entity. When this is done, fix this issue and restart Home Assistant.",
"title": "Disable legacy Ecobee set_aux_heat action"
}
}
}
}
}
}