本帖最后由 linlingzi 于 2019-9-8 12:52 编辑
service: notify.mobile_app_<your_device_id_here> data:
message: Something happened at home! data: push: category: map action_data: latitude: "40.785091" longitude: "-73.968285" You may also use a device_tracker for the latitude and longitude coordinates like so: "{{states.device_tracker.<your_device_id_here>.attributes.latitude}}" but make sure to use data_template in that case.
官方说明中,这里的经纬度参数如果用动态的,需要用data_template,不知道该怎么写,请高手指教,谢谢!
|