mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 13:38:04 +00:00
* Add deduplicate script * Fix forecast_solar incorrect key with space * Fix utf-8 * Do not create references to other arbitrary other integrations * Add commented code to only allow applying to referencing integrations * Tweak * Bug fix * Add command line arg for limit reference * never suggest to update common keys * Output of script * Apply suggestions from code review Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com> --------- Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
39 lines
1.8 KiB
JSON
39 lines
1.8 KiB
JSON
{
|
|
"title": "Threshold Sensor",
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Add Threshold Sensor",
|
|
"description": "Create a binary sensor that turns on and off depending on the value of a sensor\n\nOnly lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].",
|
|
"data": {
|
|
"entity_id": "Input sensor",
|
|
"hysteresis": "Hysteresis",
|
|
"lower": "Lower limit",
|
|
"name": "[%key:common::config_flow::data::name%]",
|
|
"upper": "Upper limit"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"need_lower_upper": "Lower and upper limits can't both be empty"
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"description": "Only lower limit configured - Turn on when the input sensor's value is less than the lower limit.\nOnly upper limit configured - Turn on when the input sensor's value is greater than the upper limit.\nBoth lower and upper limit configured - Turn on when the input sensor's value is in the range [lower limit .. upper limit].",
|
|
"data": {
|
|
"entity_id": "[%key:component::threshold::config::step::user::data::entity_id%]",
|
|
"hysteresis": "[%key:component::threshold::config::step::user::data::hysteresis%]",
|
|
"lower": "[%key:component::threshold::config::step::user::data::lower%]",
|
|
"name": "[%key:component::threshold::config::step::user::data::name%]",
|
|
"upper": "[%key:component::threshold::config::step::user::data::upper%]"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"need_lower_upper": "[%key:component::threshold::config::error::need_lower_upper%]"
|
|
}
|
|
}
|
|
}
|