- 积分
- 192
- 金钱
- 172
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 192
- 金钱
- 172
- HASS币
- 0
|
发表于 2023-12-9 20:17:26
|
显示全部楼层
朋友你用PIPUP能接收到推流弹窗吗?
帮我看下代码对不对
rest_commands.yaml文件中
pipup_image_on_tv:
url: http://192.168.1.2:7979/notify
content_type: 'application/json'
verify_ssl: false
method: 'post'
timeout: 20
payload: >
{
"duration": {{ duration | default(20) }},
"position": {{ position | default(0) }},
"title": "{{ title | default('') }}",
"titleColor": "{{ titleColor | default('#50BFF2') }}",
"titleSize": {{ titleSize | default(10) }},
"message": "{{ message }}",
"messageColor": "{{ messageColor | default('#fbf5f5') }}",
"messageSize": {{ messageSize | default(14) }},
"backgroundColor": "{{ backgroundColor | default('#0f0e0e') }}",
"media": {
"image": {
"uri": "{{ url }}",
"width": {{ width | default(640) }}
}
}
}
pipup_url_on_tv:
url: http://192.168.1.2:7979/notify
content_type: 'application/json'
verify_ssl: false
method: 'post'
timeout: 20
payload: >
{
"duration": {{ duration | default(20) }},
"position": {{ position | default(0) }},
"title": "{{ title | default('') }}",
"titleColor": "{{ titleColor | default('#50BFF2') }}",
"titleSize": {{ titleSize | default(10) }},
"message": "{{ message }}",
"messageColor": "{{ messageColor | default('#fbf5f5') }}",
"messageSize": {{ messageSize | default(14) }},
"backgroundColor": "{{ backgroundColor | default('#0f0e0e') }}",
"media": {
"web": {
"uri": "{{ url }}",
"width": {{ width | default(640) }},
"height": {{ height | default(480) }}
}
}
}
调用 上的服务
alias: 推送到电视
sequence:
- service: webrtc.create_link
data:
open_limit: 1
time_to_live: 60
entity: camera.192_168_1_22
link_id: '{{ link_id }}'
- service: rest_command.pipup_url_on_tv
data:
title: 标题
message: 消息
width: 640
height: 480
url: 192.168.1.3:8123/webrtc/embed?url={{ link_id }}&webrtc=false
我的电视PIPUP收不到推送 |
|