请教大神一个画蛇添足的问题,如下图:
在sensor.supervisor_info
这个实体里,我想把每一个addon插件的状态单独做成一个sensor
,需要取addons
下面那些插件(如图中红色箭头)的状态,取值是每个插件的状态(如图中绿色箭头),真是看不懂也不会jinja2
模板,请求大佬指点,N大说的我真的没明白。
附上文字:
newest_version: 2020.12.7
current_version: 2020.12.7
addons:
- name: Samba share
slug: core_samba
description: Expose Home Assistant folders with SMB/CIFS
state: started
version: 9.3.0
version_latest: 9.3.0
update_available: false
repository: core
icon: true
logo: true
- name: NGINX Home Assistant SSL proxy
slug: core_nginx_proxy
description: An SSL/TLS proxy
state: started
version: 3.0.1
version_latest: 3.0.1
update_available: false
repository: core
icon: true
logo: true
friendly_name: supervisor信息
icon: mdi:docker