various tidyups

This commit is contained in:
zorruno
2026-08-15 14:58:19 +12:00
parent c85ab28c10
commit dbb0a6a89c
30 changed files with 2977 additions and 684 deletions
+8 -5
View File
@@ -1,6 +1,10 @@
################################################################################
# PACKAGE: View Road Announcement Router
################################################################################
# 1.11: Date: 2026-08-12
# - Publish ISO 8601 timestamps to the MQTT activity feed so timestamp
# sensors can consume the payload.
#
# 1.10: Date: 2026-07-24
# - Added 2s delay before TTS speak to separate the cast chime from
# the voice announcement.
@@ -83,7 +87,7 @@
# Topic format:
# viewroad-status/activityfeed/<mqtt_feed>
# Payload format:
# YYYY-MM-DD HH:MM:SS
# ISO 8601 local timestamp
#
# led_matrix_1:
# Uses:
@@ -655,7 +659,7 @@ script:
# Uses:
# mqtt_feed
#
# Publishes the current Home Assistant local time in AM/PM format.
# Publishes the current Home Assistant local time as an ISO 8601 timestamp.
#
# Topic format:
# viewroad-status/activityfeed/<mqtt_feed>
@@ -665,7 +669,7 @@ script:
#
# Publishes:
# Topic: viewroad-status/activityfeed/dogfed
# Payload: 12:32 PM
# Payload: 2026-08-12T21:12:00+12:00
#
##########################################################################
@@ -682,8 +686,7 @@ script:
- action: mqtt.publish
data:
topic: "{{ ann_mqtt_feed_topic }}"
#payload: "{{ now().strftime('%I:%M %p') | regex_replace('^0', '') }}"
payload: "{{ now().strftime('%H:%M') }}"
payload: "{{ now().isoformat() }}"
qos: "{{ mqtt_view_rd_feed_mqtt_qos | int(0) }}"
retain: "{{ mqtt_view_rd_feed_mqtt_retain | bool(true) }}"