楼主 这是什么情况
这是我的weather配置
sensor:
- platform: rest
name: weather
resource: [url=http://api.map.baidu.com/geocoder/v2/?address=]http://api.map.baidu.com/geocoder/v2/?address=[/url]沈阳市铁西区&output=json&ak==x3z7uC1xVyGTdyapTeDUlt5rmdpQWzC9
value_template: >-
{% if value_json.status == 'OK' %}
ok
{% else %}
fail
{% endif %}
json_attributes:
- result
group:
cdweather:
name: 沈阳
view: no
entities:
- sensor.weather
homeassistant:
customize:
sensor.weather:
custom_ui_state_card: state-card-weather
friendly_name: 彩云天气
|