72 lines
2.0 KiB
Plaintext
Executable File
72 lines
2.0 KiB
Plaintext
Executable File
#-------------------------------------------
|
|
# Radio Related Packages
|
|
# @CCOSTAN
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
#-------------------------------------------
|
|
#------Whole House Radio Enabled via Emulated Hue----------------------------
|
|
homeassistant:
|
|
customize:
|
|
input_boolean.house_station:
|
|
icon: mdi:radio
|
|
friendly_name: House Station
|
|
|
|
|
|
#---Use this Boolean to trigger via GUI or Alexa------------------------------
|
|
input_boolean:
|
|
house_station:
|
|
name: House Station
|
|
initial: off
|
|
|
|
#Moved to the Alarm Clock Package.
|
|
|
|
# #-----Turn on the Music--------------------------------------
|
|
# automation:
|
|
# - alias: 'Play Americas Country on ChromeCast Audio'
|
|
# id: 6ef0d9e1-b503-4e64-bb15-7d44e452ce72
|
|
#
|
|
# trigger:
|
|
# - platform: state
|
|
# entity_id:
|
|
# - input_boolean.house_station
|
|
# to: 'on'
|
|
# from: 'off'
|
|
#
|
|
# action:
|
|
# - service: media_player.turn_off
|
|
# entity_id: media_player.living_room_tv
|
|
#
|
|
# - service: media_player.turn_on
|
|
# entity_id: media_player.livingroomCC
|
|
#
|
|
# - service: media_player.volume_set
|
|
# entity_id:
|
|
# - media_player.livingroomCC
|
|
# data:
|
|
# volume_level: 0.2
|
|
#
|
|
# - service: media_player.play_media
|
|
# data:
|
|
# entity_id:
|
|
# - media_player.LivingRoomCC
|
|
# media_content_id: "http://listen.181fm.com/181-kickincountry_128k.mp3"
|
|
# #media_content_id: "http://listen.djcmedia.com:80/americascountryhigh"
|
|
# media_content_type: audio/mp4
|
|
#
|
|
# #-----Turn off the Music--------------------------------------
|
|
# - alias: 'Turn off the Radio'
|
|
# id: 624c40f3-ce4d-47b3-a892-ee50872a9f3e
|
|
#
|
|
# trigger:
|
|
# - platform: state
|
|
# entity_id:
|
|
# - input_boolean.house_station
|
|
# to: 'off'
|
|
# from: 'on'
|
|
#
|
|
# action:
|
|
# - service: media_player.turn_off
|
|
# entity_id: media_player.livingroomCC
|
|
#
|
|
# - service: input_boolean.turn_off
|
|
# entity_id: input_boolean.house_station
|