Hello, I have a problem with a script.
cuisine is a media player (Sonos)
I don’t know wich service is not supported by the device. How can I find that ?
my script:
alias: "door_fridge"
trigger:
- platform: state
entity_id: binary_sensor.fridge_door
to: "on"
for:
seconds: 30
action:
- service: media_player.turn_on
entity_id: media_player.cuisine
#- delay: "00:00:01"
- service: notify.email
data:
title: "Home assistant warning"
message: "Porte frigot ouverte"
- service: media_player.volume_set
data:
entity_id: media_player.cuisine
volume_level: 0.4
- service: media_player.play_media
entity_id: media_player.cuisine
data:
media_content_id: "http://192.168.1.107:8123/local/mp3/porte_frigot.mp3"
media_content_type: "music"
Many thanks for your help !