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


  • 0

Is it possible to use a list of id's in the conditions?


Question

Posted

Hi.

Is it possible to use a list of id's in the conditions?
{
    type = "device",
    id = 2532 ,
    property = "power",
    operator = "anyValue",
    isTrigger = true
}

I tried to using a list like this:

{
    type = "device",
    id = { 124,1235,1236} ,
    property = "power",
    operator = "anyValue",
    isTrigger = true
}


but that does not seem to work ;-(

..or do I have to repeat the whole Block for each and every device?

 

... and is there a way to use the "hometable" to get the ids? for the conditions?

 

Thanks for helping
cheers

 

8 answers to this question

Recommended Posts

  • 0
Posted

No, but there is an other way, for example:

 

 

 

  • 0
  • Inquirer
  • Posted (edited)
    2 hours ago, SmartHomeEddy said:

    No, but there is an other way, for example:

     

     

     

    Thanks for your answer.

     

    Looks like if I want to use the "hometable" I must use a QA.

     

    By he way.

    I am writing data to InfluxDB - in this case consumption and energy data of about 40 devices (more to come) for use in grafana.

    The scene that I got is working but with the conditions/triggers about "half a mile long"!!

    As the consumption's do not really change that often I thought a scene would do the job.

    ... how wrong I was :-(

    thanks again

    Edited by pflugj
    • 0
    Posted (edited)

    @pflugj The scene will do the job for you, no worry. 

     

    You don't need the all the conditions to write to InfluxDB. Just write all the data you need every n seconds to InfluxDB. 

     

    For example every 60 seconds:

     

    Please login or register to see this code.

     

     

     

    Edited by SmartHomeEddy
    • 0
  • Inquirer
  • Posted

    Yep that was my idea at first.

    But I am not sure about HC3 - I have about 140 physical devices and more to come

    I wanted to reduce the load on the HC3 (this thing does not seem to be the fastest)

     

    On the other hand I am using a Pi4 as a "Server" for Influx, grafana and a Sonarr, Radarr, nzbget and few other things.
    I also wanted to reduce the workload on the Pi.
    I am already writing WeatherFlow data via QA from HC3 into influxDB
    and I also collect ALL data from my Victron solar system via telegraf and mqtt.
    So the little guy gets busy at times

    htop shows influx sometimes at up to 97%

    maybe I have to add another Pi ?

    • 0
  • Inquirer
  • Posted
    1 minute ago, SmartHomeEddy said:

    If you can afford a HC3 with 140 devices, you can afford an extra Pi4 ?

    The problem is Power!
    I run my whole house from solar and batteries - so every single Watt counts!
    By the way:
    I am located in Namibia/Africa which is a very small country - population wise and
    we do NOT have Amazon and overnight delivery or anything close to that!!?

     

    Unless paying huge amounts for DHL shipping (which is still min: 5 days!!) or so,

    It takes about 6-8weeks average to get anything

    • 0
    Posted

    Oh, wow. That is something different. But Namibia a very small country, The Netherlands is that small pixel on Google Maps ?

     

    But I understand, it isn't the cost for the Pi4 but how to get it at your house. We almost get a delivery every day, sometimes next day delivery, on a Sunday no problem, how different can it be. 

    • 0
  • Inquirer
  • Posted

    small = ~3million people and the country that is about 20 times bigger than the Netherlands

    ?

    And whenever I write to the any support: I am told to contact my nearest dealer ??

    • Like 2
    • -1
    Posted

    If you can afford a HC3 with 140 devices, you can afford an extra Pi4 ?

    Join the conversation

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

    Guest
    Answer this question...

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