2020-04-20 16:25:35 -07:00
|
|
|
{
|
2024-10-21 20:42:18 +02:00
|
|
|
"title": "Timer",
|
2023-03-16 12:16:08 +01:00
|
|
|
"entity_component": {
|
2020-04-20 16:25:35 -07:00
|
|
|
"_": {
|
2023-03-16 21:10:20 +01:00
|
|
|
"name": "Timer",
|
2023-03-16 12:16:08 +01:00
|
|
|
"state": {
|
|
|
|
|
"active": "[%key:common::state::active%]",
|
|
|
|
|
"idle": "[%key:common::state::idle%]",
|
|
|
|
|
"paused": "[%key:common::state::paused%]"
|
2023-03-27 22:19:25 +02:00
|
|
|
},
|
|
|
|
|
"state_attributes": {
|
|
|
|
|
"duration": {
|
|
|
|
|
"name": "Duration"
|
|
|
|
|
},
|
|
|
|
|
"editable": {
|
|
|
|
|
"name": "[%key:common::generic::ui_managed%]",
|
|
|
|
|
"state": {
|
|
|
|
|
"true": "[%key:common::state::yes%]",
|
|
|
|
|
"false": "[%key:common::state::no%]"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"finishes_at": {
|
|
|
|
|
"name": "Finishes at"
|
|
|
|
|
},
|
|
|
|
|
"remaining": {
|
|
|
|
|
"name": "Remaining"
|
|
|
|
|
},
|
|
|
|
|
"restore": {
|
|
|
|
|
"name": "Restore"
|
|
|
|
|
}
|
2023-03-16 12:16:08 +01:00
|
|
|
}
|
2020-04-20 16:25:35 -07:00
|
|
|
}
|
2023-07-12 07:37:13 +02:00
|
|
|
},
|
|
|
|
|
"services": {
|
|
|
|
|
"start": {
|
2023-07-20 21:40:38 -05:00
|
|
|
"name": "[%key:common::action::start%]",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Starts a timer or restarts it with a provided duration.",
|
2023-07-12 07:37:13 +02:00
|
|
|
"fields": {
|
|
|
|
|
"duration": {
|
|
|
|
|
"name": "Duration",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Custom duration to restart the timer with."
|
2023-07-12 07:37:13 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"pause": {
|
2023-07-13 04:00:05 +02:00
|
|
|
"name": "[%key:common::action::pause%]",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Pauses a running timer, retaining the remaining duration for later continuation."
|
2023-07-12 07:37:13 +02:00
|
|
|
},
|
|
|
|
|
"cancel": {
|
|
|
|
|
"name": "Cancel",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Resets a timer's duration to the last known initial value without firing the timer finished event."
|
2023-07-12 07:37:13 +02:00
|
|
|
},
|
|
|
|
|
"finish": {
|
|
|
|
|
"name": "Finish",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Finishes a running timer earlier than scheduled."
|
2023-07-12 07:37:13 +02:00
|
|
|
},
|
|
|
|
|
"change": {
|
|
|
|
|
"name": "Change",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Changes a timer by adding or subtracting a given duration.",
|
2023-07-12 07:37:13 +02:00
|
|
|
"fields": {
|
|
|
|
|
"duration": {
|
|
|
|
|
"name": "Duration",
|
2024-12-09 22:37:32 +01:00
|
|
|
"description": "Duration to add to or subtract from the running timer."
|
2023-07-12 07:37:13 +02:00
|
|
|
}
|
|
|
|
|
}
|
2023-09-15 14:42:27 +02:00
|
|
|
},
|
|
|
|
|
"reload": {
|
|
|
|
|
"name": "[%key:common::action::reload%]",
|
2023-09-15 16:05:56 +02:00
|
|
|
"description": "Reloads timers from the YAML-configuration."
|
2023-07-12 07:37:13 +02:00
|
|
|
}
|
2020-04-20 16:25:35 -07:00
|
|
|
}
|
|
|
|
|
}
|