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


Created a Windows 10 app for Fibaro Home Center 2 AND 3


Joep

Recommended Posts

While working from home for eight months now I had the need to toggle a light or run a scene from my Windows 10 laptop. After some Google I didn't find an app so I decided to learn basic C# and create a Windows tray application myself.

 

The application loads your configured rooms, devices and scenes from your HC2/HC3 and puts them in a menu in the system tray. Now you can run a scene or toggle a light switch without reaching for a wall switch or your phone. ?

 

The program looks like this:

 

Please login or register to see this image.

/monthly_2020_11/Image002.png.4945d8e9f4b3ffcec10e57f395b1365e.png" />

 

I Iearn and get a lot from the Fibaro community, therefore I made the code open source on

Please login or register to see this link.

.

 

You can

Please login or register to see this link.

the application from the

Please login or register to see this link.

. You only need the .exe file.

 

I don't own a HC3. If it also works on the HC3 please inform me. Than I add it to the

Please login or register to see this link.

.

Edited by Joep
Added support for HC3
  • Like 2
  • Thanks 5
Link to comment
Share on other sites

Hi Joep @Joep,

 

it doesn't work with HC3.

 

Please login or register to see this image.

/monthly_2020_11/afbeelding.png.fc813b9b68436029d2de98cc4a136633.png" />

Link to comment
Share on other sites

In my case it doesn't work with HC2 either :-(

Here's the full debug:
 

Please login or register to see this code.

 

Link to comment
Share on other sites

  • Topic Author
  • 6 minutes ago, Bodyart said:

    Hi Joep @Joep,

     

    it doesn't work with HC3.

     

    Please login or register to see this link.

     

    @

    Please login or register to see this link.

     Thank you for testing! 
    To get it working I need some JSON files from the API. 
    Please send me a PM with your mail or WhatsApp and I can try to make it HC3 compatible the next couple of days.

    3 minutes ago, Bodyart said:

    In my case it doesn't work with HC2 either :-(

     

    Are the login credentials correct? I need to program more error handling I think. But wrong credentials throw an exception.

    • Like 1
    Link to comment
    Share on other sites

  • Topic Author
  • I fixed the error @bodyart got. This was due a large devices API reply. In C# the standard maximum JSON file size for JSON is 4 MB. Fibaro puts its Virtual Device code into the devices JSON reply. For big Fibaro configurations the loaded JSON is sometimes > 10 MB. Unfortunately you cannot filter out real devices only with the API request so I set the max JSON file size to Operating System maximum. With my test JSON I got from @bodyart I got it working on my system, so I

    Please login or register to see this link.

    .

     

     

    • Like 2
    Link to comment
    Share on other sites

  • Topic Author
  • I added support for the HC3 to my Windows 10 tray app.

    You can download the update from my GitHub releases page:

    Please login or register to see this link.

     

    Thanks to @Bodyart for testing!

    • Thanks 2
    Link to comment
    Share on other sites

    • Joep changed the title to Created a Windows 10 app for Fibaro Home Center 2 AND 3

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