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


  • 1

text to speach via Alexa


Markoe

Question

Hi, can an amazon alexa (echo) speaker make an announcement when a door sensor opened etc?

It would be handy to have and fuction like  say (message,volume,lanquage,echodevice)

 

Link to comment
Share on other sites

Recommended Posts

  • 0

Hello Markoe,

No.. Not by her self.:luv:

The only posibility is to create a scene where you send a command to your sonos speaker to plays a audio file that you have saved.

look for Sonos on this forum

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Ok thanks . I think that message option shoud be nice new feature to bouth alexa and sonos plugin. 

    Link to comment
    Share on other sites

    • 0

    @Markoe, well actually yes you can. Or at least almost.
    With Amazon compatible contact and motion sensors, you can.
    Check below announcement.

    Please login or register to see this link.

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 14 minutes ago, wpeeters said:

     

    Please login or register to see this link.

     

    Thanks for the reply ... yes that is close , but there everything start from me asking alexa check something .  What I am after is announcements like "landry is ready", "it started to rain" , "sauna is ready ", "CO2 level is high please open window" etc 

    Link to comment
    Share on other sites

    • 0

    no, you don't need to ask. If the sensor is breached, it will trigger Alexa to say something.
    Amazon opened the api for developers in order to do 'announcements'. I think accuweather.com, as a pilot, already has a weather announcement.
    As far as I understand, if you have a compatible amazon bridge, it can also replace the compatible sensors.

    Link to comment
    Share on other sites

    • 0

    You Can Do It via Smartthings sensors. Fibaro not intereested make this i think

    Check This link but only Polish lang -

    Please login or register to see this link.

     

    Edited by fingusio
    Link to comment
    Share on other sites

    • 0

    Hi
    I use 2 scenes (they are not mine only ...)
    The first is

     

    @Krikroff

     

    --[[
    %% autostart
    %% properties
    17 value
    %% weather
    %% events
    %% globals
    --]]

    local sid, bid = 391, 28
     
    local cond = fibaro:getValue(323, "WeatherConditionConverted");
    local tempext = fibaro:getValue(323, "ui.lblTemperature.value"); -- température extérieure
    fibaro:debug ("Temperatura na zewnatrz: "..tempext)
    local degre = string.gsub(tempext, '[,]' , ' degré ')
    local degre = string.gsub(degre, '[.]' , ' degré ')
    local degre = string.gsub(degre, '[-]' , ' moins ')
     
    local currentDate = os.date("*t")
    local jourL = {"Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"}
    local jour = jourL[currentDate.wday]
    fibaro:debug ("Dzień : "..jour)
     
    local moisL = {"styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec",
                   "lipiec", "sierpień", "wrzesień", "pażdziernik", "listopad", "grudzień"}
    local mois = moisL[currentDate.month]
    fibaro:debug ("Miesiąc : "..mois)
     
    local condfr = fibaro:getValue(323, "ui.lblForecast.value");
    if( cond == "clear" ) then condfr = "czyste niebo"; end
    if( cond == "cloudy" ) then condfr = "pochmurnie"; end
    if( cond == "rain" ) then condfr = "deszcz"; end
    if( cond == "snow" ) then condfr = "śnieg"; end
    if( cond == "storm" ) then condfr = "burza"; end
    if( cond == "fog" ) then condfr = "mgła"; end
    fibaro:debug ("Conditions météorologiques : "..condfr)
     
    fibaro:debug ("co mówi TTS ")
    -- Create TTS params object
    local params = {
      -- TTS Message
      message = "Dzień Dobry .............."..jour .." "..currentDate.day .." "..mois ..
                ". Teraz jest ".. currentDate.hour .." godzina i  ".. currentDate.min .." minuta. "..
                "Na zewnątrz termometr ma "..degre ..
                ", a za oknem przewidywana jest  "..condfr ..". ",  
      duration = 'auto',    -- Duration: "auto", xx seconds
      language = "pl-PL",    -- Language: fr-FR
      volume = 30            -- Volume
    }
    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), { tts = params })
    _f:call(sid, "pressButton", bid)
     
    setTimeout(function()
    fibaro:call(391, "setSlider", "15", "10");
        end, 32000)
    setTimeout(function()
            fibaro:call(391, "pressButton", "23");
        end, 30000)
        setTimeout(function()
            fibaro:call(391, "pressButton", "7");
        end, 35000)

     

     

    and 2 (autor @10der ) 

     

    Here the scene is responsible for calling the scene once a day - but you do not have to use it

     

    --[[
    %% properties
    17 value
    %% weather
    %% events
    %% globals
    --]]

    -- Only allow one instance of the current scene to run at a time
    if (fibaro:countScenes() > 1) then
        fibaro:abort()
    end

    local motionId = 17;
    local morningTime = "07:00-09:00";
    local startSource = fibaro:getSourceTrigger();

    local function log(str) 
        fibaro:debug(os.date("%A, %d %B %Y %H:%M:%S") .. ": " .. str); 
    end

    function between(str)
          -- get current time
        local t = os.date("*t", os.time())
          -- grep input params and separate on hh mm start and hh mm end
        local h1,m1,h2,m2 = str:match("(%d+):(%d+)-(%d+):(%d+)")
          -- some magic - pure mathematics.
        m1, m2, t = h1*60+m1, h2*60+m2, t.hour*60+t.min
          -- check possible variants
        if (m1 <= m2) then
          return m1 <= t and t <= m2 -- 01:00-02:00
        else
          return m1 <= t or t <= m2 -- 23:00-21:00
        end
    end

    if ( ( tonumber(fibaro:getValue(motionId, "value")) > 0 ) or
         ( startSource["type"] == "other" ) ) then
      
        if between(morningTime) then
            local isDone = tonumber(fibaro:getGlobalValue('I_got_up'));
            if isDone > 0  then
                  -- nothing todo
                  -- log("See you tomorrow...");
            else
                  fibaro:setGlobal("I_got_up", os.time())
                  -- LaMetric radion ON
                  fibaro:startScene(155);
            end
        else    
            fibaro:setGlobal("I_got_up", "0")
        end
    end

        if between(morningTime) then
            fibaro:debug("Morning hours");
            if isToday() then
                  fibaro:startScene(155);
              else
                  fibaro:debug("See you tomorrow...");
              end
        end
     

     

    and of course you need to install VD

     

    Sonos TTS Remote

     

    Everything borrowed from the French forum and most authors come from that forum

    • Like 1
    Link to comment
    Share on other sites

    • 0

    Dzien Dobry, Witam ;)

    i am not sure what 1st code for Alexa... look like it”s SonosAPI

    Link to comment
    Share on other sites

    • 0

    hi all,

    i use a skill from IJPUK solutions its described as a doorbell skill but can be used to execute routines on the alexa app. I now have announcements from doors opening. alarm arming and setting , and sensors being breached etc. I made a small modification to the LUA supplied to me from the IJPUK site and seems to work well. You will need a premium subscription from IJPUK but this is on offer at the moment. i have no connection to IJPUK so you need to contact them at www.IJPUK.com i can supply the lua i use if anyone interested?

     

    Link to comment
    Share on other sites

    • 0

    hi @magicman, very interesting, thank you for the info! If you can share your lua script it will be great, i'm looking for something less expensive then my sonos and looking around for alexia/Ghome, but i'de never reach to make it talk! thank you in advance.

    Link to comment
    Share on other sites

    • 0
    1 hour ago, Tony270570 said:

    hi @magicman, very interesting, thank you for the info! If you can share your lua script it will be great, i'm looking for something less expensive then my sonos and looking around for alexia/Ghome, but i'de never reach to make it talk! thank you in advance.

    hi Tony,

    Its not just the lua script you need you must also have the doorbell skill from IJPUK then the lua script would work.

    hope that helps.

    P.S. the Lua script is on there download page. I just added a global variable to use when using the relevant token. Read there readme and you will soon have it working. If you still need help let me know. As i said you need there premium yearly subscription which is  £20 at the moment.

     

    Link to comment
    Share on other sites

    • 0

    Hi @magicman, Thank you for your feedback, It's clear for me that the script is not enought and the doorbell skill is necessary. I had a closer look, unfortunatly the skill is not available in France, I know that I can workaround and install it, but by the end only English TTS will be available, it's fine but i'm looking a french tts :) 

    Anyway thank you very much again for your answer and help !

    Link to comment
    Share on other sites

    • 0
    6 minutes ago, Tony270570 said:

    Hi @magicman, Thank you for your feedback, It's clear for me that the script is not enought and the doorbell skill is necessary. I had a closer look, unfortunatly the skill is not available in France, I know that I can workaround and install it, but by the end only English TTS will be available, it's fine but i'm looking a french tts :) 

    Anyway thank you very much again for your answer and help !

    sorry Tony did not see it was English only. hope you find something soon

     

    • Thanks 1
    Link to comment
    Share on other sites

    • 0
    On 10/17/2019 at 11:57 AM, Tony270570 said:

    Hi @magicman, Thank you for your feedback, It's clear for me that the script is not enought and the doorbell skill is necessary. I had a closer look, unfortunatly the skill is not available in France, I know that I can workaround and install it, but by the end only English TTS will be available, it's fine but i'm looking a french tts :) 

    Anyway thank you very much again for your answer and help !


    Hello

    I just wanted to let you know it’s now in the Amazon France store

    Link to comment
    Share on other sites

    • 0

    Hi all, @ianakapilotlight your Alexa skill is fantastic !! it works great, really reactive with no lantency, great job, I'll wll talk about it in the french forum as it's a very good tts solution !

    If i've only a remark about the volume handling, I didn't add a look into the alexa api yet, so don't know if it's fesable, but having the volume in parameter would be amazing, to have differents volume sets depending on the day period.

    Thank you for your great job !

     

    Edit: ok it could be done in the alexa app creating a new message with a different volume, so no remark at all :) 

    Edited by Tony270570
    Link to comment
    Share on other sites

    • 0

    Dont understand...

     

    How to do, example if i buy Premium :

     

    When Motion Sensor (from Fibaro) detects motion then Alexa say "Hello"

     

    ?

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...