Presence Dashboard / Graph?

Hey guys,

I am looking for guidance.

I want to have a graph of the users’ presence in the house displaying on my main dashboard. (CF artistic drawing below).

1 is when the user is at home and 0 when the user has left.
Ideally, you’d have all users on the same graph.

What is the best way to achieve this?

All the best,


All the best,


Edit: go easy on the Unicef card, it’s the only piece of paper I had around :smile:


Hello @theodore ! It’s a feature we don’t have right now :slight_smile:

Right now, we don’t have any presence history, Gladys only keeps the current presence state, but we don’t store anywhere the past data.

So it’s a full development:

  • Adding the history to the data model
  • Coding the front part to display it in the UI

You can maybe create a feature request so it’s listed somewhere?

Dagnam it, you’re going to think I’m super demanding! :’)
I will log it in the feature requests for your benefit only. :stuck_out_tongue:

1 Like

As workaround, you could create a fake MQTT ‘temperature device’.
When the people’s gone, put the fake device’s temperature to 0, when people’s home, put the fake device’s temperature to 10 ( or whatever :wink: )
Got it?
Very nice postcard :roll_eyes:

1 Like

Thank you GB, I’ll investigate :slight_smile:

Other possible workaround: use of Node-Red connected to Gladys.

  1. Create a fake device in the MQTT service, like theodore-presence of type temperature for example
  2. Presence detected by Gladys => Emit MQTT event (default behaviour I think @pierre-gilles can confirm)
  3. Node-Red detect this event and sent 1 to the fake device theodore-presence
  4. Same with absence detected, but with 0
  5. At the end, Gladys detects the presence of users and Node-Red send a value to a specific device in Gladys that will retain history. That way, you will be able to show graphs.

Thank you, I’ll look into Noe-Red as well. Both MQTT and Node-Red are new for me but I’m excited to get into it.


@lmilcent I don’t see why Node-RED is useful for this.

Just creating a fake MQTT device and using it in scene is enough to keep history

But it won’t be pretty on the dashboard, as Gladys agregate data, the data will look like a graph it’ll not be very useful

1 Like

Oh yes indeed! But only if the fake device is a binary type (on/off). Else the scene cannot set a temperature on a fake device as far as I know.

Rectification for that solution:

  1. Create a new fake device in the MQTT service
  2. In scenes when you detect a user presence, set the fake device to ON
  3. Same for absence, set the fake device to OFF
  4. That way, you have an MQTT Gladys device that will report On and Off values.
1 Like

That worked as well, until my wife left her keys in a hotel in Denmark :wink: