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

Jan still strugling with HUE light colors.

Please login or register to see this code.

In debug it show set value "col":448

result still different color

Please login or register to see this code.

What I am doing wrong?

Please advice,

//Sjakie

Link to comment
Share on other sites

  • Topic Author
  • 2 hours ago, Sjakie said:

    Jan still strugling with HUE light colors.

    Please login or register to see this code.

    In debug it show set value "col":448

    result still different color

    Please login or register to see this code.

    What I am doing wrong?

    Please advice,

    //Sjakie

    Should it be ct=448?

     

    Link to comment
    Share on other sites

    Jan, I tried it before when I had other errors.

    I changed but no result

    Please login or register to see this code.

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • So ct is the color temperature for a Hue light (the yellowness-ish). Is that what you want to set?

    Is it white lights that only control temperature you have?

    There is no 'col' attribute in Hue lights.  

    If you want to set the (rub) color of a light there are other attributes.

     

    If I try it at home with a RGB light I can see a difference if I set different 'ct' values, but they have to differ quite a lot for the eye to notice. ct=10 almost turned off the light... 448 is a pretty normal value.

    Link to comment
    Share on other sites

    Jan,

    I like to change the color (from white-blue-isch and yellow>>ct)

    Please login or register to see this code.

     ct set on 454>>light is dark yellow so this is good

    Debug ct 153 is wrong

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • Set the color you want using the Hue app, then read out the state with ER and set it back with :value=…

    Link to comment
    Share on other sites

    Jan, will do.

    Other minor anoying error:

    Please login or register to see this code.

    This rule works to well!

    If I start with the wake up routine arming complex:off and ringBewaking:on

    If wife lays still in bed makes pir safe and the bedroom window is open >>somebody enters from outside, how to avoid the alarm at this moment?

    Please advice,

    //Sjakie

    Link to comment
    Share on other sites

    Hei @jgab 

    Hei Jan, just to thank you for your previous assistance with eventrunner3 and scene for outdoor lighting. I ended up with rules for season and it works like a charm. Thank you ..

    I am back at the house again after several months away at work and wonder if you might have the time to help me,yet again, with a scene i am trying to write ?

     

    I have an outdoor heating cable for concrete step heating (when it snows or ices). The cable is installed without a sensor. I wish to create a scene that can regulate the heating effect similar to a manual regulator.  I had a Micro Matic MR16 that regulated heating over a 30 minute period. The regulator had a simple 0 to 10 scale where 1 was 3 minutes , 2 was 6 minutes etc.. Thus, setting the regulator to 5 would mean the heating was on for 15 minutes and off for 15 minutes. This of course repeats throughout the whole period the regulator is switched on.

     

    I have made a VD with slider (range changed to 30 min ) and 6 buttons for fast 5 to 30 min turn on times, and a global variable that stores the VD values. 

    I have made a standard scene , if global variable is 5 , turn on heating cable 5 minutes turn off 25 minutes and so on but would like to have a more elegant way to compose and run this scene? 

     

    I was thinking of using ev3 scene for heating.

    I have very limited skills with tables etc and have looked online for an example to work with but havn't found anything within my scope of understanding.

    Just to try out a variable switching a fibaro rele i tried:

    Rule.eval("$VarmeEffekt=='5'  => releid:on")   -----globalvariable VarmeEffekt = 5  turn on heating rele 

    but get (bad argument #1 to 'pairs' (table expected, got nil)

     

    Hoping i made myself understandable ?? Any ideas or links to examples. Thanking you in advance.

    • Please login or register to see this link.

    Link to comment
    Share on other sites

  • Topic Author
  • 8 hours ago, MARCUSP.I.L said:

    Hei @jgab 

    Hei Jan, just to thank you for your previous assistance with eventrunner3 and scene for outdoor lighting. I ended up with rules for season and it works like a charm. Thank you ..

    I am back at the house again after several months away at work and wonder if you might have the time to help me,yet again, with a scene i am trying to write ?

     

    I have an outdoor heating cable for concrete step heating (when it snows or ices). The cable is installed without a sensor. I wish to create a scene that can regulate the heating effect similar to a manual regulator.  I had a Micro Matic MR16 that regulated heating over a 30 minute period. The regulator had a simple 0 to 10 scale where 1 was 3 minutes , 2 was 6 minutes etc.. Thus, setting the regulator to 5 would mean the heating was on for 15 minutes and off for 15 minutes. This of course repeats throughout the whole period the regulator is switched on.

     

    I have made a VD with slider (range changed to 30 min ) and 6 buttons for fast 5 to 30 min turn on times, and a global variable that stores the VD values. 

    I have made a standard scene , if global variable is 5 , turn on heating cable 5 minutes turn off 25 minutes and so on but would like to have a more elegant way to compose and run this scene? 

     

    I was thinking of using ev3 scene for heating.

    I have very limited skills with tables etc and have looked online for an example to work with but havn't found anything within my scope of understanding.

    Just to try out a variable switching a fibaro rele i tried:

    Rule.eval("$VarmeEffekt=='5'  => releid:on")   -----globalvariable VarmeEffekt = 5  turn on heating rele 

    but get (bad argument #1 to 'pairs' (table expected, got nil)

     

    Hoping i made myself understandable ?? Any ideas or links to examples. Thanking you in advance.

    • Please login or register to see this link.

     

    I'm not 100% sure what you need.

    I assume that depending on 'VarmeEffekt' you want to run different "programs" e.g. sequences of on-off commands for the heating?

    First make sure that the  rules trigger on your global

    Please login or register to see this code.

    You are on HC2 and ER3? then don't forget to add the global variable trigger for VarmeEffekt in the header of the ER scene.

    Then make a table of your programs and rules like this

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Good morning Jan,

    I hope you can translate my room temperature in a log?

    If I ask my data with   "http://192.168.1.18/data.json?heater=1room_temp_1_lsb"

    it will list a bunch of data but this we need:

    Please login or register to see this code.

    to calculate room temperature:

    temperatuur(°C) = (value_lsb + value_msb * 256) / 100.0

    How to get this temperature visable in a log?

    How I can use it as trigger?

    Thanks in advance,

    You are an excellent support to bring my HA to the highest level!

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, Sjakie said:

    Good morning Jan,

    I hope you can translate my room temperature in a log?

    If I ask my data with   "http://192.168.1.18/data.json?heater=1room_temp_1_lsb"

    it will list a bunch of data but this we need:

    Please login or register to see this code.

    to calculate room temperature:

    temperatuur(°C) = (value_lsb + value_msb * 256) / 100.0

    How to get this temperature visable in a log?

    How I can use it as trigger?

    Thanks in advance,

    You are an excellent support to bring my HA to the highest level!

    //Sjakie

     

    Something like this? - checks the temperature every minute

    Please login or register to see this code.

     

    Edited by jgab
    Link to comment
    Share on other sites

    Jan, Thank you very much!

    first run error

    Please login or register to see this code.

    If I post

    Please login or register to see this code.

    It returns the data list

    second run error

    Please login or register to see this code.

    Please advice,

    //Sjakie

    Link to comment
    Share on other sites

    Thanking you Jan your your quick response. It took me a little while to get the idea but it works perfectly. 

    I really have to spend more time with eventrunner, I will make it a point to read more.Thank you for your excellent work and your invaluable assistance. 

    Edited by MARCUSP.I.L
    Link to comment
    Share on other sites

  • Topic Author
  • 14 hours ago, Sjakie said:

    Jan, Thank you very much!

    first run error

    Please login or register to see this code.

    If I post

     

    Is it a POST or a GET request?

    What do you get back from the http request?

    Please login or register to see this code.

     

    Can you post the complete rule as it stands?

    14 hours ago, MARCUSP.I.L said:

    Thanking you Jan your your quick response and assistance. I am working with your answer now but havn't managed to get it working. I feel quite dim to say the least ! The idea is that when i set values from a VD on my phone  it will start to run different "programs" e.g. sequences of on-off commands for the heating.

    Hoping you might find the time to point me in the right direction.  Takker

    So the example I posted

    will run different programs defined in ER depending on the number you set the global 'VarmeEffekt' to.

    Wasn't that what you needed?

     

    Link to comment
    Share on other sites

    Please login or register to see this code.

    I tried a few options bu t no luck

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 1 minute ago, Sjakie said:

    Please login or register to see this code.

    I tried a few options bu t no luck

    //Sjakie

    Sorry, too early in the morning - the url should be a string

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Jan

    Please login or register to see this code.

    So this works

    //Sjakie

    Link to comment
    Share on other sites

    Jan. is there a rule to abort scene if global is not equal to ?

    I want the scene to stop if another global variable is not 1 or is 0.

     

    I ended up with the following ; the slider in VD sets intervals in minutes and buttons set quick 5 to 25 minutes.

    I use the slider(minutes) for fine adjustment of regulator( not really needed but good to know how).

    Otherwise the scene runs perfectly.

    Takker

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • The idea was that program 0 turns off the relay and then just turns off every 60min now. It's like an off function, or is it a problem that it turns off every hour even if it's off?

    The long list of log rules can be replaced with just one rule.

    You can add another global to trigger on.

    Like

    Please login or register to see this code.

    ...

    Please login or register to see this code.

    Link to comment
    Share on other sites

  • Topic Author
  • 3 hours ago, Sjakie said:

    Jan

    Please login or register to see this code.

    So this works

    //Sjakie

     

    Sorry, the 'turl' can not be declared local

    Please login or register to see this code.

     

    Edited by jgab
    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...