/third-part-integration-ha_tv

在电视上语音控制HomeAssistant设备

Primary LanguagePythonMIT LicenseMIT

HomeAssistant TV

在电视上语音控制HomeAssistant设备

hacs_badge hacs_badge visit

badge badge badge badge badge

badge

使用

命令授权

adb shell appops set com.jiluxinqing.tv SYSTEM_ALERT_WINDOW allow

服务

通知服务

显示位置:topleftrightbottomcenterleftTopleftBottomrightToprightButton

service: notify.ha_tv
data:
  title: 可选标题
  message: 消息内容
  data:
    duration: 10000
    placement: rightTop

播放视频

service: media_player.play_media
data:
  media_content_type: web
  media_content_id: https://tv.cctv.com/live/cctv1/
  entity_id: media_player.jia_ting_zhu_li_tvying_yong

事件

类型:ha_tv

type: notify
data:
  title: 标题
  message: 内容
  duration: 10000
  placement: rightTop
type: play_media
data:
  media_type: web
  media_id: https://tv.cctv.com/live/cctv1/
type: play_media
data:
  media_type: tts
  media_id: 你在干嘛呢?我在干饭啊

视频网站