升级到2022.4的小伙伴会发现原来的油价插件不能用了,故有了下面的nr流程,数据来源和原来的插件一样
Markdown的写法要稍作修改
<ha-icon icon="mdi:update"></ha-icon> {{ states.sensor.youjia.last_changed.strftime('%Y-%m-%d') }}
## <center>92# <ha-icon icon="mdi:gas-station"></ha-icon> <font color=#ea4335> {{ state_attr('sensor.youjia', '92')}} </font> 95# <ha-icon icon="mdi:gas-station"></ha-icon> <font color=#fbbc05> {{ state_attr('sensor.youjia', '95')}} </font> <p> 98# <ha-icon icon="mdi:gas-station"></ha-icon> <font color=#4285f4> {{ state_attr('sensor.youjia', '98')}}</font> 0#柴<ha-icon icon="mdi:gas-station"></ha-icon> <font color=#34a853> {{ state_attr('sensor.youjia', '0')}} </font></center>
- {{ states('sensor.youjia') }}
- {{ state_attr('sensor.youjia','tips')}}
|