HA 整合安裝請參考 https://github.com/tsunglung/foodpanda/blob/master/README.md 作者:tsunglung 洋蔥
自動化通知可參考以下 將OOOOO換成自己的實體帳號
description: ""
mode: single
trigger:
- platform: state
entity_id:
- sensor.foodpanda_OOOOO_com_orders
condition: []
action:
- service: notify.line_notification
metadata: {}
data:
message: >-
:{{"\n"}}【FoodPanda】 {% if
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "餐廳已接受訂單" %}餐點準備中。 {% elif
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "訂單正在準備中。"
%}{{states.sensor.foodpanda_OOOOO_com_orders.attributes.restaurant_name}}正在準備訂單。
{% elif
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "正前往領取訂單。" %}外送員已取餐。 {% elif
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "即將抵達。" %}即將抵達,請準備取餐。 {% endif %}
{{"\n"}}預計送達時間:{{states.sensor.foodpanda_OOOOO_com_orders.attributes.eta}}分鐘後
- service: tts.azure_cognitive_speech_say
metadata: {}
data:
cache: false
entity_id: media_player.ru_kou
message: >-
:{{"\n"}}【FoodPanda】 {% if
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "餐廳已接受訂單" %}餐點準備中。 {% elif
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "訂單正在準備中。"
%}{{states.sensor.foodpanda_OOOOO_com_orders.attributes.restaurant_name}}正在準備訂單。
{% elif
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "正前往領取訂單。" %}外送員已取餐。 {% elif
states.sensor.foodpanda_OOOOO_com_orders.attributes.title_summary
== "即將抵達。" %}即將抵達,請準備取餐。 {% endif %}
{{"\n"}}預計送達時間:{{states.sensor.foodpanda_OOOOO_com_orders.attributes.eta}}分鐘後