AI agent, MCP server

Actually, the issue comes from devices that don’t have an assigned room!

I made a PR that fixes the issue:

Gladys v4.65.1 in build in progress with the fix…

The fix is live!

2 Likes

Ah, I didn’t know we could have devices without an associated room.

Thanks for your quick fix, I didn’t have time to see the message. From what I saw you removed those devices without a room from the MCP schema. We could possibly take these devices into account by assigning them a default room « cross-room » or something like that (only in the MCP schema), what do you think? I imagine that for those who use it, it would be interesting to have, for example, the Linky in the data

By default, devices don’t have any parts, so it’s pretty common :slight_smile:

I did a quick fix, basically to create a default part!

I’m currently adding a new tool to the MCP service. The goal is to retrieve a history of values and not just the current state. Once the list of data is obtained, we can use the power of LLMs to study the evolution, compare…

As with the graphs, you can retrieve the last hour, the last 12 hours, the last day, the last week, the last month, the last 3 months or the last year.

Short demo

The PR

As with the first time, an image is available bertrandda/gladys:mcp-server

2 Likes

Nice

A new image is available with some fixes.

@pierre-gilles I think we’re good to start the review

1 Like

Awesome, I’ll watch :slightly_smiling_face:

Looks good to me, it’s merged and it’ll be included in the next Gladys release :slight_smile:

2 Likes