core/homeassistant/components/file/strings.json

101 lines
3.4 KiB
JSON

{
"config": {
"step": {
"user": {
"description": "Make a choice",
"menu_options": {
"sensor": "Set up a file-based sensor",
"notify": "Set up a notification service"
}
},
"sensor": {
"title": "File sensor",
"description": "[%key:component::file::config::step::user::menu_options::sensor%]",
"data": {
"file_path": "File path",
"value_template": "Value template",
"unit_of_measurement": "Unit of measurement"
},
"data_description": {
"file_path": "The local file path to retrieve the sensor value from",
"value_template": "A template to render the sensor's value based on the file content",
"unit_of_measurement": "Unit of measurement for the sensor"
}
},
"notify": {
"title": "Notification to file service",
"description": "Set up a service that allows to write notification to a file.",
"data": {
"file_path": "[%key:component::file::config::step::sensor::data::file_path%]",
"timestamp": "Timestamp"
},
"data_description": {
"file_path": "A local file path to write the notification to",
"timestamp": "Add a timestamp to the notification"
}
}
},
"error": {
"not_allowed": "Access to the selected file path is not allowed"
},
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]"
}
},
"options": {
"step": {
"init": {
"data": {
"value_template": "[%key:component::file::config::step::sensor::data::value_template%]",
"unit_of_measurement": "[%key:component::file::config::step::sensor::data::unit_of_measurement%]",
"timestamp": "[%key:component::file::config::step::notify::data::timestamp%]"
},
"data_description": {
"value_template": "[%key:component::file::config::step::sensor::data_description::value_template%]",
"unit_of_measurement": "[%key:component::file::config::step::sensor::data_description::unit_of_measurement%]",
"timestamp": "[%key:component::file::config::step::notify::data_description::timestamp%]"
}
}
}
},
"exceptions": {
"dir_not_allowed": {
"message": "Access to {filename} is not allowed."
},
"write_access_failed": {
"message": "Write access to {filename} failed: {exc}."
},
"no_access_to_path": {
"message": "Cannot read {filename}, no access to path; `allowlist_external_dirs` may need to be adjusted in `configuration.yaml`"
},
"unsupported_file_encoding": {
"message": "Cannot read {filename}, unsupported file encoding {encoding}."
},
"file_decoding": {
"message": "Cannot read file {filename} as {encoding}."
},
"file_not_found": {
"message": "File {filename} not found."
},
"file_read_error": {
"message": "Error reading {filename}."
}
},
"services": {
"read_file": {
"name": "Read file",
"description": "Reads a file and returns the contents.",
"fields": {
"file_name": {
"name": "File name",
"description": "Name of the file to read."
},
"file_encoding": {
"name": "File encoding",
"description": "Encoding of the file (JSON, YAML.)"
}
}
}
}
}