Local API to manage user state

Hello!

Is it possible in this v4 to make API requests without going through the g+?

Do we have a way to change a user’s status (at work, sleeping, awake, at home, etc.)?

I wanted to create a task via Automate to manage my night hours based on my Android Do Not Disturb.

But now I’m stuck updating Gladys.

Any ideas, a helping hand?

Thanks in advance.

Hello!

In your case (you have an instance open on the internet if I remember correctly), I advise you to use the MQTT API to send sensor values (as I do in the Open API documentation of Gladys Plus), and then use the scenes to switch the presence of your user.

The management of the user is sleeping/at work/awake does not exist in Gladys 4 for the moment. If you want to see that in Gladys you can create a feature request and if it has enough votes why not :slight_smile:

Tutorial on MQTT in Gladys:

As well as MQTT API documentation:

I thank you, I will indeed go through MQTT!
I don’t really understand the voting system.
The more votes there are, the more you will prioritize the tickets?
If so, why doesn’t anyone seem to be on the Sonos service?

Same, my votes are already all used, so is it really worth creating a ticket that no one will be able to prioritize?

I’m just asking questions, I don’t want to point fingers ^^.
Once again, great job!

Votes are used to indicate demand, and this helps prioritize. In the end, everyone does what they want—it’s open source!

People are volunteers who kindly give their time, and they integrate what they have at home first :slight_smile:

For integrations, it’s different; it’s not like core features. To develop an integration, you need the hardware. Here, for Sonos, there must have been a lot of people asking for the installation, but no one wanted to do it/didn’t have the skills to do it, so we don’t have it :slight_smile:

Don’t forget that Gladys is an open-source project; there is no « organization » and no responsibility. Each person is a free electron who comes to contribute when they want, and if they want.

If you want to see Sonos arrive, I invite you to:

  • take on development :slight_smile:
  • find someone who has Sonos at home and knows how to code

If people can prioritize it

Yes, I’m having trouble wrapping my head around it, indeed ^^'!

Thanks anyway, it works well via MQTT, I can create fake states for a user!