Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Search the Community

Showing results for tags 'mp3'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

Found 2 results

  1. Hello everyone, I'm new to Fibaro and I have a problem. I created the VD Sonos Romote v.1.0.1 and I want him to play an mp3 sound and stop it. I succeeded to play audio mp3 thanks to the spatpeker but I can not stop it. --PLAY --[[ %% properties %% events %% globals --]] -- 72 is the Virtual Device ID (sonos) -- 73 is the Process button ID (this vd button) local sid, bid = 72, 28 -- Create STREAM params object local params = { -- stream: the file / uri stream = "//192.168.1.5/share/IntruderAlarm.mp3", -- source: "local" or "http", "local" is setted by default source = "local", -- duration: play duration in seconds (option) or "auto" duration = "auto", -- volume: the volume for playing the stream volume = 5 } local _f = fibaro local _x ={root="x_sonos_object",load=function(b)local c=_f:getGlobalValue(b.root)if string.len(c)>0 then local d=json.decode(c)if d and type(d)=="table"then return d else _f:debug("Unable to process data, check variable")end else _f:debug("No data found!")end end,set=function(b,e,d)local f=b:load()if f[e]then for g,h in pairs(d)do f[e][g]=h end else f[e]=d end;_f:setGlobal(b.root,json.encode(f))end,get=function(b,e)local f=b:load()if f and type(f)=="table"then for g,h in pairs(f)do if tostring(g)==tostring(e or"")then return h end end end;return nil end} -- Make a request to the remote to process params object instantly _x:set(tostring(sid), { stream = params }) _f:call(sid, "pressButton", bid) -- STOP DON'T WORK --[[ %% properties %% events %% globals --]] -- 72 is the Virtual Device ID (sonos) -- 73 is the Process button ID (this vd button) local sid, bid = 72, 28 local cmd, log = "PAUSE", "Stop command was sent" local _f = fibaro local _x ={root="x_sonos_object",load=function(b)local c=_f:getGlobalValue(b.root)if string.len(c)>0 then local d=json.decode(c)if d and type(d)=="table"then return d else _f:debug("Unable to process data, check variable")end else _f:debug("No data found!")end end,set=function(b,e,d)local f=b:load()if f[e]then for g,h in pairs(d)do f[e][g]=h end else f[e]=d end;_f:setGlobal(b.root,json.encode(f))end,get=function(b,e)local f=b:load()if f and type(f)=="table"then for g,h in pairs(f)do if tostring(g)==tostring(e or"")then return h end end end;return nil end} -- Make a request to the remote to process params object instantly _x:set(tostring(sid), { action = tostring(cmd .." ")}) _f:log(log); _f:call(sid, "setProperty", "ui.lblDebug.value", log); _f:call(sid, "pressButton", bid)
  2. Is there a way to use MP3 files in scenes as voice confirmation instead of TTS? Now i use Sonos TTS from kirkof virtual device for voice confirmations / alarms / clock etc. from HC2, but i dont know why, sometimes it does not work. When it does work, there is long delay (around 30-60sec). Probably it's because of internet connection lag. So i made mp3 files with voice confirmations and i've put them on usb pendrive in router within shared folder. I can call them from any web browser so they can be used from home ethernet as well as over internet. I can call it even from fibaro sonos plugin, but you canot use fibaro sonos plugin in block scenes. Anybody has any ideas how to make LUA scene which can play mp3 files from ethernet on fibaro sonos plugin?
×
×
  • Create New...