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)

Please login or register to see this attachment.

 

So, I have tinkered a bit more with an MCP server for the HC3. Now that VSCode has pretty good support for mcp servers it starts to be interesting.
My current attempt:

Please login or register to see this link.


I typically run it with Claude Sonnet 4.

The mcp gives the agent access to the HC3 and it can do most tasks, like:

User:

Please login or register to see this code.

Agent:

Please login or register to see this code.

 

Have a look at the link for provided tools/features.
 

Edited by jgab
  • Like 10
  • 2 months later...
Posted

Awesome!

Posted (edited)

Great feature, two questions

1. is it works with HC2?

2. Is it works with multiple HC3 hubs? if yes, how?

Edited by cag014
  • Topic Author
  • Posted
    29 minutes ago, cag014 said:

    Great feature, two questions

    1. is it works with HC2?

    2. Is it works with multiple HC3 hubs? if yes, how?

    1. Not really, QAs are very different, as are scenes…

    2. No, it will use the .env creds to find the HC3. Need to swap .env and restart mcp I guess.

    Posted

    Just install HC3 MCP in vscode - OK

    Updated settings.json with the right information ("FIBARO_HOST","FIBARO_USERNAME","FIBARO_PASSWORD","FIBARO_PORT") and the path to:

     "/Users/ASUS/.vscode\extensions/gsonsoft-development.hc3-mcp-server-1.0.4/out/mcp/fibaro-mcp-server.js"

    Then restart Vscode, and test connection to HC3 and get:

    Successfully connected to Fibaro HC3! Host: 192.168.1.107:80 Version: Unknown Serial: HC3-00006080 Config source: ~/.env file

     

    But I have an error message when I start a chat: The command "node" needed to run Fibaro HC3 Smart Home was not found.

    In the OUTPUT window I have:

    2025-11-12 13:55:34.396 [info] Starting server Fibaro HC3 Smart Home
    2025-11-12 13:55:34.397 [info] Connection state: Starting
    2025-11-12 13:55:34.398 [info] Starting server from LocalProcess extension host
    2025-11-12 13:55:34.435 [info] Connection state: Starting
    2025-11-12 13:55:34.438 [info] Connection state: Error spawn node ENOENT

     

    What I need to look at to fix this?

  • Topic Author
  • Posted

    You have https only to HC3?

    Posted
    1 hour ago, jgab said:

    You have https only to HC3?

    No, http & https are allowed

    I can connect with http://192.168.1.107 or https://192.168.1.107 or http://hc3-00006080 or https://hc3-00006080 

  • Topic Author
  • Posted (edited)

    Ok, I read your error message again - it seems like you haven't node.js installed in your system. 
    The mcp is written in javascript and requires node.js to be installed.
    Therefore the 
     The command "node" needed to run Fibaro HC3 Smart Home was not found.
     

    Edited by jgab
    Posted
    On 11/12/2025 at 6:04 PM, jgab said:

    requires node.js to be installed.

    Done and the node error disapeared 🙂

    I am still not able to use it as when in a chat I ask "List my HC3 devices" (or any other request) I am always gettng an answer that Copilot cannot access to my HC3. Same if HC3 MCP server.js is declare in context field.

    Is it because Copilot didn't use HC3 MCP?  

    Do I need to have a running lua file before asking this quetsion?

    Posted

    I have the MCP server up and running. It's fun, I can now change the color of my Hues' with natural language :-)

     

    node.js was missing on my system, too, suggest to add it to the install instructions.

     

    11 hours ago, Christb said:

    I am always gettng an answer that Copilot cannot access to my HC3. Same if HC3 MCP server.js is declare in context field.

     

    Try Command Palette -> HC3 MCP: Test Fibaro HC3 Connection

    Posted
    1 hour ago, jayrock said:

    Try Command Palette -> HC3 MCP: Test Fibaro HC3 Connection

    Ys I did and getting this result:

    Successfully connected to Fibaro HC3!
    Host: 192.168.1.107:80
    Version: Unknown
    Serial: HC3-00006080
    Config source: ~/.env file

     

    Posted (edited)

    That's odd. What's the exact message? Did you ask Copilot why HC3 cannot be accesses?

    Edited by jayrock
    • 2 weeks later...
    Posted

    I have set up the MCP server with login information and get a success message when I run the Test Fibaro HC3 Connection

     

    When I enter a simple request in the chat such as "show HC3 system information" or "show HC3 devices" I see an error of the form

     

    Please login or register to see this image.

    /monthly_2025_11/image.png.8d422e53a2027f9950c6b43ca80ea5d9.png" />

    Please login or register to see this code.

     

    The MCP server extension is enabled.

     

    Have I missed something in the configuration?

    Posted

    For anyone seeing a similar error the problem was I was using an older release of node for another project. I updated to latest and it works.

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