Hi!
I am trying exactly the same as you are doing. I have gotten the “turn off” part running reliably with the following automation. See the YAML below.
For turning on the art of mode: I have managed to turn on the art mode “semi-reliably”, but I am also looking for a more stable solution. I have also inserted it below.
alias: TV - Turn off art
description: ""
triggers:
- trigger: time
at: "21:30:00"
- trigger: time
at: "22:30:00"
- trigger: time
at: "23:30:00"
conditions:
- condition: state
entity_id: media_player.55_frame_tv
attribute: media_title
state: art
actions:
- action: media_player.turn_off
metadata: {}
data: {}
target:
device_id: <ID>
mode: single
alias: TV - Turn on Art Mode
description: ""
triggers:
- trigger: time
at: "17:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- trigger: time
at: "09:30:00"
weekday:
- sat
- sun
conditions: []
actions:
- action: samsungtv_smart.set_art_mode
metadata: {}
data:
entity_id: media_player.55_frame_tv
mode: single