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


pettzon

Member
  • Posts

    20
  • Joined

  • Last visited

About pettzon

Profile information

  • Country
    Sweden
  • Gateway/s
    Home Center 2
    Home Center Lite
    Other / Inne
    None / Brak

Recent Profile Visitors

130 profile views

pettzon's Achievements

Newbie

Newbie (1/8)

0

Reputation

  1. Ah! Bad news then.... But I know that ure watching it.... Thanks!
  2. @SankotronicMy question is if u could release a "stand alone" solution for netatmo welcome? I've a solution today but the code hangs up after a few hours so I'm really interested in a working setup.... Best regards
  3. Yes! I use my HC2 with both Alexa and Google and have many scenes based on voice....
  4. Cag014@ Ah! It seems to work but ive two questions... I only want this scene to work once and reset and start over everytime the power on ID94 goes to "0" (Im leaving house). and the other question is how i implement "setSlider" in all-of-one scene? Thanks for a great scene and your help.
  5. Thanks.... I will try it when im home from work but it seems that i run into some trouble... It seems like the scene doesnt like "Pettzon_status" It seems that it cant find the global... It only askes for "Pettzon"... Its the underscore that gives hell right?
  6. Cag014@ I just have to say that im beginning to understand that this scene is really really sharp...
  7. Sorry cag014@... Yes! I meant that the power of ID94 is 0 watt and >1 watt
  8. cag014@ Almost.... ID94 has to be "0" before it goes to ">1"... Its "0" when the alarm is on and the house its empty... This is to sequre that Pettzon comes home to an empty house...
  9. Ok... My scenario is this... I'm going out and turn on the alarm. (The power of the fibaroplug ID94 goes down to "0") =condition 1. This is so the system knows that the house is empty. Then I come home and turn off the alarm so fibaroplug ID94 power goes up to >1watt = condition 2. The system now knows that someone's home. In the hallway the netatmo sees me and change the Pettzon_status to "1" = condition 3. What I mean is that the only thing the condition 3 should do is react from 0 to 1... My camera is already changing the variable Pettzon_status. Now the house know it's only me home. When I go out in the kitchen the motionsensor sees me "ID7" = condition 4. And finally starts for an example a scene ID47... I hope I could explain this properly and thanks for helping me...
  10. Ok... I got the All in one scene up n running.... I want this to happen... 1. IF Alarmplug (ID94) has w=0 2. AND Alarmplug THEN goes to w>1 3. AND the variable "Pettzon_Status = 1 4. AND the variable "Manuela_Status = 0 5. AND MovingSensor(ID7) is breached 6. THEN execute a scene or other choice...
  11. Ok.... i will check it out... cheers!
  12. I would like to have help with a scene folkes! My Idea is to use a Netatmo welcome to know whos home and not and start different scenes for different people... Ive a plug to my homealarm with a tv in and a fibaroplug before that so every time i turn on the alarm the system flags everyone as away... So my plan is to measure the Fibaro plug for ”0” = everyone is away.... fibaroplug goes to >1 = someone comes home... The netatmo sets a variable that a special person is home (This is already working)... person goes into the kitschen and the movingsensor picks up the person in the right rom to start up a scene or tts... ive tried this in a blockscene but its not working.... anyone with ideas for lua?
  13. Hej! Jag ville bara tala om att jag läser i stort sett allt du skriver o jag vill ge ett stort tack för att du hjälper oss andra med både bra scener, hjälp o stort engagemang... Tack!!!

     

    Med vänlig hälsning Håkan

    1. jompa68

      jompa68

      Va roligt att du tycker det Håkan, man tackar ödmjukast :-D

  14. Oh! Sloppy mistakes!!! Thanks for your great help!!!
  15. Hi all! I´ve tried to create a scene with a mp3 playing "good morning" through my sonos. I`ve borrowed part of the scen from Krikroff and his part is working perfectly.... My plan is that this scen is going to be started every morning by Sankotroniks Main scene and triggered by a motionssensor and a variable.... The scene is only suppose to play itself once in the morning and then set the variable to zero and the kill the scene itself.... But i`ve missed something... Any Ideas? Best regards Pettzon --[[ %% properties %% events %% globals GoodMorningTTS --]] fibaro:debug(" SCENE START ") if fibaro:countScenes() > 1 then fibaro:debug(" SCENE ABORT - too many instances ") fibaro:abort() end local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(87, "value")) > 0 ) ) and fibaro:debug(" ... have movements... ") ( tonumber(fibaro:getGlobalValue("GoodMorningTTS")) == tonumber("1") ) then fibaro:debug(" ...Have got the right variable... ") -- 78 is the Virtual Device ID -- 28 is the Process button ID local sid, bid = 106, 28 -- Create STREAM params object local params = { -- stream: the file / uri stream = "//Diskstation/data program/Fibaro Home Center/Mp3/Välkommen till familjen Pettersson.mp3", -- source: "local" or "http", "local" is setted by default source = "local", -- duration: play duration in seconds (option) or "auto" duration = 8, -- volume: the volume for playing the stream volume = 40 } 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) -- Ändra variabel fibaro:setGlobal("GoodMorningTTS", 0) fibaro:debug(" ...put variable to zero... ") -- Kill running scene cause it is done with appliance fibaro:abort(); fibaro:debug(" ... Scene aborted! ") end
×
×
  • Create New...