mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
86 lines
2.1 KiB
JSON
86 lines
2.1 KiB
JSON
{
|
|
"common": {
|
|
"condition_behavior_name": "Condition passes if",
|
|
"condition_for_name": "For at least"
|
|
},
|
|
"conditions": {
|
|
"is_being_held": {
|
|
"description": "Tests if one or more buttons are being held.",
|
|
"fields": {
|
|
"behavior": {
|
|
"name": "[%key:component::button::common::condition_behavior_name%]"
|
|
},
|
|
"for": {
|
|
"name": "[%key:component::button::common::condition_for_name%]"
|
|
}
|
|
},
|
|
"name": "Button is being held"
|
|
}
|
|
},
|
|
"device_automation": {
|
|
"action_type": {
|
|
"press": "Press {entity_name} button"
|
|
},
|
|
"trigger_type": {
|
|
"pressed": "{entity_name} has been pressed"
|
|
}
|
|
},
|
|
"entity_component": {
|
|
"_": {
|
|
"name": "[%key:component::button::title%]"
|
|
},
|
|
"identify": {
|
|
"name": "Identify"
|
|
},
|
|
"restart": {
|
|
"name": "[%key:common::action::restart%]"
|
|
},
|
|
"update": {
|
|
"name": "Update"
|
|
}
|
|
},
|
|
"selector": {
|
|
"press_count": {
|
|
"options": {
|
|
"1": "Single press",
|
|
"2": "Double press",
|
|
"3": "Triple press",
|
|
"4": "Quadruple press"
|
|
}
|
|
}
|
|
},
|
|
"services": {
|
|
"press": {
|
|
"description": "Presses a button.",
|
|
"name": "Press button"
|
|
}
|
|
},
|
|
"title": "Button",
|
|
"triggers": {
|
|
"held": {
|
|
"description": "Triggers when one or more buttons are held, optionally repeating at a set interval for as long as they stay held.",
|
|
"fields": {
|
|
"interval": {
|
|
"description": "How often to trigger again while the button stays held. Leave empty to trigger once per hold.",
|
|
"name": "Interval"
|
|
}
|
|
},
|
|
"name": "Button held"
|
|
},
|
|
"hold_ended": {
|
|
"description": "Triggers when one or more buttons are released after being held.",
|
|
"name": "Button hold ended"
|
|
},
|
|
"pressed": {
|
|
"description": "Triggers when one or more buttons are pressed.",
|
|
"fields": {
|
|
"press_count": {
|
|
"description": "How many times the button is pressed in quick succession.",
|
|
"name": "Number of presses"
|
|
}
|
|
},
|
|
"name": "Button pressed"
|
|
}
|
|
}
|
|
}
|