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


Sankotronic Lab - Universal Home Automation System (UHAS™)(PUBLISHED)


Sankotronic

Recommended Posts

  • Topic Author
  • Hi @MihaiC ,

     

    Settings on the ANC Notification VD looks OK. Still, try to remove all users and add only yourself. Also check on User Setup VD if you have selected bedroom. Select bedroom if not selected and then try again sending message. Also try with different services, HC2 push only, e-mail only and WA only and let me know result.

     

    From debug what I can see scene fails when it should check your bedroom if set to sleep and get user name. One of this is missing for some reason.

     

    Hi @krizso ,

     

    8 hours ago, krizso said:

    As I can check the aT.scene[scn].mode is the problem, actually scn is empty.

     

    You are correct and that is because you are using ALC scene v1.2. Please download corrected ALC scene v1.2.1 from here:

     

     

    Please follow all about UHAS solutions to problems here:

    to avoid solving same problems multiple times. THANK YOU! 🙏

     

     

    Link to comment
    Share on other sites

    On 12/16/2022 at 10:31 PM, Sankotronic said:

    Hi @MihaiC ,

     

    Settings on the ANC Notification VD looks OK. Still, try to remove all users and add only yourself. Also check on User Setup VD if you have selected bedroom. Select bedroom if not selected and then try again sending message. Also try with different services, HC2 push only, e-mail only and WA only and let me know result.

     

    From debug what I can see scene fails when it should check your bedroom if set to sleep and get user name. One of this is missing for some reason.

    Hi @Sankotronic,

    These are my findings after testing and debugging the ANC Notification scene:

    • users are allocated to a certain room (both of them)
    • that room has Room Sleep VD installed and working
    • anything that is not using uT.user is working properly (HC2 push for instance)
    • all the functions that supposed to use it are giving the same error „index nil"
    • when I replaced those functions with their supposed outcomes, it worked

    Please login or register to see this image.

    /monthly_2022_12/image.jpeg.a05b2b39b882ae7417c0b4a0e96ae872.jpeg" /> 

     

    UHASUserTable seems to be ok and it looks like this (I replaced the sensitive data with „$"):

    { "name": "UHASUserTable", "value": "{\"GM\":{\"botID\":\"\",\"tkn\":\"\"},\"WAdev\":{\"Mihai\":{\"key\":\“$$$$$$\",\"num\":\“$$$$$$\"}},\"d_index\":[\"100\",\"101\"],\"d_last\":1,\"TG\":{\"tkn\":\"\",\"cID\":\"\"},\"away\":{\"hcpopup\":true,\"groupme\":false,\"telegram\":false},\"user\":{\"21\":{\"dev_id\":1,\"type\":\"user\",\"atHome\":true,\"id\":21,\"gender\":2,\"away\":{\"hcpush\":true,\"whatsapp\":false,\"e_mail\":false,\"pushover\":false,\"signal\":false},\"email\":\"$$$$$$\",\"distance\":0,\"role\":4,\"home\":{\"hcpush\":true,\"whatsapp\":false,\"e_mail\":false,\"pushover\":false,\"signal\":false},\"unit\":\" m\",\"location\":\"\",\"name\":\"Mihai\",\"POdev\":\"\",\"bedroom\":8},\"97\":{\"dev_id\":2,\"type\":\"user\",\"atHome\":true,\"id\":97,\"gender\":1,\"away\":{\"hcpush\":true,\"whatsapp\":false,\"e_mail\":false,\"pushover\":false,\"signal\":false},\"email\":\"$$$$$$\",\"distance\":0,\"role\":4,\"home\":{\"hcpush\":true,\"whatsapp\":false,\"e_mail\":false,\"pushover\":false,\"signal\":false},\"unit\":\" m\",\"location\":\"\",\"name\":\"Ana\",\"POdev\":\"\",\"bedroom\":8}},\"POdev\":{\"User\":\"user\"},\"r_last\":1,\"home\":{\"hcpopup\":true,\"groupme\":false,\"telegram\":false},\"u_index\":[\"21\",\"97\"],\"room\":{\"236\":{\"id\":236,\"name\":\"Safety Module\",\"category\":\"other\"},\"227\":{\"id\":227,\"name\":\"Climate Module\",\"category\":\"other\"},\"233\":{\"id\":233,\"name\":\"Bedroom\",\"category\":\"other\"},\"223\":{\"id\":223,\"name\":\"Notif.Centre Module\",\"category\":\"other\"},\"226\":{\"id\":226,\"name\":\"Master Bedroom\",\"category\":\"bedroom\"},\"237\":{\"id\":237,\"name\":\"Appliance Module\",\"category\":\"other\"},\"222\":{\"id\":222,\"name\":\"Schedule Module\",\"category\":\"other\"},\"232\":{\"id\":232,\"name\":\"Control Panel\",\"category\":\"other\"},\"229\":{\"id\":229,\"name\":\"Bathroom\",\"category\":\"bathroom\"},\"234\":{\"id\":234,\"name\":\"Lobby\",\"category\":\"hall\"},\"225\":{\"id\":225,\"name\":\"Lights Module\",\"category\":\"other\"},\"231\":{\"id\":231,\"name\":\"Ambience Module\",\"category\":\"other\"},\"221\":{\"id\":221,\"name\":\"System Module\",\"category\":\"other\"},\"219\":{\"id\":219,\"name\":\"Translation Module\",\"category\":\"other\"},\"228\":{\"id\":228,\"name\":\"Kitchen\",\"category\":\"kitchen\"},\"224\":{\"id\":224,\"name\":\"Security Module\",\"category\":\"other\"},\"235\":{\"id\":235,\"name\":\"Reports Module\",\"category\":\"other\"},\"238\":{\"id\":238,\"name\":\"Multimedia Module\",\"category\":\"mediaRoom\"},\"220\":{\"id\":220,\"name\":\"Technical\",\"category\":\"other\"},\"230\":{\"id\":230,\"name\":\"Living\",\"category\":\"livingRoom\"}},\"SGdev\":{\"User\":{\"key\":\"\",\"num\":\"\"}},\"dev\":{\"101\":{\"id\":101,\"push\":true,\"name\":\"iPhone\"},\"100\":{\"id\":100,\"push\":true,\"name\":\"iPhone\"}},\"n_index\":{\"Ana\":\"97\",\"Mihai\":\"21\"},\"r_index\":[\"219\",\"220\",\"221\",\"222\",\"223\",\"224\",\"225\",\"226\",\"227\",\"228\",\"229\",\"230\",\"231\",\"232\",\"233\",\"234\",\"235\",\"236\",\"237\",\"238\"],\"PO\":{\"usr\":\"\",\"tkn\":\"\"},\"u_last\":2}", "readOnly": false, "isEnum": true, "enumValues": [ "Users Setup VD" ], "created": 1671401554, "modified": 1671404618 }

     

    🤔 next steps?

    Link to comment
    Share on other sites

  • Topic Author
  • Hello @MihaiC ,

     

    Sorry for the late answer. My internet connection was again too slow and also had some problems parsing UHASUserTable data you provided. At the end was because of wrong type of quotes where you replaced sensitive data.

     

    Checking the data provided I can see that you did not enable sending other types of notifications except HC push. On User Setup VD it is possible to setup for each user what type of notifications will receive when at home and also when away from home. This is not causing mentioned error, but had to mention because no notifications will be sent regardless you are at home or away.

     

    What we need to check is global variable UHAS_VD_MSG_[VD ID] of the VD that is causing error when trying to send notification if you can provide it same as you provided UHASUserTable? It seems that there is some user not visible, but still making error. It is possible that deleting that global variable and then restarting VD can solve problem.

     

    To easier read data tables from global variables you can use method explained here:

     

    Link to comment
    Share on other sites

    On 12/24/2022 at 7:20 PM, Sankotronic said:

    Hello @MihaiC ,

     

    Sorry for the late answer. My internet connection was again too slow and also had some problems parsing UHASUserTable data you provided. At the end was because of wrong type of quotes where you replaced sensitive data.

     

    Checking the data provided I can see that you did not enable sending other types of notifications except HC push. On User Setup VD it is possible to setup for each user what type of notifications will receive when at home and also when away from home. This is not causing mentioned error, but had to mention because no notifications will be sent regardless you are at home or away.

     

    What we need to check is global variable UHAS_VD_MSG_[VD ID] of the VD that is causing error when trying to send notification if you can provide it same as you provided UHASUserTable? It seems that there is some user not visible, but still making error. It is possible that deleting that global variable and then restarting VD can solve problem.

    Hi @Sankotronicand Merry Christmas! All the best to you and your family!

     

    Ok, we where talking about Network Scan VD, so in my case UHAS_VD_MSG_12. I deleted and recreated it (by restarting VD).

    I used User Setup VD to add email and WhatsApp to my user and then ANC Message VD to add these 2 services to Network Scan VD messages and my user. Pressing Test button lead to this result in ANC Scene:

    Please login or register to see this image.

    /monthly_2022_12/image.jpeg.1a618f3cbfb8613b137bec66342d8d23.jpeg" />

    Email was successfully sent and received, but WhatsApp message don’t and, as you can see, there was no debug message either.

    I can live w/o WhatsApp, I just wonder what could be wrong.

    Current UHAS_VD_MSG_12 is this one:

    Please login or register to see this spoiler.

     

    Edited by MihaiC
    Link to comment
    Share on other sites

  • Topic Author
  • Hello @MihaiC , Merry Christmas and Happy New Year! 🎄 🎉 🍾

     

    On 12/26/2022 at 12:10 AM, MihaiC said:

    I can live w/o WhatsApp, I just wonder what could be wrong.

     

    Everything looks OK except that you need to check on User Setup VD if you enabled receiving WhatsApp notifications when you are at home and when you are away. If WhatsApp is not added for user to receive notifications when at home and away then it will be skipped by ANC scene.

     

    I added this option because I do not want to receive some messages when I'm away for work (usually 3 months on the sea) so I can disable them and then again enable when I return home.

     

    Link to comment
    Share on other sites

    Hi @Sankotronic,

     

    I decided to switch from ARC Sonos to API Sonos, please instruct about the necessary steps to follow.

    Just add the API Collection or add API and then delete ARC…? 

    Link to comment
    Share on other sites

  • Topic Author
  • 2 minutes ago, MihaiC said:

    I decided to switch from ARC Sonos to API Sonos, please instruct about the necessary steps to follow.

     

    Hi @MihaiC ,

     

    Both ARC and API Sonos can coexist so you do not need to delete ARC before installing API. Still if only one Sonos API Player VD is installed and ANC Sonos TTS VD initiated search for available Sonos speakers, then only API Player VD's will be added to the list and all ARC Player VD's will be removed/not added to that list.

     

    IMPORTANT NOTE - If you installed ANC Sonos TTS VD and scene then before you proceed you will need to remove all speakers from selection to receive TTS notifications! You will need to do that for all notifications setup with ANC Sonos TTS VD. If you do not do that before installing API and removing ARC then it is possible to have problems with sending TTS messages if ARC VD's are deleted.

     

    For instructions how to install jishi node-sonos-http-api use provided link in UHAS manual.

    You can also test jishi using any internet browser by sending requests as explained on the jishi website.

     

    When jishi is installed you can install Sonos API Player VD's as explained in UHAS manual.

    Before installing Sonos API Setup VD and Sonos API News VD please delete their ARC versions.

     

    When all Sonos API VD's are installed, you can delete Sonos ARC VD's. Before deleting ARC Players do not forget to remove them from ANC Sonos TTS VD notification settings!

     

    On ANC Sonos TTS VD you need to use button 

    Please login or register to see this image.

    /monthly_2023_01/838888139_ANCTTSVDupdatespeakerlistbutton.png.5e755982abfd10df46b4bbeda907fd70.png" /> to update list of installed Sonos API Player VD's that can be used to send TTS messages.

     

    NOTE - ANC Sonos TTS VD gives higher priority to API than to ARC player VD's and if any of the API Players is found then ARC Players will not be added to the list of available Sonos Speakers for sending TTS notifications!

     

    After installing and/or deleting VD's and scenes it is recommended to rescan HC2 for the changes done by either restarting UHAS or rebooting HC2 or use button to update list of installed VD's and scenes on the following virtual devices:

    1. Select Language VD (Search and refresh list of all UHAS compatible VD's button)
    2. System Control VD (Update list of installed UHAS modules button)
    3. Watchdog VD (Update list of VD's and scenes to be monitored button)
    4. ANC Message VD (Update list of VD's and scenes with messages button)
    5. Event Recorder VD (Update list of VD's and scenes with event recording capability button)

    After replacing ARC with API you will have to setup TTS notifications with new available Sonos speakers.

     

    Also to mention, now that you will use Sonos API solution, you can also Replace ALC Room Sleep VD with ALC Room Sleep ST VD which provides Turn off Sonos sleep timer. After setting bedroom to sleep mode Sonos can be set to sleep timer to continue play for the set duration. Of course volume for sleep mode is set with Sonos API Setup VD.

     

     

     

    Link to comment
    Share on other sites

    On 1/3/2023 at 12:24 AM, Sankotronic said:

     

    Hi @MihaiC ,

     

    Both ARC and API Sonos can coexist so you do not need to delete ARC before installing API. Still if only one Sonos API Player VD is installed and ANC Sonos TTS VD initiated search for available Sonos speakers, then only API Player VD's will be added to the list and all ARC Player VD's will be removed/not added to that list………….

    Hi @Sankotronic,

    Thank you for explaining this. I carefully followed all the steps and everything is fine regarding the SONOS Player VDs. Music is playing, all the commands are much more faster comparing with ARC version. One thing I lost though… TTS is not working any more (and yes, I eliminated the ARC players from ANC TTS VD before).

    I put back all my previous settings from the ANC TTS VD, but when I’m pressing Test, although ANC TTS scene is launched and it reports no errors, nothing can be heard.

     

    [DEBUG] 16:20:56: HC2 UHAS [message] module: ANC TTS scene version 1.3
    [DEBUG] 16:20:56: (c) 2021 Sankotronic
    [DEBUG] 16:20:57: [08.01.23]: Scene run by VD ID [98] A_Presence S v1.1 to send tts message No: 2
    [DEBUG] 16:20:57: [08.01.23]: INFO Event recording is disabled
    [DEBUG] 16:20:58: [08.01.23]: Message [🚘 🚶‍♀️ Mother has left]
    [DEBUG] 16:20:58: [08.01.23]: TTS service Google @ language en-gb
    [DEBUG] 16:20:59: [08.01.23]: For scene 🙂 Awake volume set to 13
    [DEBUG] 16:20:59: [08.01.23]: Home state: Awake
    [DEBUG] 16:20:59: [08.01.23]: News state: Yes
    [DEBUG] 16:20:59: [08.01.23]: INFO Event recording is disabled
    [DEBUG] 16:20:59: [08.01.23]: Total mem used 866.71 Kb. After disposal 331.89 Kb
    [DEBUG] 16:20:59: [08.01.23]: END ANC TTS scene
     

    I believe I’m missing something in jishi node-sonos-http-api config of TTS, even if I’m using the default Google.

    Can you please explain these last steps of setting TTS in jishi?

    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, MihaiC said:

    One thing I lost though… TTS is not working any more (and yes, I eliminated the ARC players from ANC TTS VD before).

     

    Hi @MihaiC ,

     

    TTS is not lost, but it is disabled by the News state:

     

    2 hours ago, MihaiC said:

    [DEBUG] 16:20:59: [08.01.23]: News state: Yes

     

    I guess you have installed Sonos API News VD and did some settings? Check that news are not activated by the VD timer. You can always disable news with Stop news button [ 📰 ].

     

    I forget to mention in manual that TTS is temporarily disabled when News are activated, so that news are not interrupted by the TTS messages sent by ANC. If you send TTS message directly to the Sonos API player then it will be send to the speaker regardless of the News status.

     

     

    Link to comment
    Share on other sites

    4 hours ago, Sankotronic said:

     

    Hi @MihaiC ,

     

    TTS is not lost, but it is disabled by the News state:

    Hi @Sankotronic,

    I disabled the News, I also changed zone used in ANC TTS VD and now I’m getting another error:

    Please login or register to see this image.

    /monthly_2023_01/image.jpeg.b3d2cac15a2fa9a54bead04977ae0087.jpeg" />

    Used in browser, same address returns:

    image.jpeg.1d27fb7979277e600c4f4981890bf098.jpeg

    although,

    Please login or register to see this link.

     reports ok:

    Please login or register to see this attachment.

     

    Link to comment
    Share on other sites

  • Topic Author
  • Hi @MihaiC ,

     

    Here is my debug for the same message, except that I use voiceRSS and Croatian language:

    Please login or register to see this spoiler.

     

    As you can see URL and everything up to the call to the sonos-api is correct in your case, but then server returns error "End of file". I guess that there is some problem with jishi installation, but at this point still can't see what. For Google TTS there is no need to do any additional settings and normally should work as soon as installation is done.

     

    I think in Safari  is not the best browser to do calls to local devices and that is why you get error. I suggest to test again with "http://192.168.0.200:5005/Living%20Room/say/announcement%2E%20Mother%20came%20home/en-gb/70" with Firefox and then let me know if above URL is working.

    Link to comment
    Share on other sites

    12 hours ago, Sankotronic said:

    Hi @MihaiC ,

    I think in Safari  is not the best browser to do calls to local devices and that is why you get error. I suggest to test again with "http://192.168.0.200:5005/Living%20Room/say/announcement%2E%20Mother%20came%20home/en-gb/70" with Firefox and then let me know if above URL is working.

    Hi @Sankotronic,

     

    Both Firefox and Chrome returned the same error:

    {

    status: "error",
    error: "No system has yet been discovered. Please see

    Please login or register to see this link.

    if it doesn't resolve itself in a few seconds."

    }

    In Firefox this message appeared only the first time, at refresh or a any subsequent attempt I’ve got another error:

    Please login or register to see this image.

    /monthly_2023_01/image.jpeg.45fe5e8a2a194f710ff3b8b1226dd60a.jpeg" />

     

    I followed the indicated address, but I can't figure out what I can do in my case for the Pi setup.

    All these time, the rest of the commands (like …/Zones or …/State) works very well.

    Link to comment
    Share on other sites

    Hello

     

    I'm not a network specialist but the zero(0) in your Network-Adress could be a problem. Only a idea.

     

    192.168.0.200

    Link to comment
    Share on other sites

    36 minutes ago, FunkFib said:

    Hello

     

    I'm not a network specialist but the zero(0) in your Network-Adress could be a problem. Only a idea.

     

    192.168.0.200

    That's not a problem with an zero in the Network-Adress. If this is an "O" or "o" not a zero 0?

    • Thanks 1
    Link to comment
    Share on other sites

  • Topic Author
  • Hi @MihaiC ,

     

    I do not have enough information to analyze problem. What I need is following:

    1. From Firefox send request: http://192.168.0.200:5005/zones and you should get JSON response with all your speakers found by the sonos-api. Please check and report if that is OK. Firefox show structured JSON so it should be easy to see if anything is missing. Note that if speakers are grouped then some of them will be listed only under the "members" part of the coordinator speaker.
    2. Open Sonos API Setup VD for editing and then just save it. Open after saving debug window of the main loop and there check if all found zones are reported. Debug window must look something like on example picture of the VD when IP address and TCP port are setup (see manual page 339) Does this list of found speakers correspond to the list from previous point?
    3. I guess that installed Sonos API Player VD's are working correctly? have you try to send to any of them TTS command from LUA code as given example in manual?

    This is enough for beginning of finding a problem. Just let me know about above things then will continue debugging.

    Link to comment
    Share on other sites

  • Topic Author
  • Hi @FunkFib  and @speedoxx007 ,

     

    thanks for suggestions, but I don't think problem is in IP address since http://192.168.0.200:5005/state does give response.

     

    I think it is possible that something is with jishi node-sonos-http-api installation, but still have to find out what. I didn't have such responses from jishi during testing, actually my configuration start working properly from beginning. It is difficult to help with problems that you do not experience as you know. But I believe we can solve it, just with a bit more fuss than usual. :-)

     

    • Thanks 1
    Link to comment
    Share on other sites

    9 hours ago, Sankotronic said:

    Hi @MihaiC ,

     

    I do not have enough information to analyze problem. What I need is following:

    Hi @Sankotronic,

     

    Thank you for your patience ;)

     

    1. Below the 

    Please login or register to see this link.

     result. For me, at least, it seems to be ok

    Please login or register to see this spoiler.

     

    3. Sonos API Player VD's are working correctly, I can play different things on it. As you suggested, I made a simple test like:

     

    local vdID=132
    local vT, cM=json.decode(fibaro:getGlobalValue("UHAS_VD_"..vdID)),json.decode(fibaro:getGlobalValue("UHAS_CMD_"..vdID))
    cM.action="play"
    cM.volume="10"
    fibaro:setGlobal("UHAS_CMD_"..vdID,json.encode(cM))
    fibaro:call(vdID,"pressButton",vT.updButton)

     

    Kitchen Sonos immediately started to play current track.

    Just as a remark, jishi node-sonos-http-api installation was smooth, „Zones“ command reported all 3 of them at first attempt.

    Link to comment
    Share on other sites

  • Topic Author
  • Hi @MihaiC ,

     

    Thank you for your information. Since all looks OK, speakers are discovered properly and most of the commands work as expected I will ask you just to do one more test.

     

    Please can you use this code to test TTS by sending command directly to any of your Sonos API Player VD:

    Please login or register to see this code.

     

    and let me know if this worked.

     

    Edited by Sankotronic
    added language
    Link to comment
    Share on other sites

    Hi @Sankotronic

    I have a few questions about the ALC scene.

     

    1) Lights added after initial scene setup.
    I created my Lounge ALC scene and it detected the two Fibaro module controlled lights in that room correctly. I then created the VDs for the two Twinkly lights and updated the AutomationBridge VD for the lamp in the room. When I re-ran the ALC scene it didn't pick up the three VD-based lights. I ran the scene many times and it never picked the new lights up. I tried the Update button in the ALC Config VD. I ended up fixing it by deleting the UHASALC_table_360 global. When I then re-ran the ALC scene manually it picked up the 3 new lights.

    Please login or register to see this spoiler.

     

    Thanks for all your help in getting this amazing piece of work to do what we want.

    Edited by clowg
    Link to comment
    Share on other sites

    Another one just came up:

    7) When the home went to Sleep mode tonight some of the ALC scenes didn't turn the lights off.

    Eg:

    Please login or register to see this image.

     

    Eg:

    Picture1.jpg.65ee9dc5e0d4e93090551f769d42384f.jpg

     

    Do I have to set explicit settings for the Sleep light state in ALC Config VD for each room?

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