Noj - Getting started in home automation with Gladys

Hello everyone, :slight_smile:

I’m Noj,

I’m starting out in home automation; I chose Gladys Assistant because it’s open-source, local data storage, built-in integrations rather than plugins (correct me if needed), docker as well as documentation that I find clear and well organized. And user-friendly which suits me because I won’t have much time in the coming months. :sweat_smile:

My box will be based on an Odroid M1.
https://www.kubii.fr/nano-ordinateurs/3608-odroid-m1-3272496309661.html#/437-version_g22030814274x-8_gb

I think I’ve found most of the answers to my questions on the forum so thanks everyone.
Notably here:

But there are a few left.
I’ll put them here and if needed I’ll make dedicated threads no problem. :slight_smile:

  1. What do you mean by manufacturer gateway/bridge, please?
  2. Does being able to do without it mean you can get rid of the manufacturer’s apps? e.g.: eWelink
  3. How is encryption handled between containers and when communicating with the different modules, please? Is it native or do you have to set it up yourself?
  4. How does feature activation work if I use a docker-compose to deploy everything, please?

Thank you for the work and don’t hesitate if you have any questions. Because I absolutely don’t know how to introduce myself. :sweat_smile:

See you soon.

1 Like

Hi and welcome @Noj !

Great board! Especially given the price of a Raspberry Pi right now, it almost seems like a better alternative :sweat_smile:

In home automation, manufacturers often sell a device that will handle creating a Zigbee network (one example among others) turnkey, directly connected to the brand’s cloud on the internet.
Xiaomi, for example, lets you buy the gateway, which you connect to your WiFi, and this then allows you to use their official app to control your Xiaomi devices.

So indeed, without the gateway, there’s no connection to the vendor’s cloud, and thus no official app. Also more privacy, but in some cases you’ll lose certain options that are only available via the official app.

Gladys runs in a single container. Other containers are necessary for certain functions like Zigbee. In that case, exchanges are done via MQTT. I don’t have Gladys on hand but I believe the exchanges are well encrypted.
However, Gladys locally only offers HTTP. Gladys Plus offers secure access from the internet, with HTTPS and end-to-end encryption.

To use docker-compose, you then install Gladys in custom mode; the documentation will guide you so you can convert the docker run command into docker compose.

Hello and thanks for the welcome @lmilcent, :slight_smile:

That’s really great the board! Especially given the price of a Raspberry Pi at the moment, it almost seems like a better alternative :sweat_smile:
I actually thought the same. :sweat_smile:
I’ll give you some feedback on it if anyone’s interested.
If I’m going to do experimental stuff I might as well make it useful. :rofl:

Perfect, I understood that correctly and that’s exactly what I wanted. :grin:

Okay thanks. :slightly_smiling_face:
I can switch http to https. That’s well within my abilities, I think, as is setting up a VPN if I want.
I’ll support Gladys financially as soon as possible, because I think it’s a project that deserves it. But right now I’m still in a work-study program and I just spent quite a bit on hardware. :sweat_smile:

Running Gladys with docker-compose should be fine.
It’s precisely the containers for other functions like zigbee2mqtt or node-red that make me wonder.
Because, if I understand correctly, it’s their activation in Gladys that triggers their installation, right?
So if I want to integrate them into the compose file how do I do that, please?
By the way, is it really useful? :thinking:
Basically I use a compose file to have a backup of the installation and because I find it easier to manage a multi-container setup.

Also I’m not against making a tutorial afterwards if it can help other people.

With a bit of technical background, switching Gladys’s local interface to HTTPS isn’t really that complicated!
On the forum I’ve already made a tutorial for using the WireGuard VPN if you’re interested. There are other solutions, don’t hesitate to share your feedback anyway :slight_smile:

To wrap up on containers, you can create a docker-compose.yml with Gladys, Watchtower and, if you wish, Node-RED. The latter service is not part of Gladys; it’s more of another project recommended for those who want to go a bit further than what Gladys currently allows, while waiting for the integration of new features / compatibility or to better adapt to a very specific need.

