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


New to Fibaro HC3


Recommended Posts

Hi All

 

Have jumped head first into the Fibaro and wired up the whole house with Fibaro devices and HC3. (circa 50 devices)

 

Looking for some guidance and hopefully some recommendations of fellow users that I can hire to help me with coding. I have the ideas, just no idea how to code them and it looks like there is some limitations with the scene creator.

 

Looking forward to the journey and advice.

 

Cheers

Link to comment

Hi @AshleyJoseph

I would recommend you to download and install the QA (Quick App) EventRunner 4 which has many posts here on the forum.
Then you only need to write fairly simple rules for how your home automation should work. EventRunner 4 handles most of the things you want to do with your home automation.

Please login or register to see this link.

 

-- BEDROOM LIGHT #######################################

  rule("@06:46 & sunrise > 06:46 => bedroom.lamp:on")  -- Turn on the light, but not if the sun has already risen
  rule("@sunrise => bedroom.lamp:off")          -- Turn off the light when the sun rises
  rule("@sunset => bedroom.lamp:on")    -- Turn on the light when the sun goes down
  rule("@22:30 => bedroom.lamp:off")    -- Turn off the light in the evening every day of the week

 

or turn off the light at different times of the week

 

  rule("@22:00 & wday('mon-fri') => bedroom.lamp:off")   -- Turn off the light 22:00 Mon - Fri.
  rule("@23:30 & wday('sat-sun' )=> bedroom.lamp:off")   -- Turn off the light 23:30 Sat - Sun.
 

Edited by RH_Dreambox
Link to comment

Brief explanation...

Download QA EventRunner4
Open Settings 5. Add Devices and choose Other
Upload File (EventRunner4.fqa)
Open QA EventRunner4 / Edit & preview / Edit

 

Then open "main" in the list to the left on screen
Main is the only file you need to edit, the other files are the very heart of EventRunner.

In HT (HomeTable) declare your devices, see my HT below (some swedish words)

 --------------------------------------
 HT = { 
      bedroom = {lamp = 46, dim_lampa = 156},
      arbetsrum = {rh_jul = 75, rh_dim = 135, yh_lampa = 85},
      hall = {lampa = 181},
      v_rum = {lampa_east = 11, lampa_south = 13, TV_lampa = 23, laslampa = 25, banklampa = 87, barlampa = 7},
      kitchen = {lamp = 15},
      bodega = {lamp = 231},
      tvattstugan = {tvattmaskin = 66, torktumlare = 68, golvvarme = 58},
      hobby = {MK3 = 83},
      garaget = {takbelysning = 206, vagg_ute = 202, jul_gavel = 64, elstangsel = 144, brytare_uterum = 27},
      storgaraget = {lampa = 9},
      greenroom = {led_slinga = 121},
      sensor = {katt_pir = 212, garage_pir = 110, garage_dor = 210, garage_temp = 111, garage_lux = 112, garage_fukt = 113},
      minimote = {sov = 19, vard = 21},
      phones = {rh = 49, yh = 151, paddan_app = 140, rh_app = 145},
      scen = {vakna = 4, godnatt = 7, auto_light = 14, TTS = 9},
    }
----------------------------------------

Then create your rules.

----------------------------------------
-- BEDROOM LIGHT #######################################

  rule("@06:46 & sunrise > 06:46 => bedroom.lamp:on")  -- Turn on the light, but not if the sun has already risen
  rule("@sunrise => bedroom.lamp:off")          -- Turn off the light when the sun rises
  rule("@sunset => bedroom.lamp:on")    -- Turn on the light when the sun goes down
  rule("@22:30 => bedroom.lamp:off")    -- Turn off the light in the evening every day of the week

-- KITCHEN LIGHT #######################################
  rule("@sunset => kitchen.lamp:on")
  rule("@22:30 => kitchen.lamp:off")

----------------------------------------

And do not forget to read the thread about EventRunner 3 and 4. ER3 is intended for HC2, but the rules should work in both ER3 and ER4.

Please login or register to see this link.

  • Like 1
Link to comment
16 minutes ago, RH_Dreambox said:

Brief explanation...

Download QA EventRunner4
Open Settings 5. Add Devices and choose Other
Upload File (EventRunner4.fqa)
Open QA EventRunner4 / Edit & preview / Edit

 

Then open "main" in the list to the left on screen
Main is the only file you need to edit, the other files are the very heart of EventRunner.

In HT (HomeTable) declare your devices, see my HT below (some swedish words)

 --------------------------------------
 HT = { 
      bedroom = {lamp = 46, dim_lampa = 156},
      arbetsrum = {rh_jul = 75, rh_dim = 135, yh_lampa = 85},
      hall = {lampa = 181},
      v_rum = {lampa_east = 11, lampa_south = 13, TV_lampa = 23, laslampa = 25, banklampa = 87, barlampa = 7},
      kitchen = {lamp = 15},
      bodega = {lamp = 231},
      tvattstugan = {tvattmaskin = 66, torktumlare = 68, golvvarme = 58},
      hobby = {MK3 = 83},
      garaget = {takbelysning = 206, vagg_ute = 202, jul_gavel = 64, elstangsel = 144, brytare_uterum = 27},
      storgaraget = {lampa = 9},
      greenroom = {led_slinga = 121},
      sensor = {katt_pir = 212, garage_pir = 110, garage_dor = 210, garage_temp = 111, garage_lux = 112, garage_fukt = 113},
      minimote = {sov = 19, vard = 21},
      phones = {rh = 49, yh = 151, paddan_app = 140, rh_app = 145},
      scen = {vakna = 4, godnatt = 7, auto_light = 14, TTS = 9},
    }
----------------------------------------

Then create your rules.

----------------------------------------
-- BEDROOM LIGHT #######################################

  rule("@06:46 & sunrise > 06:46 => bedroom.lamp:on")  -- Turn on the light, but not if the sun has already risen
  rule("@sunrise => bedroom.lamp:off")          -- Turn off the light when the sun rises
  rule("@sunset => bedroom.lamp:on")    -- Turn on the light when the sun goes down
  rule("@22:30 => bedroom.lamp:off")    -- Turn off the light in the evening every day of the week

-- KITCHEN LIGHT #######################################
  rule("@sunset => kitchen.lamp:on")
  rule("@22:30 => kitchen.lamp:off")

----------------------------------------

And do not forget to read the thread about EventRunner 3 and 4. ER3 is intended for HC2, but the rules should work in both ER3 and ER4.

Please login or register to see this link.

 

Just uploaded a new version v0.5fix8

Link to comment

Join the conversation

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

Guest
Reply to this topic...

×   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...