hi i trying to cast to 2 volumio and my 1 tv for now…
if i remove the tv it will play the audio file 2 times it will wait and play it 2 more times like 1 min later… but really its supposed to work as if the toggle switch is on… repeat endless and when the toggle switch is turn off… then it will stop… but its set to repeat endless. yet it only plays 2 times pauses like 1 min then plays again 2 times and never plays again… id like it to constantly repeat…
i wanna send it to the volumuio and the tvs i only have 1 tv that supportrs casting… but i trying to make alarm
if my smoke detectors sense a fire for it to go off sounding the alarm till i shut it off… and id like it to display a image on the screen and volumio but it doesnt work right…
but here is the code i working with
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.smoke_alarm_siren_on
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.smoke_alarm_siren_on
state: "on"
sequence:
- service: media_player.repeat_set
data:
repeat: all
target:
entity_id:
- media_player.building_volumio_upnp_av
- media_player.warning_volumio_upnp_av
- media_player.viziocastdisplay9742
- service: media_player.play_media
data:
media_content_id: media-source://media_source/local/alarm/siren.mp3
media_content_type: audio/mpeg
enqueue: play
target:
entity_id:
- media_player.building_volumio_upnp_av
- media_player.warning_volumio_upnp_av
- media_player.viziocastdisplay9742
- conditions:
- condition: state
entity_id: input_boolean.smoke_alarm_siren_on
state: "off"
sequence:
- service: media_player.media_stop
data: {}
target:
entity_id:
- media_player.building_volumio_upnp_av
- media_player.warning_volumio_upnp_av
- media_player.viziocastdisplay9742
mode: single