●HA작업)## EBS라디오 Nest hub에 나오게 하기 설정 방법 ##
이전
다음
링크
본문
●HA작업)## EBS라디오 Nest hub에 나오게 하기 설정 방법 ##
## # switches.yaml 에 추가를 붙여넣기하세요
# media_player.nest_hub_seojae 는 출력위치 변경 방법입니다,
# 출력위치는 통합구성요소>구성요소>Nest hub-서재>톱니아키콘(설정)에서 구성요소id를 media_player.nest_hub_seojae 찾아서 아래변경 합니다.
- platform: template
switches:
kitchen_ebs_radio:
friendly_name: "Kitchen EBS Radio"
unique_id: "kitchen_ebs_radio"
value_template: "{{ is_state_attr('media_player.nest_hub_seojae', 'media_content_id', 'https://ebsonair.ebs.co.kr/fmradiotablet500k/tablet500k/playlist.m3u8') }}"
turn_on:
- service: media_player.play_media
data:
media_content_id: https://ebsonair.ebs.co.kr/fmradiotablet500k/tablet500k/playlist.m3u8
media_content_type: playlist
target:
entity_id:
- media_player.nest_hub_seojae
turn_off:
- service: media_player.turn_off
target:
entity_id: >
{{ iif(is_state('switch.kitchen_ebs_radio', 'on'), 'media_player.nest_hub_seojae', 'media_player.null') }}
icon_template: mdi:radio
# https://cafe.naver.com/koreassistant/10409 의 내용입니다.20230420_1655_30
출력위치는 찾기
통합구성요소>구성요소>Nest hub-서재>톱니아키콘(설정)에서 구성요소id를 media_player.nest_hub_seojae 찾아서 아래변경 합니다.
kitchen_ebs_radio: 를 메인 둘러보기에 추가 하기
둘러보기에 추가한 라디오 입니다
주) 구글 음성명령은 동작중 일때는 EBS 라디오 꺼줘는 되는데 ,,,켜줘는 안되네요
☞ https://11q.kr 에 등록된 자료 입니다. ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다♠
관련자료
-
링크
-
이전
-
다음
댓글 1
11qkr님의 댓글
https://cafe.naver.com/koreassistant/7727
애드온 설치후
포트포오드 3005 설정
http://11q.kr:3005/radio?keys=kbs_cool&token=homeassistant
테스트시 다운로드 나와면 성공
개발자 도구>서비스에서 아래 붙여넣기
================================
service: media_player.play_media
target:
entity_id: media_player.nest_hub_seojae
data:
media_content_type: "audio/aac"
media_content_id: "http://11q.kr:3005/radio?keys=kbs_cool&token=homeassistant"
============================
https://github.com/projectdhs/ha_addon/blob/main/radioha/radio-list.json
==============
frontend를 설치해서 라디오 채널을 선택할 수 있도록 했습니다.
https://github.com/lukx/home-assistant-jukebox
설치는 위 주소에 나온대로 하시면 됩니다.
================
구성은
---------------
type: custom:jukebox-card
links:
^^- url: http://192.168.0.x:3005/radio?keys=ytn&token=homeassistant
^^^^name: YTN
^^- url: http://192.168.0.x:3005/radio?keys=tbsfm&token=homeassistant
^^^^name: TBS
^^- url: http://192.168.0.x:3005/radio?keys=tbnfm&token=homeassistant
^^^^name: TBN
^^- url: http://192.168.0.x:3005/radio?keys=ifm&token=homeassistant
^^^^name: iTV
^^- url: http://192.168.0.x:3005/radio?keys=ebsfm&token=homeassistant
^^^^name: EBS
^^- url: http://192.168.0.x:3005/radio?keys=cbs_music_fm&token=homeassistant
^^^^name: CBS Music
^^- url: http://192.168.0.x:3005/radio?keys=cbs_fm&token=homeassistant
^^^^name: CBS
^^- url: http://192.168.0.x:3005/radio?keys=kbs_cool&token=homeassistant
^^^^name: KBS Cool
^^- url: http://192.168.0.x:3005/radio?keys=kbs_happy&token=homeassistant
^^^^name: KBS Happy
^^- url: http://192.168.0.x:3005/radio?keys=kbs_classic&token=homeassistant
^^^^name: KBS Classic
^^- url: http://192.168.0.x:3005/radio?keys=kbs_1radio&token=homeassistant
^^^^name: KBS1
^^- url: http://192.168.0.x:3005/radio?keys=kbs_3radio&token=homeassistant
^^^^name: KBS3
^^- url: http://192.168.0.x:3005/radio?keys=sbs_power&token=homeassistant
^^^^name: SBS Power
^^- url: http://192.168.0.x:3005/radio?keys=sbs_love&token=homeassistant
^^^^name: SBS Love
^^- url: http://192.168.0.x:3005/radio?keys=mbc_fm&token=homeassistant
^^^^name: MBC
^^- url: http://192.168.0.x:3005/radio?keys=mbc_fm4u&token=homeassistant
^^^^name: MBC FM4U
entities:
^^- media_player.mini_livingroom
^^- media_player.mini_bedroom
^^- media_player.mini_study
첨부사진
애드온 설치후
포트포오드 3005 설정
http://11q.kr:3005/radio?keys=kbs_cool&token=homeassistant
테스트시 다운로드 나와면 성공
개발자 도구>서비스에서 아래 붙여넣기
================================
service: media_player.play_media
target:
entity_id: media_player.nest_hub_seojae
data:
media_content_type: "audio/aac"
media_content_id: "http://11q.kr:3005/radio?keys=kbs_cool&token=homeassistant"
============================
https://github.com/projectdhs/ha_addon/blob/main/radioha/radio-list.json
==============
frontend를 설치해서 라디오 채널을 선택할 수 있도록 했습니다.
https://github.com/lukx/home-assistant-jukebox
설치는 위 주소에 나온대로 하시면 됩니다.
================
구성은
---------------
type: custom:jukebox-card
links:
^^- url: http://192.168.0.x:3005/radio?keys=ytn&token=homeassistant
^^^^name: YTN
^^- url: http://192.168.0.x:3005/radio?keys=tbsfm&token=homeassistant
^^^^name: TBS
^^- url: http://192.168.0.x:3005/radio?keys=tbnfm&token=homeassistant
^^^^name: TBN
^^- url: http://192.168.0.x:3005/radio?keys=ifm&token=homeassistant
^^^^name: iTV
^^- url: http://192.168.0.x:3005/radio?keys=ebsfm&token=homeassistant
^^^^name: EBS
^^- url: http://192.168.0.x:3005/radio?keys=cbs_music_fm&token=homeassistant
^^^^name: CBS Music
^^- url: http://192.168.0.x:3005/radio?keys=cbs_fm&token=homeassistant
^^^^name: CBS
^^- url: http://192.168.0.x:3005/radio?keys=kbs_cool&token=homeassistant
^^^^name: KBS Cool
^^- url: http://192.168.0.x:3005/radio?keys=kbs_happy&token=homeassistant
^^^^name: KBS Happy
^^- url: http://192.168.0.x:3005/radio?keys=kbs_classic&token=homeassistant
^^^^name: KBS Classic
^^- url: http://192.168.0.x:3005/radio?keys=kbs_1radio&token=homeassistant
^^^^name: KBS1
^^- url: http://192.168.0.x:3005/radio?keys=kbs_3radio&token=homeassistant
^^^^name: KBS3
^^- url: http://192.168.0.x:3005/radio?keys=sbs_power&token=homeassistant
^^^^name: SBS Power
^^- url: http://192.168.0.x:3005/radio?keys=sbs_love&token=homeassistant
^^^^name: SBS Love
^^- url: http://192.168.0.x:3005/radio?keys=mbc_fm&token=homeassistant
^^^^name: MBC
^^- url: http://192.168.0.x:3005/radio?keys=mbc_fm4u&token=homeassistant
^^^^name: MBC FM4U
entities:
^^- media_player.mini_livingroom
^^- media_player.mini_bedroom
^^- media_player.mini_study
첨부사진