Text 文本传感器
Text 组件文本传感器平台允许你将任何文本组件的状态视为只读的文本传感器。
# 示例配置条目text_sensor: - platform: text name: "Text state" source_id: my_text
text: - platform: template id: my_text name: "My Text" optimistic: true min_length: 0 max_length: 100 mode: text- source_id(必选,ID):要观察的源文本。
- 来自 Text Sensor 的所有其他选项。