Add switch management to chatGPT

Related to the discussion https://community.gladysassistant.com/t

I second this request! :+1:

And I add, because I hadn’t found that request, that by « commutateur » we also mean power outlets and switches.
Example of a situation where the AI would be even more usable:
![17402204612425827378111828421194|516x500](upload://efjuN9tHI0oZSxOQctbfF9xuBI

Hey, I’ve added support for smart plugs in the Gladys chat :slight_smile:

The PR:

Tested and approved locally :white_check_mark:

For now, this is the code that will run locally on your instances; I’ll enable plug control on the ChatGPT/Gladys Plus side once this PR is live in production.

2 Likes

It’s merged and it will be included in the next Gladys release! :rocket:

4 Likes

A quick follow-up…
It works, thanks!
But the response is strange:


Perhaps a small improvement is needed?

Hi @GBoulvin :slight_smile:

The feature hasn’t been deployed to production yet, I was on vacation this week.

What you’re seeing is a hallucination from ChatGPT.

I’m deploying the feature to production tomorrow on the instances in a new version of Gladys, and then I’ll need to « activate » the function on the Gladys Plus side (probably at the end of the week)

I’ll keep you posted in this post when you’ll be able to use the feature!

1 Like

The feature is available:

Feel free to share any feedback / cases that don’t work :slight_smile:

1 Like