Enjoy exploring, and don’t hesitate if you have any questions or feedback :slight_smile:

No, it’s MQTT, not MQTTS.

The usefulness, from my point of view, is debatable ( everything is purely local)

1 Like

I agree, everything is on localhost, the benefit is negligible.
On a distributed infrastructure it would make sense.

@VonOx @lmilcent Thanks for your feedback. :slight_smile:

And yes, that’s true for the local setup. I’ll see when the time comes.

But if I put my zigbee2mqtt instance in the compose and activate it in Gladys,

Exactly, let Gladys handle the startup and configuration of Zigbee2MQTT. Otherwise it won’t work.

Thanks @lmilcent, that answers my question.
That’s exactly what I wanted to know.

Well, I’ve ordered the Slae USB key and I have some gear coming.
We’ll see how it goes. :slight_smile:

Have a good evening.

The zzh! is great ( it’s the same chip)

1 Like

Yes, I had seen @VonOx.
But it’s out of stock from what I saw and I would like the minimal features I need to be up and running by the end of September. After that I’ll have less time.
That’s also why I haven’t offered my help yet. That and the fact that I don’t code yet. XD

Like you, at first I was set on a zzh! but it was out of stock.
Since then I’ve been using the Slae key like you, which works really well.

I update it regularly; it’s pretty easy to do once you’ve got the hang of it (or scripted the update (MAJ) :sweat_smile:).

@lmilcent Don’t even mention it. I ordered it on 21/08 and it still hasn’t arrived. How can I tell you that I’m dying of impatience. :rofl: :sweat_smile:

Actually, I’m thinking more and more about buying a robot vacuum to join the rest. Does anyone know if there are any Zigbee ones, please?

PS: Sorry for not being around but I’m swamped and, since I haven’t received the key yet, I haven’t made much progress. :sweat_smile:

1 Like

Well, I managed to get everything running. I got my temperature sensors and my smart plug working. I’m so happy. ^^

Next steps: switches paired with motion sensors.
However, I haven’t yet found how to trigger an action depending on the day of the week. :slight_smile:
By the way, does a self-learning module exist, for example for heating, please?

In any case, thanks for Gladys — I’m really having fun. :grin:

Have a good evening and a good week, everyone.

1 Like

Great that you’re able to do what you want :slight_smile:

FYI, I recently saw that Xiaomi offers presence sensors « millimeter-wave radar ». Basically, if a human is in the room without moving

Thanks @lmilcent. :slight_smile:

Thanks for the detector and the time condition. I should be able to couple it with times. :slight_smile:
Next, I’ll first install the switches.
By the way, during my tests yesterday, when I turned on a fan here, I noticed that deleting the scene does not stop the action programmed inside it.
Is that normal behavior or not?

hmm, this has never happened to me. But what might have happened is that the scene remained running for a few minutes.
Let us know if, after a few hours, it’s still the case, and then we can investigate!

1 Like

I had left it at 3 minutes.
I’ll retest tonight and leave a little more time to see. :slight_smile:
Could being on an SD card affect the latency?

No, I think it’s more a matter of scene timing: for example if you asked Gladys to perform an action that takes time, or even to wait.

In my case I have scenes that must run every hour, and others that must wait 10 minutes before continuing.

If your scene used those functions, then you deleted the scene while it was running and Gladys finished the current scene. That’s a hypothesis that could explain why the scene was still working even though you had deleted it.

For the SD case, where you could be penalized is with a large database (greater than 1GB or 2GB). Some actions then become slower, but that’s fairly rare or localized.
For example when deleting a device’s history.
It doesn’t impact the display of the dashboards, which remains super responsive, or the execution of scenes.

@lmilcent
Actually no, I hadn’t set a delay.
It was a simple scene: to turn on a smart plug based on a temperature criterion.

I tried again last night.