Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS support #413

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ group: !include groups.yaml
zone: !include zones/places.yaml
shell_command: !include shell_commands.yaml
climate: !include climate.yaml
ios: !include ios.yaml

# Merged Includes
automation: !include_dir_list automation
Expand Down
20 changes: 20 additions & 0 deletions ios.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
actions:
- name: Fred
background_color: "#000000"
label:
text: "Hello, World"
color: "#ff0000"
icon:
icon: earth
color: "#ffffff"

- name: "LINN_STUDY_USB"
label:
text: "Linn Study - USB"
icon:
icon: speaker
# actions:
# - identifier: 'LINN_STUDY_USB'
# title: 'USB Input'
# destructive: true
16 changes: 16 additions & 0 deletions packages/ios_events.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
automation:
- id: linn_study_usb
alias: 'Linn Study USB Input'
initial_state: true
hide_entity: true
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: LINN_STUDY_USB
action:
- service: media_player.select_source
data:
entity_id: media_player.openhome_uuid_4c494e4e_0026_0f22_646e_01560511013f
source: USB