Skip to content

Commit

Permalink
Include new v0.53 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Resinchem committed Aug 7, 2022
1 parent 5ef6a4d commit d1c7a66
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
22 changes: 22 additions & 0 deletions homeassistant/automation.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# ===================================
# Matrix Auto-Update Time on Boot
# ===================================
# This is available on matrix releases 0.53 and later
# It will auto-set the clock with the Home Assistant server time
# upon booting of the matrix
- alias: Matrix Auto Update Time
trigger:
platform: mqtt
topic: "stat/matrix/clock/requesttime"
payload: "1"
action:
- service: mqtt.publish
data:
topic: 'cmnd/matrix/clock/settime'
payload_template: "{{ as_timestamp(now()) | timestamp_custom('%b %d %Y;%H:%M:%S') }}"
# Reset request topic
- service: mqtt.publish
data:
topic: "stat/matrix/clock/requesttime"
payload: "0"

# ====================================
# Brighness and Color Slider Processes
# ...Set: publishes value when slider changes
Expand Down
8 changes: 8 additions & 0 deletions homeassistant/script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ matrix_upload_time:
topic: 'cmnd/matrix/clock/settime'
payload_template: "{{ states('input_text.matrix_time_load') }}"

# Immediately sync time from local system - can be called from automaion, button, etc.
matrix_sync_time:
alias: 'Matrix Sync Time'
sequence:
- service: mqtt.publish
data:
topic: 'cmnd/matrix/clock/settime'
payload_template: "{{ as_timestamp(now()) | timestamp_custom('%b %d %Y;%H:%M:%S') }}"
# ------------------------
# Countdown
# ------------------------
Expand Down

0 comments on commit d1c7a66

Please sign in to comment.