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


janton

Member
  • Posts

    67
  • Joined

  • Last visited

About janton

Profile information

  • Gender
    Male
  • Country
    Finland
  • Gateway/s
    Home Center 2
    Home Center Lite
    Other / Inne
    None / Brak
  • Interests

Contact

  • Website URL
    www.cleverhome.fi

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

janton's Achievements

Learner

Learner (2/8)

2

Reputation

  1. Hi, thank you very much @Brors94 @tinman solution works great. Should or need I change the variables to my own ones? It seems to work with pre-setted variables also (check connect). The QA replies that the internet connection is "True" with pre-setted variables also. All I need just to check if the internet connection is OK. No HC3 boot needed or other stuff. I made two block scenes that first one press the "check connect"button and if variable is "True" nothing happens and should not happen. Second block scene checks every certain timeperiod that if the variable is "False" then the scene will turn the wall plug power Off and On again. I use DHCP network type in HC3 and my IP address is different then the pre-setted in the QA (below are pre-setted variable values). Also of course my hc3user and hc3pwd are different then the pre-setted values. Are those IP-address and hc3user / hc3pwd only needed if using the QA to other buttons then "check connect" ? I mean these: VARIABLE TYPE VALUE hc3ip String variable 192.168.199.77 hc3user String variable admin hc3pwd String variable admin
  2. Hi, I managed to do this with HC2 (https://smarterhome.sk/en/blog/fibaro-hc2-monitoring-the-internet-connection-availability_104.html) and added a block scene which turns OFF Fibaro wall plug and turns it again ON. I have connected Fibaro wall plug to internet modem which sometimes gets faulty etc. So when Home Center realises that it has lost internet connection the modem gets re-booted. Of course there has to be for example 10 minutes waiting for modem to reboot and be up and running again before HC3 making again the internet checking test. How to do this same with Home Center 3 ? There is no more Virtual Devices... Any help is really appreciated
  3. Hi, I have Fibaro Wall Plug at my summer cottage and I am using it with water pump. Wall plug is normally always switched ON and water pump starts automatically when faucet is manually turned open and shuts down when faucet is closed. Water pump consumes about 1400W when it is running. Sometimes hoses gets a leake and the water pump starts and of course keep pumping and not be turned off until leake is fixed. Now I wonder if I can automatically send push message or email if water pump is at ON status more than for example 20 minutes. I can not find a solution if I can make a scene with HCL to check if the Wall plug has consumed more than 1400W more than 20 minutes. Does anybody know if this scene can be done with HCL ?
  4. I managed Now it is working. Thank you !
  5. Hi, can someone help me how to create LUA-code ? My aim is to make a LUA-code for polling certain device in my local network. I have BLASTBOT which I have managed to get working with my every IR-devices . There is also internal temperature sensor at BLASTBOT and I would like to get temperature info through Virtual device button. So I need to get LUA-code for following IP-address polling. When I put below IP-address to chrome I get the correct temperature. So what should I write to LUA-code of virtual device ? http://192.168.100.55/temp => answer: 25.00
  6. Have you woken the motion sensor after parameter change ?
  7. Same thing happened to me with one Fibaro motion sensor. Also HC2 with 4.510 firmware. No warnings about low battery. Overnight drained.
  8. Hi, thank you very very much ! I am really appreciated for your help. Now the code works perfectly
  9. Hi, thanks ! Now the code works almost great. The problem is now that the light will lit exactly 5min. and pauses exactly for 5 minutes. Is there still something wrong with the random timings ?
  10. Thanks 10der @ , Can you please tell how long the light will be lit per time or is there random time in the code ? Because I can not "read" the LUA-code ... can you explain how the code works I could not get it working... the wall plug (local powerId) do not start at all between local rules times. Can I just copy the code or is there anything to add or change except following parts: local powerId = 777; local luxId = 888; local minLux = 50; I tried this morning (09:22-10:00) below code and wall plug did not turn ON ? Did I miss something ? --[[ %% properties 449 value %% globals --]] function between(timestr) local dayMap = {["1"] = 1, ["2"] = 2, ["3"] = 3, ["4"] = 4, ["5"] = 5, ["6"] = 6, ["7"] = 7} local smap = { ["Sunset"] = "sunsetHour", ["Sunrise"] = "sunriseHour", ["Evening"] = "sunsetHour", ["Morning"] = "sunriseHour" } local function trim(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end local function offset(s, o, p) if (not (o and p)) or o == "" then return s end local h, m = s:match("(%d+):(%d+)") local t = 60 * h + m + (o == "+" and p or -tonumber(p)) return string.format("%02d:%02d", math.floor(t / 60), t % 60) end local function sec2hmStr(hms) local h, m, s = math.floor(hms / 3600), math.floor((hms % 3600) / 60), hms % 60 return string.format("%02d:%02d", h, m) end local function betw(interv) local dt, start, stop = os.date("*t"), interv:match("^([%S%a0-9%.%:]+) ?(.*)") stop = stop == "" and start or stop local d1, h1, m1 = start:match("^([%S%a%.]-)%.?(%d+):(%d+)$") local d2, h2, m2 = stop:match("^([%S%a]-)%.?(%d+):(%d+)$") d1 = d1 == "" and (dt.wday == 1 and 7 or dt.wday - 1) or dayMap[d1] d2 = d2 == "" and d1 or dayMap[d2] local d = dt.wday == 1 and 7 or dt.wday - 1 if not (d >= d1 and d <= d2) then return false end m1, m2, t = h1 * 60 + m1, h2 * 60 + m2, dt.hour * 60 + dt.min 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 timestr = timestr:gsub( "$(%w+)([%+%-]?)(%d*)", function(s, o, p) return offset(smap and fibaro:getValue(1, smap) or fibaro:getGlobal(s), o, p) end ) for _, interv in ipairs(split(timestr, ",")) do if betw(trim(string.gsub(interv, "%.%.", " "))) then return true end end return false end local powerId = 729; local luxId = 449; local minLux = 50; -- rules sample -- Mo - Fr = 09:22..10:00 and 20:45..21:00 -- Weeakend (Sa, Su) = 19:30-22:00 -- also you may use mnemonics -- $Sunset..22:00 -- $Sunset+15:00..22:00 local rules = "1.09:22..5.10:00,1.20:45..5.21:00,6.19:30..7.22:00"; while true do local status = fibaro:getValue(powerId, "value"); local lux = fibaro:getValue(luxId, "value"); if between(rules) then if lux < minLux then if tonumber(status) == 0 then fibaro:call(powerId, "turnOn"); end end else if tonumber(status) > 0 then fibaro:call(powerId, "turnOff"); end end fibaro:sleep(1000 * 10); end error code is: [DEBUG] 09:22:19: [1;31m2018-08-30 09:22:19.547975 [ fatal] Unknown exception: /opt/fibaro/scenes/601.lua:88: attempt to compare string with number
  11. Hello, My customer wants to create following scene. Unfortunately I do not handle LUA-coding so any help is really appreciated ! Customer has following devices: Home Center 2, a lux sensor and wall plug. Goal is: Creating a Scene that checks if lux is below value 50 and when lux is below that value then put light ON between 19:30 - 23:30 randomly. So in another way to put it... if lux is below value 50 then put light ON if time is between 19:30 - 23:30 randomly everyday for 15-45 minutes which is random. Example: Monday: Time is 19:30 and lux value is <50. Put light on behind wall plug for 45 minutes. Then shut down the light (time 20:15). Put light again 20:45 and shut down it 21:00. Again ON at time 21:20 and so on until 23:30 put the light off completely for that day. If lux is belov value <50 for example 19:45 then put light ON (Wall plug) like mentioned above (randomly and for random time). Tuesday and rest of the week same thing...
  12. Hi, I had same kind of trouble. I was trying to set manual and holiday mode´s for heating zones through iPhone Fibaro app but could not get it working. I got every time error message. Then I tried to log in to iPhone app with admin account and heating temperature started to work -> I could set manual and holiday temperatures through iPhone app. In my opinion there is not point if you have to log with admin user account. My wife has own user account as also my sons. How they can set temperature with their normal user accounts ... not possible. So every member of the family should use admin account on their iPhone. Not ideal ???!!!!
  13. Same thing in Finland too. Time is set to 2.1.1970 randomly. Timesetting works for some time (1-3 months) and then it changes to 2.1.1970.
  14. Yes! Batteries are faulty. Mine also died in a week. I got email from the supplier, they will provide new batteries to distributors / resellers. ————— Dear Danalock-User, the manufacturer Poly-Control has informed us, that he delivered defective batteries. Unfortunately the batteries in your Danalock are affected. Since these batteries discharge very quickly, we would like to send you spare batteries. There is a minimum risk of overheating due to the present batteries and therefore we would like to ask you to remove the batteries from your Danalock. You can use the Danalock again after replacing the batteries.
×
×
  • Create New...