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



jgab

Recommended Posts

  • Topic Author
  • 2 minutes ago, Sjakie said:

    Hello Jan,

    I will try!

    IOSLocator

    I came home at 11:55 No post

    Please login or register to see this attachment.

    If I change something in the scene and save it will post.

    Please login or register to see this attachment.

    Please advice,

     

     

    ioslocator will post all users's location when it starts up. It takes a minute or two between polling each user.

    After that it will only post when a user's location changes. 

    So you will always get the post when you restart the scene - that's what you see.

    You sure that your position changed (enough?). You could log every time you get a new position to see if it works.

     

    3 minutes ago, jompa68 said:

    try to explain better, sorry for lack of info.
    This is the error i get in ZBS, only started with my first V3 scene (publish scene)

    Please login or register to see this code.

     

    Ah, that's another problem. Strange, I just did a pub/sub with two scenes in ZBS to test and it worked for me. Let me try to reproduce the problem.

    In any case, the error message is bad.

    Link to comment
    Share on other sites

  • Topic Author
  • 11 minutes ago, jgab said:

    Ah, that's another problem. Strange, I just did a pub/sub with two scenes in ZBS to test and it worked for me. Let me try to reproduce the problem.

    In any case, the error message is bad.

    You run the latest version of HC2.lua? "0.11","fix6"

     

    If you run the latest, post me you pub/sub scenes so I can try them out.

    Edited by jgab
    Link to comment
    Share on other sites

    Hello Jan,

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

  • Topic Author
  • 3 minutes ago, Sjakie said:

    Hello Jan,

    Please login or register to see this attachment.

     

    Sorry, just comment out the dofile at the end of the main(). I forgot it was there when I did tests and checked in in by mistake.

    In the next version it's fixed.

    Link to comment
    Share on other sites

    error on Util

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    If I remove dev from 1st line error is gone and scene continue

    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, Sjakie said:

    error on Util

    Please login or register to see this attachment.

     

    Yes, those lines are for the inline HT table that is provided as an example. If you have a HT in a global that looks different you need another setup. Should work with the same setup as you had in the previous version.

    Link to comment
    Share on other sites

    One scene running.

    Rule.eval("bijkeuken.wasdroger:power >10 & !bijkeuken.wasdrogerStarted => bijkeuken.wasdrogerStarted=true; log('wasdroger - working')")

    Please advice

     

    Please login or register to see this attachment.

    Okay just follow you to close!

    Thanks Jan

    Link to comment
    Share on other sites

  • Topic Author
  • 4 minutes ago, Sjakie said:

    One scene running.

    Rule.eval("bijkeuken.wasdroger:power >10 & !bijkeuken.wasdrogerStarted => bijkeuken.wasdrogerStarted=true; log('wasdroger - working')")

    Please advice

     

    Please login or register to see this attachment.

    Okay just follow you to close!

    Thanks Jan

    It seems bijkeuken.wasdroger is nil. Have you managed to setup the HT and do Util.defvars on the HT?

    Link to comment
    Share on other sites

    Sorry Jan but this new version see a lot of errors( I am ashamed!)

    First rule no error

     Rule.eval("label(496,'lblWeather')=='clear sky'& @sunrise-01:00 => woonkamer.gordijnoprit:close; log('bij heldere hemel gordijn oprit sluiten')").start()
         Rule.eval("label(496,'lblWeather')=='light rain'& @sunrise-01:00 => woonkamer.gordijnoprit:close; log('bij heldere hemel gordijn oprit sluiten')").start()
         Rule.eval("label(496,'lblWeather')=='over clouds'& @sunrise-01:10 => woonkamer.gordijnoprit:close; log('bij heldere hemel gordijn oprit sluiten')").start()

    PLease advice and sorry for the heavy traffic here.

     

    Please login or register to see this attachment.

    Jan,

    The IOSLocator did not make any post the last days. I was away for 2 km

    Link to comment
    Share on other sites

  • Topic Author
  • 4 minutes ago, Sjakie said:

    Sorry Jan but this new version see a lot of errors( I am ashamed!)

    First rule no error

     Rule.eval("label(496,'lblWeather')=='clear sky'& @sunrise-01:00 => woonkamer.gordijnoprit:close; log('bij heldere hemel gordijn oprit sluiten')").start()
         Rule.eval("label(496,'lblWeather')=='light rain'& @sunrise-01:00 => woonkamer.gordijnoprit:close; log('bij heldere hemel gordijn oprit sluiten')").start()
         Rule.eval("label(496,'lblWeather')=='over clouds'& @sunrise-01:10 => woonkamer.gordijnoprit:close; log('bij heldere hemel gordijn oprit sluiten')").start()

    PLease advice and sorry for the heavy traffic here.

     

    Please login or register to see this attachment.

     

    High traffic expected with new version :-)

    That was my problem - the Rule.eval returned a broken value so .start() was missing from the result... I pushed a new version B4 that fixes it.

    Link to comment
    Share on other sites

    It seems bijkeuken.wasdroger is nil. Have you managed to setup the HT and do Util.defvars on the HT?

    I have two lines wasmachine and wasdryer bot give error

    Correct me if I am wrong:

    If no HT set up all rules with devices should give error?

    Util.defvars same result I asume, when I tried to solve the Util.defvars it was ging error line b y line

    Both wasmachine and wasdroger are in HT.

    Jan my arming scene is running without any error.

     

    Jan sorry You are to fast and I am to slow, hahaha

     

    Link to comment
    Share on other sites

  • Topic Author
  • 27 minutes ago, Sjakie said:

    It seems bijkeuken.wasdroger is nil. Have you managed to setup the HT and do Util.defvars on the HT?

    I have two lines wasmachine and wasdryer bot give error

    Correct me if I am wrong:

    If no HT set up all rules with devices should give error?

    Util.defvars same result I asume, when I tried to solve the Util.defvars it was ging error line b y line

    Both wasmachine and wasdroger are in HT.

    Jan my arming scene is running without any error.

     

    Jan sorry You are to fast and I am to slow, hahaha

     

     

    Yes, if you have not done Util.defvars with your HT it will not find the variables inside the rules.

    Exception is if you have "global" lua variables declared as they are accessible from within rules.

    Try adding a log rule just before the problematic rule to see what wasdroger is.

    Please login or register to see this code.

    I'm almost learning the names of all the dutch home appliances by now :-) 

    Edited by jgab
    Link to comment
    Share on other sites

    Please login or register to see this attachment.

    Please login or register to see this image.

    /monthly_2019_07/image.png.1a7ded68d29fa959bd8b55a566f76501.png" />

    Link to comment
    Share on other sites

  • Topic Author
  • 19 minutes ago, Sjakie said:

    Please login or register to see this attachment.

    Please login or register to see this link.

     

    My fault. Wrong priority for the '!' operator which made a mess of the expression. Added it to my test cases and pushed a new version, B5.

    Link to comment
    Share on other sites

    Okay will update.

    Jan ready for the next one?

    Rule.eval("$StookSeizoen=='Ja' & hal.locatiegezin:isOn & once(trueFor(00:05,eetkamer.deur:breached)=> remote(_myNodeRed,#speak{data='de deur naar de serre is open en de thermostaat wordt ingesteld op 17 graden'})  ; httpGet('http://192.168.1.101/data.json?heater=0&setpoint=120&thermostat=0'); log('Verwarming uit serre op temperatuur')")

     

    Please login or register to see this attachment.

     

    Link to comment
    Share on other sites

    2 hours ago, jgab said:

    You run the latest version of HC2.lua? "0.11","fix6"

     

    If you run the latest, post me you pub/sub scenes so I can try them out.

    Will do tonight when I arrive home again

    Link to comment
    Share on other sites

    Hi Jan,

    Is one mailbox message not enough?

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    Jan,

      Rule.eval("achtertuin.fontein:isOn =>  remote(_myNodeRed,#speak{data='de fontein wordt gestart'}) ,10*repeat(0)")


    Here I am clue less!

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    @jgab

    Hm, testing. Got error 'Error loading rules:NR3TEST.lua:1814: NR3TEST.lua:1650: attempt to index local 'res' (a nil value)'

     

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

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