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


Recommended Posts

Posted

what do you call emulator scene?

I am following your video

zero brane is open

next step open

[32mMon/Apr/29,09:47:00:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main

 

it pops up

Please login or register to see this image.

/monthly_2019_04/image.png.2c80ed3a15ba3f340b6a1b9d7d3775b6.png" alt="image.png.2c80ed3a15ba3f340b6a1b9d7d3775b6.png" />

but when I click copy set up from hc2 its losing connection

 

Mon/Apr/29,09:47:00:[HC2 ] HC2 SceneRunner v0.8 fix12[0m
[33mMon/Apr/29,09:47:00:[HC2 ] Local mode, will not access resources on HC2[0m
[32mMon/Apr/29,09:47:00:[HC2 ] Created Event server at 192.168.1.184:6872[0m
[32mMon/Apr/29,09:47:00:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main[0m
[35mMon/Apr/29,09:47:00:[HC2 ] No HC2 data file found (HC2.data)[0m
[35mMon/Apr/29,09:47:00:[HC2 ] Configuration from file, Globals:0, Scenes:0, Device:0, Rooms:0[0m
[35mMon/Apr/29,09:47:00:[HC2 ] Loaded scene:Test, id:99, file:'Test.lua'[0m
[35mMon/Apr/29,09:47:00:[HC2 ] Scene:99 [ Trigger:{"type":"property","deviceID":66,"propertyName":"value"} ][0m

 

 

  • Topic Author
  • Posted (edited)
    7 minutes ago, Sjakie said:

    what do you call emulator scene?

    I am following your video

    zero brane is open

    next step open

    [32mMon/Apr/29,09:47:00:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main

     

    it pops up

    Please login or register to see this link.

    but when I click copy set up from hc2 its losing connection

     

    Mon/Apr/29,09:47:00:[HC2 ] HC2 SceneRunner v0.8 fix12[0m
    [33mMon/Apr/29,09:47:00:[HC2 ] Local mode, will not access resources on HC2[0m
    [32mMon/Apr/29,09:47:00:[HC2 ] Created Event server at 192.168.1.184:6872[0m
    [32mMon/Apr/29,09:47:00:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main[0m
    [35mMon/Apr/29,09:47:00:[HC2 ] No HC2 data file found (HC2.data)[0m
    [35mMon/Apr/29,09:47:00:[HC2 ] Configuration from file, Globals:0, Scenes:0, Device:0, Rooms:0[0m
    [35mMon/Apr/29,09:47:00:[HC2 ] Loaded scene:Test, id:99, file:'Test.lua'[0m
    [35mMon/Apr/29,09:47:00:[HC2 ] Scene:99 [ Trigger:{"type":"property","deviceID":66,"propertyName":"value"} ][0m

     

    I'm not sure what you mean by "lose connection". 

    Have you set the user name and password correctly for the HC2 in HC2.lua? (_HC2_USER and _HC2_PWD)

    Please login or register to see this code.

     

    Btw, HC2.lua is now >= fix18

    Edited by jgab
    Posted

    :_HC2_IP=_HC2_IP or "192.198.1.153"       -- HC2 IP address
    _HC2_USER=_HC2_USER or "sja"        -- HC2 user name
    _HC2_PWD=_HC2_PWD or "secret"           -- HC2 password

    data is not real!

    If I click

    http://192.168.1.184:6872/emu/main its open webgui emulator

    Please login or register to see this image.

    /monthly_2019_04/image.png.59b8dcca35e9ff64f3031b01577f7bd1.png" alt="image.png.59b8dcca35e9ff64f3031b01577f7bd1.png" />

    according video

    copy setup from HC2

    shows at the bottom now connect

    Zerobrane shows

     No HC2 data file found (HC2.data)[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from file, Globals:0, Scenes:0, Device:0, Rooms:0[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Reading configuration from H2C...[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Writing configuration data to 'HC2.data'[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from HC2, Globals:99, Scenes:148, Device:218, Rooms:27[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Reading configuration from H2C...[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Writing configuration data to 'HC2.data'[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from HC2, Globals:198, Scenes:296, Device:436, Rooms:54[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Reading configuration from H2C...[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Writing configuration data to 'HC2.data'[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from HC2, Globals:297, Scenes:444, Device:654, Rooms:81[0m

     

    Restart the webgui

    http://192.168.1.184:6872/emu/main

    no data

    image.png.b5a9a71ee2bb8266097a4af61d4ecbdf.png

     

     

  • Topic Author
  • Posted (edited)

    I pushed a new version of HC2.lua (v0.8, fix19)

    It has better support for setup/credentials configuration files.

    Every time I update HC2.lua you need to go into HC2.lua and change the HC2 IP adress, user name, and password. 

    Now instead, if you create a file "HC2credentials.lua" and put it in the same directory as HC2.lua and make the content

    Please login or register to see this code.

    It will be included and override the credentials in the HC2.lua file. This way you can just download the new HC2.lua to the directory and not needing to setup anything.

    If you are doing setups inside HC2.lua's main() function your can likewise create a setup config named "HC2setup.lua" setup commands

    Ex.

    Please login or register to see this code.

     

    6 minutes ago, Sjakie said:

    according video

    copy setup from HC2

    shows at the bottom now connect

    Zerobrane shows

     No HC2 data file found (HC2.data)[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from file, Globals:0, Scenes:0, Device:0, Rooms:0[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Reading configuration from H2C...[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Writing configuration data to 'HC2.data'[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from HC2, Globals:99, Scenes:148, Device:218, Rooms:27[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Reading configuration from H2C...[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Writing configuration data to 'HC2.data'[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from HC2, Globals:198, Scenes:296, Device:436, Rooms:54[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Reading configuration from H2C...[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Writing configuration data to 'HC2.data'[0m
    [35mMon/Apr/29,10:07:50:[HC2 ] Configuration from HC2, Globals:297, Scenes:444, Device:654, Rooms:81[0m

     

    Restart the webgui

    http://192.168.1.184:6872/emu/main

    no data

    Please login or register to see this link.

     

     

     

    Please download the latest version of HC2.lua and re-generate the HC2.data file. 

    Please login or register to see this link.

    Also follow tip in previous post to create a HC2credentials.lua file with the passwords

     

    Edited by jgab
    Posted

    Hi,

    done if I click in emulator I saw scenes and devices

    Please login or register to see this attachment.

    than it gave error to connect

     

  • Topic Author
  • Posted

    Some small "issues" with event script rules for scheduling daily rules at midnight that is good to be aware of.

    Please login or register to see this code.

    The rules above are almost the same. All daily rules ('@' rules) are scheduled at midnight. The first rule will run immediately because it's 00:00 when the rule is scheduled. The other will run the midnight, 24 hours from now. 

    This means that if we start the script in the evening. The first rule will be scheduled at the first midnight and onwards and the next rule will be scheduled to run at 24:00 and then scheduled from the next midnight and onwards.

    This makes them behave almost the same, but here is a difference.

    Assume we want to turn off a lamp at midnight on Monday. Monday we stay awake longer and want to turn off the lamp at midnight.

    Writing like below may be the first approach:

    Please login or register to see this code.

    Neither of these will work as intended. The first one will turn off the lamp at 00:00 Monday morning(!)

    The second has the same problem. At 24:00 is the same as 00:00 and it is technically already Tuesday then. So this will also turn off at 00:00 on Monday mornings.

    To write

    Please login or register to see this code.

    for a rule that concerns Mondays feel a little counterintuitive. Somehow one would like 24:00 to mean "just before it becomes the next day".

    So, I have come up with a variable, _MIDNIGHTADJUST that if set to true will check if a time is scheduled at 24:00 and adjust it to 23:59:59.

    Please login or register to see this code.

    With _MIDNIGHTADJUST=true this will run a second before midnight, when it's still Monday, and the rule will work as is mostly intended. 

    If scheduled at 00:00 the time is not adjusted and it means the beginning of the day.

    I have enabled _MIDNIGHTADJUST per default in fix34

    Does this make sense? Will it cause problems?

  • Topic Author
  • Posted
    1 minute ago, Sjakie said:

    Hi,

    done if I click in emulator I saw scenes and devices

    then gave error to connect

     

    What browser do you have? The web GUI uses iframes. I run it in Crome and on Safari.

    What log do you get in ZBS's output console?

    Posted

    I am running it in google because in chrome got error

    [35mMon/Apr/29,13:22:39:[HC2 ] Reading and decoding configuration from HC2.data[0m
    [35mMon/Apr/29,13:22:39:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m
    [35mTue/Apr/30,00:00:00:[HC2 ] Sunrise:05:24 Sunset:20:16 (local calc)[0m
    [35mWed/May/01,00:00:00:[HC2 ] Sunrise:05:22 Sunset:20:18 (local calc)[0m
    [35mThu/May/02,00:00:00:[HC2 ] Sunrise:05:20 Sunset:20:19 (local calc)[0m

     

    but unable to put trigger in WEB GUI

  • Topic Author
  • Posted (edited)
    14 minutes ago, Sjakie said:

    I am running it in google because in chrome got error

    [35mMon/Apr/29,13:22:39:[HC2 ] Reading and decoding configuration from HC2.data[0m
    [35mMon/Apr/29,13:22:39:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m
    [35mTue/Apr/30,00:00:00:[HC2 ] Sunrise:05:24 Sunset:20:16 (local calc)[0m
    [35mWed/May/01,00:00:00:[HC2 ] Sunrise:05:22 Sunset:20:18 (local calc)[0m
    [35mThu/May/02,00:00:00:[HC2 ] Sunrise:05:20 Sunset:20:19 (local calc)[0m

     

    but unable to put trigger in WEB GUI

    In Chrome it looks ok - I don't see an error. No scene is started so you only get a log every midnight that sunrise/sunset is updated.

    If you go to the Test.lua scene that was described in the video and run from that file, the log will report that it's loading Test.lua and you will see that trigger (66 value) in the web GUI.

    Edited by jgab
    Posted

    this is showing

     

    [35mMon/Apr/29,14:14:09:[HC2 ] Reading and decoding configuration from HC2.data[0m
    Execution error:
    HC2.lua:514: table index is nil
    [35mMon/Apr/29,14:14:09:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m

     

  • Topic Author
  • Posted (edited)
    16 minutes ago, Sjakie said:

    this is showing

     

    [35mMon/Apr/29,14:14:09:[HC2 ] Reading and decoding configuration from HC2.data[0m
    Execution error:
    HC2.lua:514: table index is nil
    [35mMon/Apr/29,14:14:09:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m

     

    When you send me an error, it's good if you copy the start of the log in ZBS also, so that I see what version of HC2.lua you are running. And I also get some more context. Things that are not errors are also useful information for me when I'm trying to understand what you are doing. (It seems to read in the HC2.data file with some 148 scenes and 218 devices copied from your HC2 - so we are progressing...)

    Are you running the latest version of HC2.lua (now its "0.8","fix19" -- Apr 29, 2019   )

    Edited by jgab
    Posted

    sorry,

    yes

    Program starting as '"C:\Users\sjaak\Downloads\ZeroBraneStudio\bin\lua.exe" -e "io.stdout:setvbuf('no')" "C:\Users\sjaak\AppData\Local\Temp\.A5C0.tmp"'.
    Program 'lua.exe' started in 'C:\ZeroBraneStudioEduPack\myprograms' (pid: 2592).
    Debugging session started in 'C:\ZeroBraneStudioEduPack\myprograms\'.
    Debugging session completed (traced 0 instructions).
    [33mMon/Apr/29,14:32:51:[HC2 ] HC2 SceneRunner v0.8 fix12[0m
    [33mMon/Apr/29,14:32:51:[HC2 ] Local mode, will not access resources on HC2[0m
    [32mMon/Apr/29,14:32:51:[HC2 ] Created Event server at 192.168.1.184:6872[0m
    [32mMon/Apr/29,14:32:51:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main[0m
    [35mMon/Apr/29,14:32:51:[HC2 ] Reading and decoding configuration from HC2.data[0m
    [35mMon/Apr/29,14:32:51:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m

     

    Now if I refresh WEBGUI

    it show the sreen with the message please restart afterwards

  • Topic Author
  • Posted
    11 minutes ago, Sjakie said:

    sorry,

    yes

    Program starting as '"C:\Users\sjaak\Downloads\ZeroBraneStudio\bin\lua.exe" -e "io.stdout:setvbuf('no')" "C:\Users\sjaak\AppData\Local\Temp\.A5C0.tmp"'.
    Program 'lua.exe' started in 'C:\ZeroBraneStudioEduPack\myprograms' (pid: 2592).
    Debugging session started in 'C:\ZeroBraneStudioEduPack\myprograms\'.
    Debugging session completed (traced 0 instructions).
    [33mMon/Apr/29,14:32:51:[HC2 ] HC2 SceneRunner v0.8 fix12[0m
    [33mMon/Apr/29,14:32:51:[HC2 ] Local mode, will not access resources on HC2[0m
    [32mMon/Apr/29,14:32:51:[HC2 ] Created Event server at 192.168.1.184:6872[0m
    [32mMon/Apr/29,14:32:51:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main[0m
    [35mMon/Apr/29,14:32:51:[HC2 ] Reading and decoding configuration from HC2.data[0m
    [35mMon/Apr/29,14:32:51:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m

     

    Now if I refresh WEBGUI

    it show the sreen with the message please restart afterwards

     

    Ok, I still think you should download the latest version of HC2.lua (v0.8 fix19).

    Anyway, the emulator loads your scenes and devices. 

    In the video I create a Test.lua file (in the same directory as HC2.lua) and run Test.lua in ZBS. It will load the emulator and you will see debug messages that it is loaded.

    There you will also see the trigger (value 66) that you can push to start/trigger the Test.lua scene - like I do in the video.

    You can also open up EventRunner.lua (if saved in same directory as HC2.lua) and run it in ZBS. It will also start top the emulator and you will see a message that EventRunner.lua is loaded (or what you have called the file).

     

    Posted

    [33mMon/Apr/29,15:20:04:[HC2 ] HC2 HC2 emulator v0.8 fix19[0m
    [33mMon/Apr/29,15:20:04:[HC2 ] Local mode, will not access resources on HC2[0m
    [32mMon/Apr/29,15:20:04:[HC2 ] Created Event server at 192.168.1.184:6872[0m
    [32mMon/Apr/29,15:20:04:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main[0m
    [35mMon/Apr/29,15:20:04:[HC2 ] Reading and decoding configuration from HC2.data[0m
    [35mMon/Apr/29,15:20:04:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m
    [32mMon/Apr/29,15:20:04:[HC2 ] System trigger:{"type":"autostart"} at Mon Apr 29 15:20:04[0m

     a brand new screen but I can not start scene  66with trigger

    Please login or register to see this image.

    /monthly_2019_04/image.png.e9f3f3dc240030d2fac5d6cb2b2b95ed.png" alt="image.png.e9f3f3dc240030d2fac5d6cb2b2b95ed.png" />

  • Topic Author
  • Posted
    1 minute ago, Sjakie said:

    a brand new screen but I can not start scene  66with trigger

    Please login or register to see this link.

     

    Ok progress. In the video I have opened a new editor window in ZBS with Test.lua (I have 2 editor tabs open, HC2.lua and Test. Lua). When the Test.lua editor tab is open I run Test.lua, the emulator will load Test.lua then and when you open the web GUI all of Test.lua’s triggers will be listed. If you watch the video carefully again you will see what I talk about.

    Posted

    I closed everything and started again

    Zerobrane two tabs HC2 and test

    Execution error:
    C:\ZeroBraneStudioEduPack\myprograms\Test.lua:9: attempt to index global 'fibaro' (a nil value) is the line>>>>  if fibaro:countScenes() > 1 then fibaro:abort() end

     

    sorry here all the text

     

    Program starting as '"C:\Users\sjaak\Downloads\ZeroBraneStudio\bin\lua.exe" -e "io.stdout:setvbuf('no')" "C:\Users\sjaak\AppData\Local\Temp\.5F8B.tmp"'.
    Program 'lua.exe' started in 'C:\ZeroBraneStudioEduPack\myprograms' (pid: 7080).
    Debugging session started in 'C:\ZeroBraneStudioEduPack\myprograms\'.
    Program completed in 6.76 seconds (pid: 7080).
    Test.lua:9: attempt to index global 'fibaro' (a nil value)
    stack traceback:
        Test.lua: in main chunk
    Debugging session completed (traced 0 instructions).

     

  • Topic Author
  • Posted
    10 minutes ago, Sjakie said:

    I closed everything and started again

    Zerobrane two tabs HC2 and test

    Execution error:
    C:\ZeroBraneStudioEduPack\myprograms\Test.lua:9: attempt to index global 'fibaro' (a nil value) is the line>>>>  if fibaro:countScenes() > 1 then fibaro:abort() end

     

    sorry here all the text

     

    Program starting as '"C:\Users\sjaak\Downloads\ZeroBraneStudio\bin\lua.exe" -e "io.stdout:setvbuf('no')" "C:\Users\sjaak\AppData\Local\Temp\.5F8B.tmp"'.
    Program 'lua.exe' started in 'C:\ZeroBraneStudioEduPack\myprograms' (pid: 7080).
    Debugging session started in 'C:\ZeroBraneStudioEduPack\myprograms\'.
    Program completed in 6.76 seconds (pid: 7080).
    Test.lua:9: attempt to index global 'fibaro' (a nil value)
    stack traceback:
        Test.lua: in main chunk
    Debugging session completed (traced 0 instructions).

     

     

    Yes, but the file in the example have the important "if dofile..." in the beginning that is the line that starts the emulator and get you the fibaro:* 

    If you have HC2.lua in the same directory as the Test.lua file that line will load the HC2.lua file and it will take over and  load Test.lua.... 

    Please login or register to see this code.

     

    Posted

    omg Jan you dont believe it!

    I was able to run the scene step by step hehehe

    Thanks for your patience and support

    Posted

    Hallo Jan,

    I like to switch first all scenes from HC2 into EventRunner before I start to play with Node-red, Alexa, Sonos etc.

    Before I asked for the HTTP rcal I think I do something wrong because my heater does not get a signal to react, the Sonos part I will left out will do it later perhaps by Noder-red.

    Its not generating an error message

    Can you be so kind to see what is wrong on this rule?

     

    --[[

    54 value             (door halway)

    351 value           (doorSerre)

    %% globals
    Dagdelen
    Stookseizoen
    HuisStatus

    --]]

     

    Rule.eval("..........

    Rule.eval("..........

     

     

    --Verwarming (Heater)
    --Verwarming Opstaan (Heater by rising up)


      function httpGet(url)
      local http = net.HTTPClient()
      http:request(url, {
          options = { method = 'GET' },
          success =function() fibaro:debug(url.." ,done.") end,
          error = function(errorcode) fibaro:debug("error=" .. errorcode) end
        })

     end

     

    debug from ZeroBrane:

    Program starting as '"C:\Users\sjaak\Downloads\ZeroBraneStudio\bin\lua.exe" -e "io.stdout:setvbuf('no')" "C:\Users\sjaak\AppData\Local\Temp\.E7FC.tmp"'.
    Program 'lua.exe' started in 'C:\ZeroBraneStudioEduPack\myprograms' (pid: 11968).
    Debugging session started in 'C:\ZeroBraneStudioEduPack\myprograms\'.
    [33mMon/Apr/29,17:41:02:[HC2 ] HC2 HC2 emulator v0.8 fix19[0m
    [33mMon/Apr/29,17:41:02:[HC2 ] Local mode, will not access resources on HC2[0m
    [32mMon/Apr/29,17:41:02:[HC2 ] Created Event server at 192.168.1.184:6872[0m
    [32mMon/Apr/29,17:41:02:[HC2 ] Web GUI at http://192.168.1.184:6872/emu/main[0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Reading and decoding configuration from HC2.data[0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Configuration from file, Globals:99, Scenes:148, Device:218, Rooms:27[0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Loaded scene:Test, id:99, file:'Test.lua'[0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Scene:99 [ Trigger:{"type":"property","deviceID":54,"propertyName":"value"} ][0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Scene:99 [ Trigger:{"type":"property","deviceID":351,"propertyName":"value"} ][0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Scene:99 [ Trigger:{"type":"global","name":"Dagdelen"} ][0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Scene:99 [ Trigger:{"type":"global","name":"Stookseizoen"} ][0m
    [35mMon/Apr/29,17:41:02:[HC2 ] Scene:99 [ Trigger:{"type":"global","name":"HuisStatus"} ][0m
    [32mMon/Apr/29,17:41:02:[HC2 ] System trigger:{"type":"autostart"} at Mon Apr 29 17:41:02[0m
    Debugging session completed (traced 0 instructions).

                   door  Serre =close     and door halway = breached & heater= saison & family presence =Yes  &    HomeStatus = Safe DayTime= Morning   or   Rise  

    Rule.eval("deurnaarSerre:isSafe & deurHal:isBreached & $StookSeizoen=='Ja' & locatieGezin:isOn & $HuisStatus=='Safe'  & $Dagdelen=='Morgen'| $Dagdelen=='Opstaan' | => httpGet('http://192.168.1.101/data.json?heater=0&setpoint=167&thermostat=0')")

     

    I tested with no positive result,

    Rule.eval("stekkerCam:isOn  => httpGet('http://192.168.1.101/data.json?heater=0&setpoint=167&thermostat=0')")
     

     

    in HC2

    Posted

    Hi jgab,

    For the arm part I am doing in ER I have a small problem to tackle.

    Is it possible that Fibaro can be set as a trigger to execute a rule in ER? Counter wise is no problem.

    I need it to disarm if I am away. Or is there another solution for?

    this rule

    Rule.eval("Fibaro????? =>  dwSensorsHouse & pirSensorsHouse & dwShortAway & pirShortAway & dwSensorsGastenKamerBoven & pirSensorsGastenKamerBoven & pirSensorsGastenKamerBeneden:armed=0;log('DisArmed')")

     

    Thanks in advance

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