OpenHab to play custom mp3 (local / Dropbox / google drive / direct links)

  • Platform information:

    • Hardware: CPUArchitecture/RAM/storage - RasberryPi3B
    • OS: what OS is used and which version openHAB 4.2.3
    • Java Runtime Environment: _which java platform is used and what version_openjdk version “17.0.13” 2024-10-15
    • openHAB version: openHAB 4.2.3
  • Issue of the topic: please be detailed explaining your issue
    First, thanks in advance for the support. As you guess I am new to OpenHab.
    I am trying to configure openhab to play custom MP3 over Alexa.
    I have tried to do from Dropbox, google drive, Direct weblink and even from openhab webserver itself.
    But none worked.

Below are my rules code.

  • Rules code related to the issue
    configuration: {}
    triggers:
  • id: “1”
    configuration:
    time: 06:01
    type: timer.TimeOfDayTrigger
    conditions:
    actions:
  • inputs: {}
    id: “2”
    configuration:
    itemName: Alexa_Volume
    command: “40”
    type: core.ItemCommandAction
  • inputs: {}
    id: “3”
    configuration:
    itemName: Alexa_Music_Voice_Command
    command: textCommand
    https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3
    type: core.ItemCommandAction

thanks in advance

hello All,

just to add, i am able to send announcements / play music via openhab.

below are the working rules

==============
configuration: {}
triggers:

  • id: “1”
    configuration:
    time: 19:15
    type: timer.TimeOfDayTrigger
    conditions:
  • inputs: {}
    id: “3”
    configuration:
    days:
    - WED
    type: timer.DayOfWeekCondition
    actions:
  • inputs: {}
    id: “2”
    configuration:
    command: “Reminder: Online Class at 7.30PM.”
    itemName: Alexa_textToSpeech
    type: core.ItemCommandAction

==============
configuration: {}
triggers:

  • id: “1”
    configuration:
    time: 06:01
    type: timer.TimeOfDayTrigger
    conditions:
    actions:
  • inputs: {}
    id: “2”
    configuration:
    command: “40”
    itemName: Alexa_Volume
    type: core.ItemCommandAction
  • inputs: {}
    id: “3”
    configuration:
    command: play “Daily blessings”
    itemName: Alexa_Music_Voice_Command
    type: core.ItemCommandAction

==============