screenshot and companion app automation

This commit is contained in:
2026-04-22 19:03:30 -05:00
committed by GitHub
parent a67316972d
commit 8972a3827c
+28 -14
View File
@@ -1,6 +1,6 @@
# RelayTV Home Assistant Integration # RelayTV Home Assistant Integration
![RelayTV logo](custom_components/relaytv/brand/logo.png) ![RelayTV Screenshots](relaytv-ha.png)
RelayTV for Home Assistant adds your self-hosted RelayTV servers as Home Assistant entities and services, making it easy to control playback, launch media, trigger overlays, and integrate RelayTV into automations and dashboards. RelayTV for Home Assistant adds your self-hosted RelayTV servers as Home Assistant entities and services, making it easy to control playback, launch media, trigger overlays, and integrate RelayTV into automations and dashboards.
@@ -53,19 +53,6 @@ RelayTV integrates with Home Assistant as a local `media_player` plus RelayTV-sp
--- ---
## Screenshots
<!-- Suggested screenshots:
1. Home Assistant Devices & Services config entry
2. Media player entity card
3. Sidebar panel showing RelayTV UI
4. Example automation/service call
-->
_Add screenshots here for release._
---
## RelayTV Services ## RelayTV Services
| Service | RelayTV endpoint | Notes | | Service | RelayTV endpoint | Notes |
@@ -84,6 +71,33 @@ _Add screenshots here for release._
--- ---
## Home Assistant Companion App Share Automation
Add this automation to share links to the Home Assistant Phone App and play them on TV
```text
alias: RelayTV - Smart play from share
description: Opens shared URLs/text in RelayTV via relaytv.smart_url
triggers:
- event_type: mobile_app.share
trigger: event
conditions:
- condition: template
value_template: "{{ shared | trim | length > 0 }}"
actions:
- data:
url: "{{ shared | trim }}"
action: relaytv.smart_url
mode: single
variables:
shared: |-
{{ trigger.event.data.url
if trigger.event.data.url is defined else
(trigger.event.data.text if trigger.event.data.text is defined else '') }}
```
---
## Installation ## Installation
### HACS ### HACS