mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Add selectors to Logger, System Log & Logbook service definitions (#46740)
This commit is contained in:
parent
62e0949ea9
commit
3f96ebeae5
@ -1,15 +1,29 @@
|
|||||||
log:
|
log:
|
||||||
description: Create a custom entry in your logbook.
|
description: Create a custom entry in your logbook
|
||||||
fields:
|
fields:
|
||||||
name:
|
name:
|
||||||
|
name: Name
|
||||||
description: Custom name for an entity, can be referenced with entity_id
|
description: Custom name for an entity, can be referenced with entity_id
|
||||||
|
required: true
|
||||||
example: "Kitchen"
|
example: "Kitchen"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
message:
|
message:
|
||||||
|
name: Message
|
||||||
description: Message of the custom logbook entry
|
description: Message of the custom logbook entry
|
||||||
|
required: true
|
||||||
example: "is being used"
|
example: "is being used"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
entity_id:
|
entity_id:
|
||||||
|
name: Entity ID
|
||||||
description: Entity to reference in custom logbook entry [Optional]
|
description: Entity to reference in custom logbook entry [Optional]
|
||||||
example: "light.kitchen"
|
example: "light.kitchen"
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
domain:
|
domain:
|
||||||
|
name: Domain
|
||||||
description: Icon of domain to display in custom logbook entry [Optional]
|
description: Icon of domain to display in custom logbook entry [Optional]
|
||||||
example: "light"
|
example: "light"
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
@ -1,22 +1,43 @@
|
|||||||
set_default_level:
|
set_default_level:
|
||||||
description: Set the default log level for components.
|
description: Set the default log level for components
|
||||||
fields:
|
fields:
|
||||||
level:
|
level:
|
||||||
description: "Default severity level. Possible values are debug, info, warn, warning, error, fatal, critical"
|
name: Level
|
||||||
|
description:
|
||||||
|
"Default severity level. Possible values are debug, info, warn, warning,
|
||||||
|
error, fatal, critical"
|
||||||
example: debug
|
example: debug
|
||||||
|
selector:
|
||||||
|
select:
|
||||||
|
options:
|
||||||
|
- debug
|
||||||
|
- info
|
||||||
|
- warning
|
||||||
|
- error
|
||||||
|
- fatal
|
||||||
|
- critical
|
||||||
|
|
||||||
set_level:
|
set_level:
|
||||||
description: Set log level for components.
|
description: Set log level for components
|
||||||
fields:
|
fields:
|
||||||
homeassistant.core:
|
homeassistant.core:
|
||||||
description: "Example on how to change the logging level for a Home Assistant core components. Possible values are debug, info, warn, warning, error, fatal, critical"
|
description:
|
||||||
|
"Example on how to change the logging level for a Home Assistant core
|
||||||
|
components. Possible values are debug, info, warn, warning, error,
|
||||||
|
fatal, critical"
|
||||||
example: debug
|
example: debug
|
||||||
homeassistant.components.mqtt:
|
homeassistant.components.mqtt:
|
||||||
description: "Example on how to change the logging level for an Integration. Possible values are debug, info, warn, warning, error, fatal, critical"
|
description:
|
||||||
|
"Example on how to change the logging level for an Integration. Possible
|
||||||
|
values are debug, info, warn, warning, error, fatal, critical"
|
||||||
example: warning
|
example: warning
|
||||||
custom_components.my_integration:
|
custom_components.my_integration:
|
||||||
description: "Example on how to change the logging level for a Custom Integration. Possible values are debug, info, warn, warning, error, fatal, critical"
|
description:
|
||||||
|
"Example on how to change the logging level for a Custom Integration.
|
||||||
|
Possible values are debug, info, warn, warning, error, fatal, critical"
|
||||||
example: debug
|
example: debug
|
||||||
aiohttp:
|
aiohttp:
|
||||||
description: "Example on how to change the logging level for a Python module. Possible values are debug, info, warn, warning, error, fatal, critical"
|
description:
|
||||||
|
"Example on how to change the logging level for a Python module.
|
||||||
|
Possible values are debug, info, warn, warning, error, fatal, critical"
|
||||||
example: error
|
example: error
|
||||||
|
@ -1,15 +1,34 @@
|
|||||||
clear:
|
clear:
|
||||||
description: Clear all log entries.
|
description: Clear all log entries
|
||||||
|
|
||||||
write:
|
write:
|
||||||
description: Write log entry.
|
description: Write log entry
|
||||||
fields:
|
fields:
|
||||||
message:
|
message:
|
||||||
description: Message to log. [Required]
|
name: Message
|
||||||
|
description: Message to log.
|
||||||
|
required: true
|
||||||
example: Something went wrong
|
example: Something went wrong
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
level:
|
level:
|
||||||
description: "Log level: debug, info, warning, error, critical. Defaults to 'error'."
|
name: Level
|
||||||
|
description: "Log level: debug, info, warning, error, critical."
|
||||||
|
default: error
|
||||||
example: debug
|
example: debug
|
||||||
|
selector:
|
||||||
|
select:
|
||||||
|
options:
|
||||||
|
- "debug"
|
||||||
|
- "info"
|
||||||
|
- "warning"
|
||||||
|
- "error"
|
||||||
|
- "critical"
|
||||||
logger:
|
logger:
|
||||||
description: Logger name under which to log the message. Defaults to 'system_log.external'.
|
name: Logger
|
||||||
|
description:
|
||||||
|
Logger name under which to log the message. Defaults to
|
||||||
|
'system_log.external'.
|
||||||
example: mycomponent.myplatform
|
example: mycomponent.myplatform
|
||||||
|
selector:
|
||||||
|
text:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user