- 积分
- 919
- 金钱
- 790
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 919
- 金钱
- 790
- HASS币
- 0
|
发表于 2023-9-20 17:55:08
|
显示全部楼层
这是楼主的:
content: >-
<center><h2> {{ state_attr("sensor.short_part_of_poem", "content") }} </h2>
</center> <p align="right"> {{ state_attr("sensor.short_part_of_poem",
"origin")["dynasty"] }} {{ state_attr("sensor.short_part_of_poem",
"origin")["author"] }} - {{ state_attr("sensor.short_part_of_poem",
"origin")["title"] }} </p>
ignore_line_breaks: true
type: custom:html-template-card
这是你的:
content: >-
<center><h2> {{
state_attr("sensor.short_part_of_poem","origin")["content"][0]}} </h2>
</center> <p align="right"> {{ state_attr("sensor.short_part_of_poem",
"origin")["dynasty"] }} {{ state_attr("sensor.short_part_of_poem",
"origin")["author"] }} - {{ state_attr("sensor.short_part_of_poem",
"origin")["title"] }} </p>
ignore_line_breaks: true
type: custom:html-template-card
|
|