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

  • Topic Author
  • Posted (edited)
    20 hours ago, jompa68 said:

    Really surprised how fast it is to send a string from EventRunner --> Node Red --> Sonos 

     

    Installed sonospolytts to node-red
    requires

    Please login or register to see this link.

     

    I updated my latest flow with a pollytts node. 

    It also moves .volume field from event to msg.volume before sending to pollytts node. In theory that should allow control of volume but I can't make it work. It always play with the pre-configured volume in the node. I have an old Play5 so I'm thinking that could be an issue - can you control the volume? {type='speak', data='Hej', volume=50} should work.

     

    Changed 'speek'->'speak'

     

    Edited by jgab
    Posted

    i will check this when i come home and report back.

  • Topic Author
  • Posted

    Ok pushed new version of EvenRunner.lua and EventRunnerDebug.lua, 

    Variable 'NodeRed' at beginning of EvenRunner set to true will start node-red listener (_PORTLISTENER)

    _debugFlags.node_red set to true will log incoming events from node-red server

    Posted
    5 hours ago, jgab said:

    Played a bit more with node-red

    Something wrong with the node, can not import it from copy and paste

  • Topic Author
  • Posted
    3 minutes ago, jompa68 said:

    Something wrong with the node, can not import it from copy and paste

    Ok, updated post - see if it works now.

    Posted

    oh! that flow did crash my node-red. Did not like dir /tmp settings

     

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

    oh! that flow did crash my node-red. Did not like dir /tmp settings

     

    That must be the pollytts node?

    Posted
    3 minutes ago, jgab said:

    That must be the pollytts node?

    Yes, did just add my settings and leave yours first. But now after i remove your settings it works.

  • Topic Author
  • Posted
    Just now, jompa68 said:

    Yes, did just add my settings and leave yours first. But now after i remove your settings it works.

    Ok, great! - maybe if I remove my settings before copying the flow and pasting to the post it will work better for others.

    Posted (edited)
    3 hours ago, jgab said:

     

    I updated my latest flow with a pollytts node. 

    It also moves .volume field from event to msg.volume before sending to pollytts node. In theory that should allow control of volume but I can't make it work. It always play with the pre-configured volume in the node. I have an old Play5 so I'm thinking that could be an issue - can you control the volume? {type='speak', data='Hej', volume=50} should work.

     

    Changed 'speek'->'speak'

     

    tested this now and volume does not have any affect

    Please login or register to see this code.

    and speak does not work

    Edited by jompa68
  • Topic Author
  • Posted
    Just now, jompa68 said:

    tested this now and volume does not have any affect

    Please login or register to see this code.

     

    Strange because it seems to be the last feature added by the author of sonospollytts.

    Posted (edited)
    8 hours ago, jgab said:

    rule("remote(NodeRed,#https{url='https://api.dryg.net/dagar/v2.1/2019/01/03'})") rule("#response{data='$d'} => log('Got back:%s',d)")

    when i test this with ZBS it works ok but not with HC2. I can see in node-red that it goes the right way but could it be so that it don't start scene because of authentication is needed?

    #echo does not seems to work, tested with ZBS and HC2(samme issue with authentication?)

     

    answer myself

    Yes it was authentication problem, did add login:password in url and it did work

    Edited by jompa68
  • Topic Author
  • Posted (edited)
    25 minutes ago, jompa68 said:

    when i test this with ZBS it works ok but not with HC2. I can see in node-red that it goes the right way but could it be so that it don't start scene because of authentication is needed?

    #echo does not seems to work, tested with ZBS and HC2(samme issue with authentication?)

    Yes the zbs and hc2 in the send event subflow need to be configured. The zbs with the IP adress of the PC and the hc2 with the hc2 credentials (basic authentication) and ip.

    hmm, I could make the zbs node not needing any configuration if I set the ._from field to be the address back to the zbs server, instead of just ‘-1’...

    Edited by jgab
  • Topic Author
  • Posted
    3 hours ago, jompa68 said:

    tested this now and volume does not have any affect

    Please login or register to see this code.

    and speak does not work

    Ok,

    I updated the flow in the last post 

    and the problem with speak and volume is that the node wants the volume as a string.

    {type='speak', data='Hej', volume='50'} works. However, I had hard-coded the volume to 50 when I tried to debug it so the flow needed to be updated too. Now the volume works for me.

     

    • Thanks 1
    Posted

    updated flow to control my IKEA outlet/plug (in Domoticz) from EventRunner

    Please login or register to see this image.

    /monthly_2019_01/20190104_13-26-25.png.aa55968354b44211fd543b1cb168227f.png" alt="20190104_13-26-25.png.aa55968354b44211fd543b1cb168227f.png" />

     

    node-red flow

    Please login or register to see this code.

     

    EventRunner 

    Please login or register to see this code.

     

    • Thanks 1
    Posted

    does new function for hue map support :toggle?

    i suspect that it was :toggle that did create error and stopped scene. Or can you see some other mistake i have made?

    Please login or register to see this code.

     

  • Topic Author
  • Posted

    No, they should support toggle (because they support getValue). You have a log of the error?

    However 

    Please login or register to see this code.

    does not make sense in the rule. You need to test against a variable set to the state. 

    Please login or register to see this code.

    However, it may still be an issue with hue as it is new code. If you just do an rule(“@@00:00:04 => hue.huekok.lampastora:toggle”) will it blink?

    Posted

    Hmm, now it does not give any error. I changed that state part to a variable instead. 

  • Topic Author
  • Posted

    Then it could be that. I will check it up when I’m back home this afternoon/J

    Posted

    In ZeroBraneStudio when you test BankHoliday function you can declare BankDays like below without it gives any error.

    Please login or register to see this code.

     

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