Samsung TV scripts, automations, lovelace
I'm using HomeAssistant - SamsungTV Smart Component from HACS: https://github.com/ollo69/ha-samsungtv-smart
In the files you can find the relevant parts of the configuration:
- configuration.yaml
- how you can include the below files to your configuration (how to split configuration.yaml to multiple files)
- scripts.yaml
- multiple scripts, each for one "remote" button press / TV function
- automations.yaml
- one automation which listens to events from HomeKit and call the appropriate scripts to do the actions on the TV. You can use the Remote Widget in the Control Center from your iOS device to quickly control the TV
- lovelace-card-full.yaml
- lovelace-card-brief.yaml
- lovelace-popup.yaml
-
I use this code for the Livingroom TV entity popup which I've set in the Dwain's Dashboard
-
It's using stack-in-card from HACS to view mutltiple cards withotu borders between them: https://github.com/custom-cards/stack-in-card
-
It's using mini-media-player card from HACS to get different media controls which are not available in default one: https://github.com/kalkih/mini-media-player
-
It's using lovelace-card-mod to change css of the cards: https://github.com/thomasloven/lovelace-card-mod
-
The first card is mini-media-player which is used for 'source' selections and power control (visible when TV is on/off). This is using the media_player entity for the Samsung TV.
-
The second card is default media-control card for Plex media player app from the TV which allows to Browse the media and select movie/series/etc.
-
The third card is mini-media-player visible only when Plex media player app is playing anything - it shows the title and thumbnail.
-
The fourth card is the horizontal-stack for the media controls
-
The fifth card is the grid card for the general TV controls
-
Credits:
- Jiří Dostalík is author of scripts.yaml and lovelace-card-full.yaml
- Pavol Holeš is author of the rest