action:
- service: notify.weixin_smarthome
data_template:
title: "移动轨迹"
message: >
"news|车子目前位于{{states('sensor.car')}}|https://uri.amap.com/marker?position=120.00000,30.00000|https://restapi.amap.com/v3/staticmap?zoom=14&size=1024*512&markers=large,,A:{{state_attr('device_tracker.car', 'longitude') + 0.00485}},{{state_attr('device_tracker.car', 'latitude') - 0.00300}}&key=*********************************"
车子的位置属性怎么写,现在提示 'state_attr' is undefined,方便请指教,谢谢 |