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 (edited)
11 minutes ago, cag014 said:

You mean doesn't work from scenes?

By the way any new QA from them, or I can continue to debug the problem using latest Sonos_Hub

Indeed it doesn"t work from scenes, but also not from AOQ

{"`SonosHub`", '+addToQueue,"192.168.1.19",[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},

{"`SonosHub`", '+addToQueue,"192.168.1.19",[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},

{"`SonosHub`", '+play,"192.168.1.19"'},

The SonosHub does not show an error on addToQueue but on play. The same error from scene as from AOQ.

There is no new version of SonosHub.

Edited by Rover
  • Topic Author
  • Posted (edited)

    @SmartLifeSystems

    Have found workaround for reboot issue, but this requires user and password of your local HC3.

    To do so, please add to jSlave "home" controller with correct user,password and default ip=127.0.0.1

    Jslave={

    .......

    home="user="..", passwd="...", ip=127.0.01

    .....

    }

    By the way, I suggest to set additional condition to reboot the system, like timeSlot or set initOnStartup=false or big delay >30 seconds.. The reason for that if your RAM will be always over 85% the system will reboot itself in loop on startup and it will be very hard to stop it.

    Please download attached. Let me know if it works.

    Note:

    You can reboot any HC in jSlave list, fo example

    {"hc2","reboot","30"}

     

    Please login or register to see this attachment.

    Edited by cag014
    Posted (edited)
    1 hour ago, cag014 said:

    @SmartLifeSystems

    Have found workaround for reboot issue, but this requires user and password of your local HC3.

    To do so, please add to jSlave "home" controller with correct user,password and default ip=127.0.0.1

    Jslave={

    .......

    home="user="..", passwd="...", ip=127.0.01

    .....

    }

    By the way, I suggest to set additional condition to reboot the system, like timeSlot or set initOnStartup=false or big delay >30 seconds.. The reason for that if your RAM will be always over 85% the system will reboot itself in loop on startup and it will be very hard to stop it.

    Please download attached. Let me know if it works.

    Note:

    You can reboot any HC in jSlave list, fo example

    {"hc2","reboot","30"}

     

    Please login or register to see this attachment.

     

    I uploaded the 8.2, but the restart problem back again. I will try with the 8.1.

    How many percent is the normally RAM load?

    Edited by SmartLifeSystems
  • Topic Author
  • Posted (edited)
    4 hours ago, SmartLifeSystems said:

     

    I uploaded the 8.2, but the restart problem back again. I will try with the 8.1.

    How many percent is the normally RAM load?

    My RAM is 52% and steady... but my HC3 has just 5 devices, so I don't think it's a good reference. 

    Was an error during copy/paste

    please try again

     

    Please login or register to see this attachment.

    Edited by cag014
  • Topic Author
  • Posted (edited)

    @Rover

    Since I don't have a Sonos, could you try to send

    fibaro.call(212, "addToQueue", "192.168.1.19", json.encode({"//192.168.1.3/d/SonosGeluiden/Deurbel.mp3"}))

     

    Please make sure the first IP is a Sonos device IP

    Let me know if you receive any error?

    Edited by cag014
    Posted (edited)
    2 hours ago, cag014 said:

    @Rover

    Since I don't have a Sonos, could you try to send

    fibaro.call(212, "addToQueue", "192.168.1.19", json.encode({"//192.168.1.3/d/SonosGeluiden/Deurbel.mp3"}))

     

    Please make sure the first IP is a Sonos device IP

    Let me know if you receive any error?

    fibaro.call(212, "addToQueue", "192.168.1.19", json.encode({"//192.168.1.3/d/SonosGeluiden/Deurbel.mp3"}))

    fibaro.call(212, "play", "192.168.1.19")

    Does not only produces no errors,but produces the sound of a doorbell ?

    Thank you cag!

    Is it in AOQ: {"`SonosHub`", '+addToQueue,"192.168.1.19",json[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},   ?

    Why should fibaro.call(212, "playNotification", "192.168.1.19", "//Mediacenter/d/SonosGeluiden/Deurbel.mp3", 40) not be json encoded?

    Edited by Rover
  • Topic Author
  • Posted (edited)
    1 hour ago, Rover said:

    fibaro.call(212, "addToQueue", "192.168.1.19", json.encode({"//192.168.1.3/d/SonosGeluiden/Deurbel.mp3"}))

    fibaro.call(212, "play", "192.168.1.19")

    Does not only produces no errors,but produces the sound of a doorbell ?

    Thank you cag!

    Is it in AOQ: {"`SonosHub`", '+addToQueue,"192.168.1.19",json[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},   ?

    Why should fibaro.call(212, "playNotification", "192.168.1.19", "//Mediacenter/d/SonosGeluiden/Deurbel.mp3", 40) not be json encoded?

    Yes, in AOQ it should be like you posted.

    Regarding playNotification, yhis function needs two string parameters, while addToQueue needs one string and one table parameter.

    Why? 10Der decided like that... I guess it makes sense  because you can play only one notification at the same time, but you can add several notifications using addToQueue  (and using table is the way to do it)

    By the way as I understand you can add several notification to the Queue and then it will play all of them (one after other)  using play command.

    In addition if you need to add different "music" to the Queue you need to send clearQueue command before, otherwise looks like it will play previous music as well.

    Again, I don't have Sonos and cannot verify that. These are my observations by looking on the Sonons_Hub.fqa  code. May be  I'm wrong...

     

    Edited by cag014
  • Topic Author
  • Posted

    @SmartLifeSystems

    Since I want to release AOQ 8.2 version in the forum, could you please confirm if it works properly. No restarts and reboot works.

    Thank you.

    Posted

    Hi @cag014

    Are these high peaks normal? (v.8.1) 

    Please login or register to see this spoiler.

     

    Posted
    8 hours ago, cag014 said:

    Yes, in AOQ it should be like you posted.

    Regarding playNotification, yhis function needs two string parameters, while addToQueue needs one string and one table parameter.

    Why? 10Der decided like that... I guess it makes sense  because you can play only one notification at the same time, but you can add several notifications using addToQueue  (and using table is the way to do it)

    By the way as I understand you can add several notification to the Queue and then it will play all of them (one after other)  using play command.

    In addition if you need to add different "music" to the Queue you need to send clearQueue command before, otherwise looks like it will play previous music as well.

    Again, I don't have Sonos and cannot verify that. These are my observations by looking on the Sonons_Hub.fqa  code. May be  I'm wrong...

     

    {"`SonosHub`", "+clearQueue","192.168.1.19"}, delivers 

    Please login or register to see this spoiler.

     

    Posted (edited)
    1 hour ago, Rover said:

    {"`SonosHub`", "+clearQueue","192.168.1.19"}, delivers 

    Please login or register to see this spoiler.

    Why is in the second addToQueue line the ]]{SonosHub) rose?

     

    (Also in a scene with double addToQueue only one doorbell sound is to be heard.)

    Edited by Rover
  • Topic Author
  • Posted (edited)
    3 hours ago, Rover said:

     

    But

    {"`SonosHub`", '+clearQueue,"192.168.1.19"'},

    {"`SonosHub`", '+addToQueue,"192.168.1.19",json[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},

    {"`SonosHub`", '+addToQueue,"192.168.1.19",json[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},

    {"`SonosHub`", '+play,"192.168.1.19"'},

    works! But only one doorbell sound is to be heard.

    Please login or register to see this spoiler.

    @Rover

    Please don't use double quotes in parameters. The double Quotes in use when json parameter needed

    This is the format without json

    {"`SonosHub`", "+clearQueue,192.168.1.19"},

    Format with json parameter... the non json parameter should be without double quotes.

    {"`SonosHub`", '+addToQueue,192.168.1.19,json[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},

    Let me know if it solved your problems.

     

    Edited by cag014
    Posted
    20 hours ago, cag014 said:

    My RAM is 52% and steady... but my HC3 has just 5 devices, so I don't think it's a good reference. 

    Was an error during copy/paste

    please try again

     

    Please login or register to see this attachment.

     

    Sorry, but the restart problem is true.

    Posted
    20 hours ago, cag014 said:

    My RAM is 52% and steady... but my HC3 has just 5 devices, so I don't think it's a good reference. 

    Was an error during copy/paste

    please try again

     

    Please login or register to see this attachment.

    My RAM is 70% and steady: 38% used space, 6% buffer, 26% cache, but my HC3 has just 3 devices, so I don't think it's a good reference. 

    Posted (edited)
    2 hours ago, cag014 said:

    @Rover

    Please don't use double quotes in parameters. The double Quotes in use when json parameter needed

    This is the format without json

    {"`SonosHub`", "+clearQueue,192.168.1.19"},

    Format with json parameter... the non json parameter should be without double quotes.

    {"`SonosHub`", '+addToQueue,192.168.1.19,json[["//Mediacenter/d/SonosGeluiden/Deurbel.mp3"]]'},

    Let me know if it solved your problems.

     

    Also with single quotes in parameters no difference in behaviour of sounds and no difference in the debugs of the SonosHub.

    But 10der delivered the following information: function QuickApp:addToQueue(ipaddr, uris) uris in plural

    example:

    fibaro.call(1987, "addToQueue", "192.168.1.70",  {
                 "//192.168.1.29/Multimedia/Music/!NEW/Squazoid - Voyage Across (The Remixes) - 2020/06. Squazoid - Sacred Mantra (Kuba Remix).mp3",
                 "//192.168.1.29/Multimedia/Music/female-opening-mail.mp3",
                 "//192.168.1.29/Multimedia/Music/Ding.mp3",
                 "http://192.168.1.29/Ding.mp3"
             } )

    fibaro.call(212, "clearQueue", "192.168.1.19")

    fibaro.call(212, "addToQueue", "192.168.1.19", json.encode({"//192.168.1.3/d/SonosGeluiden/Deurbel.mp3,//192.168.1.3/d/SonosGeluiden/Deurbel.mp3,

    //192.168.1.3/d/SonosGeluiden/Deurbel.mp3"}))

    fibaro.call(212, "play", "192.168.1.19")

    but still 1 doorbell sound. It look likes the queue accepts 1 mp3 while the debug of SonosHub shows:

    Please login or register to see this spoiler.

     

    Also interesting:

    repeated  fibaro.call(212, "play", "192.168.1.19") delivers each time a doorbell sound, so the queue does not seems empty.

    Even after fibaro.call(212, "clearQueue", "192.168.1.19") the play command produces doorbell sounds ?‍♂️

    Edited by Rover
  • Topic Author
  • Posted
    20 hours ago, Rover said:

    Also with single quotes in parameters no difference in behaviour of sounds and no difference in the debugs of the SonosHub.

    But 10der delivered the following information: function QuickApp:addToQueue(ipaddr, uris) uris in plural

    example:

    fibaro.call(1987, "addToQueue", "192.168.1.70",  {
                 "//192.168.1.29/Multimedia/Music/!NEW/Squazoid - Voyage Across (The Remixes) - 2020/06. Squazoid - Sacred Mantra (Kuba Remix).mp3",
                 "//192.168.1.29/Multimedia/Music/female-opening-mail.mp3",
                 "//192.168.1.29/Multimedia/Music/Ding.mp3",
                 "http://192.168.1.29/Ding.mp3"
             } )

    fibaro.call(212, "clearQueue", "192.168.1.19")

    fibaro.call(212, "addToQueue", "192.168.1.19", json.encode({"//192.168.1.3/d/SonosGeluiden/Deurbel.mp3,//192.168.1.3/d/SonosGeluiden/Deurbel.mp3,

    //192.168.1.3/d/SonosGeluiden/Deurbel.mp3"}))

    fibaro.call(212, "play", "192.168.1.19")

    but still 1 doorbell sound. It look likes the queue accepts 1 mp3 while the debug of SonosHub shows:

    Please login or register to see this spoiler.

    Is it restarts constantly, or restarts when you're trying to use reboot command?

    Posted

    Hi,

    Regret I am not a big support on this point.

    Sjakie is doing:

    -record voice message put in scene

    -IN QA where I need the message start scene with msg

    I didt have time to let Sonos play whats in que due to the fact my HC3

    is still not doing what I want.

    At this moment my heart is jumping!

    I started to migrate HC3>>>HC3 after confirmation I got the message

    Factory reset HC3 (my SOURCE) so I was disconnecting on time. hehehe

    To try again I must wait till the cloud is reset my migration.

    Keep you posted,

    //Sjakie

     

    Posted
    1 hour ago, cag014 said:

    Unfortunately I cannot test that. You need to ask 10Der about that.

    Or as I saw @Sjakie uses same Sonos QA and may be he can provide more info.

    Is it restarts constantly, or restarts when you're trying to use reboot command?

     

    I not use yet the reboot command. Restarts constantly.

    Posted

    Have anybody problem with the push notifications? The AOQ is sending the notifications, but I don't see on my phones.

    I tried the HC3 reboot, but nothing.

    Posted
    9 minutes ago, SmartLifeSystems said:

    Have anybody problem with the push notifications? The AOQ is sending the notifications, but I don't see on my phones.

    I tried the HC3 reboot, but nothing.

     

    I tried with Block scene, but don't working the notifications...

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