MQTT script send today calendar events - nodinosaur/ha_tv_dashboard_wiki GitHub Wiki

Select Home Assistant Instance

alias: Send Today Calendar Events by MQTT to TV
sequence:
  - service: mqtt.publish
    data:
      qos: 0
      retain: false
      topic: tv/dashboard/command
      payload_template: |-
        calendar:
          message: {{ state_attr("calendar.local", "message") }}
          description: {{ state_attr("calendar.local", "description") }}
          start_time: {{ state_attr("calendar.local", "start_time") }}
mode: single
icon: hass:calendar-arrow-right

Additional info:

  • Call the script from a button as shown here

  • Add voice functionality as shown here