1
0
Fork 0

home-assistant: Add commands to control photoframe

The digital photo frame in the kitchen is powered by a server service,
which exposes a minimal HTTP API.  Using this API, we can e.g. advance
or backtrack the displayed photo.  Exposing `rest_command` services
for these operations allows us to add buttons to dashboards to control
the frame.
etcd
Dustin 2024-06-22 19:54:06 -05:00
parent 1c4b32925e
commit 21e8ad2afd
3 changed files with 9 additions and 0 deletions

View File

@ -54,6 +54,7 @@ automation: !include automations.yaml
script: !include scripts.yaml script: !include scripts.yaml
scene: !include scenes.yaml scene: !include scenes.yaml
shell_command: !include /run/config/shell-command.yaml shell_command: !include /run/config/shell-command.yaml
rest_command: !include /run/config/rest-command.yaml
lovelace: lovelace:
mode: storage mode: storage

View File

@ -27,6 +27,7 @@ configMapGenerator:
- groups.yaml - groups.yaml
- restart-diddy-mopidy.sh - restart-diddy-mopidy.sh
- shell-command.yaml - shell-command.yaml
- rest-command.yaml
options: options:
disableNameSuffixHash: true disableNameSuffixHash: true
labels: labels:

View File

@ -0,0 +1,7 @@
photoframe_next:
url: https://photos.pyrocufflink.blue/next
method: post
photoframe_prev:
url: https://photos.pyrocufflink.blue/prev
method: post