Hourly Chime using Alexa tts Before and after

Hi All, First time posting, first time user of HA OS on a Rasp Pi 4.

  1. Requesting a script for an hourly chime through alexa tts, and mayby play media file every hour on the hour between two times. Has t his been done before? I am sorry if this has been requested before.

  2. Secondly is there a way to increase a light to a certain level not just to 100? I see the increase brightness but not to stop at a certain level

Thanks again all!

You could try the following automation:


alias: hourly chime
mode: single
trigger:
  - platform: time_pattern
    hours: '1'
condition: []
action:
  - service: media_player.play_media
    target:
      entity_id: media_player.echo_show
    data:
      media_content_id: amzn_sfx_doorbell_chime_01
      media_content_type: sound

or:


- service: notify.alexa_media_echo_show
  data:
    message: |
      <audio src="soundbank://soundlibrary/home/amzn_sfx_doorbell_chime_01"/>
    data:
      type: tts

(sounds see https://developer.amazon.com/en-US/docs/alexa/custom-skills/ask-soundlibrary.html

Regarding to your second question: Do you mean this?


service: light.turn_on
data:
  brightness_pct: 80
target:
  entity_id: light.yourlight

or


service: light.turn_on
data:
  brightness: 128
target:
  entity_id: light.yourlight

That works very well will try them in automationsfor light and in my config for the hourly chime.

Thank you again!

(For the hourly chime)
Iā€™m a little late to this ballgame, but, here is what I put together and it works beautifully. I have it set to output via Alexa, during certain hours, and repeats the single sound based on the 12 hour time hour (IE 4pm = 4 sound plays).

alias: 9-Hourly Chime
description: ''
trigger:
  - platform: time_pattern
    minutes: '0'
    seconds: '0'
condition:
  - condition: time
    after: '08:00'
    before: '00:00'
action:
  - repeat:
      count: '{{ now().strftime(''%I'') }}'
      sequence:
        - service: notify.alexa_media
          data:
            message: >-
              <audio
              src="soundbank://soundlibrary/bell/church/church_bells_04"/>
            target: media_player.security
            data:
              type: tts
mode: single
1 Like

I use a cuckoo clock automation that I modified for Alexa from an existing project by @CCOSTAN

1 Like