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

Goodmorning assistant


Question

Posted

Hello,

 

I've configured my HC2 every morning when I wake up to disarm my alarm, warm up my bathroom floor and turn on lights when its dark. For confirming my HC2 sends a notification to my phone so i know for sure that the alarm is disabled and to wish me a nice day. Now i want to expand this notifications with the current weather status/ temperature and a warning on monday to don't forget to put the garbage outside.

 

Is there someone who can helps me out with creating a scene for this? I use a variable to start this scene.

 

 

9 answers to this question

Recommended Posts

  • 0
Posted

I think a push message is to small, it wil only show up on your phone in one line.

 

You can use HomeCenter.PopupService.publish, there you can build the body and get all the data you like.

  • 0
  • Inquirer
  • Posted

    This service is new for me. I'll take a look at this. Thanks for your reply kime!

    • 0
    Posted

    details can be found here : 

    Please login or register to see this link.

     

    i use it to send a notification with the question if i'm home or not. at the buttom i have the option to start multiple scenes...

    • 0
    Posted

    @Kime I didn't know about this, always wonder what was that notifications panel all about! Thanks.

     

    I'm trying to run the sample code just to understand everything, and all works, when I run the scene and open the fibaro app on my iPhone it shows me the Notifications, but no sound or pop up message announcing that. Is it normal?

    Please login or register to see this code.

    Thanks.

    • 0
    Posted

    Yes, i think so. IT's the same here.
     
    What i do in my LAU script is send a message to my  phone with "sendPush" after i set the notifiaction. So thats a easy fix.

    • 0
    Posted

    Yes, i think so. IT's the same here.

     

    What i do in my LAU script is send a message to my  phone with "sendPush" after i set the notifiaction. So thats a easy fix.

    Already think about that solution, but first I'm trying to build an automatic sleep scene, so it activate the notification and the push notification when no motion is breached for some time and meet other conditions too.

     

    Thanks!

    • 0
  • Inquirer
  • Posted

    Yes, i think so. IT's the same here.

     

    What i do in my LAU script is send a message to my  phone with "sendPush" after i set the notifiaction. So thats a easy fix.

     

    Thanks Kime!

     

    This is exactly what i was looking for. But i don't really understand how to implement the "sendPush" Can you give me an example?

    • 0
    Posted

    Thanks Kime!

     

    This is exactly what i was looking for. But i don't really understand how to implement the "sendPush" Can you give me an example?

     

    Direct push to a mobile device in your HC2

     

    fibaro:call(ID, 'sendPush', 'message');

    ID : The ID of the mobile device you wont to send to

     

    OR
     
    fibaro:call(ID, "sendDefinedPushNotification", "ID-2");
    ID2 : The ID of the prediffined messages in you HC2
    • 0
  • Inquirer
  • Posted

    It works, thanks!

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