Let's talk about Gladys V4

Hello everyone,
A quick update on the caldav service, I made good progress tonight on the server side (calendars and events are syncing) I think I will create the PR soon. However, a question comes to mind about the calendarEvent model. Indeed, the name attribute is set to be unique, isn’t this more limiting considering we already have the id, the external_id and the selector which are supposed to be unique? For example, for recurring events, we will have to put Pepper's Birthday 1 for the 2019 event and Pepper's Birthday 2 in 2020 (or something else that will make each unique). Thanks

@bertrandda Cool!

Indeed, good point. I think we can remove the uniqueness constraint on the event name. However, we will need to find a solution for the selector (which is derived from the name if not specified) so that two events with the same name do not result in the same selector. What I would do for an event is to concatenate perhaps the event date in the selector.

Example:

  • Currently: « Pepper’s Birthday » → « pepper-birthday »
  • Idea: « Pepper’s Birthday » → « pepper-birthday-2019-05-02-12:00 »

Hello everyone!

I’ve made quite a bit of progress on the Z-Wave service interface.

First connection, nothing configured:

Configuration of the USB port to which the dongle is connected:

Scanning in progress:

List of retrieved devices:

To add a device to Gladys, you need to click on « Connect in Gladys ». The device will be added to Gladys and will appear in « Devices ».

Devices are not added to Gladys automatically; it is up to the user to add a device!

Great @pierre-gilles

Great, I’ll take strong inspiration from that for Bluetooth :wink:

Great idea to be able to add or not add the module!

Small suggestion about Z-Wave, would it be possible to add the number of elements in the controller’s queue? When you start to have a lot of Z-Wave devices, the key takes some time to become operational when you connect it. You have to wait for it to process the entire stack. So when you add a new device, you need to be patient, it does not appear immediately in the interface. Therefore, having the controller status (Initializing/OK) would be useful information, I think.

Can’t wait to try all this :slight_smile:

Yes it’s possible! In Settings I will add a small block « Z-Wave controller status »

I use the open-source tool Duplicati to make remote and encrypted backups. And they offer a « Smart » backup retention policy that I find interesting :slight_smile:
If it gives you ideas, you never know!

@lmilcent

That’s not bad! :slight_smile:

Et voilà, it’s here this alpha!

Right on time!

https://community.gladysassistant.com/t/la-premiere-alpha-de-gladys-assistant-4-est-disponible/4781

A big thank you to everyone who contributed to this alpha :clap:

Hey,

I’m looking for a developer on the Xiaomi module as it seems no one is working on it. So I can retrieve the events. I would like to add the devices, can someone explain how?

I understand how to add the device, but where can I find documentation on this? Thanks

You need to create a configuration UI like the Z-Wave service. The service should present the available devices to the user and offer to add them to Gladys.

In Gladys 4, the service should not add devices in the background; it’s the user who configures their installation :slight_smile:

Indeed, I did some research on the application and I saw that a bit later :slight_smile:

Ok, I see the user who chooses everything, all right.

Question for those who dev on the v4.

Currently, I have a module that allows you to add Xiaomi temperature and humidity sensors. The only issue is retrieving the state of this sensor, the value.

So what’s the logic behind all this? Because retrieving the state is easy now or implementing this concretely? Thanks :slight_smile:

Hello @damalgos!

Are you restarting from the module of @piznel or from that of @pierre-gilles?

If you are restarting from the one of @pierre-gilles, be aware that many devices are missing to be integrated that @piznel successfully did on his module.
If you are restarting from the one of @piznel, it would be great if you have the time to look into integrating these connected outlets:

They are autonomous and do not go through the gateway.

Good luck to you!

@spenceur hi,

Ah umm can you send me the GitHub link? Because Xiaomi is complicated there have been several modules ^^

But yes completely I can look into it if possible. Do you have any outlets? I would need a beta tester to properly detect them haha :slight_smile:

Can you send me the link to outlets like that to buy so I can check?

@damalgos

I suggest you look at how other services do it.

Example on the Z-Wave service:

https://github.com/GladysAssistant/Gladys/blob/master/server/services/zwave/lib/events/zwave.valueChanged.js#L25

When you receive a value, you just need to emit a Node.js event and Gladys retrieves and handles everything.

Yes, of course:
https://community.gladysassistant.com/t/nouveau-module-disponible-pour-beta-testeurs-xiaomi/4050

https://github.com/piznel/gladys-xiaomi

Well, yes, I have two Chuangmi Plug V1 plugs indeed :slight_smile:
If I’m not mistaken, these are the ones:
https://fr.gearbest.com/power-strips/pp_341431.html

I don’t think I’ll be switching to Gladys V4 for my part, but I can always install it on my Mac to help you with the progress of your module :slight_smile:

Otherwise, I know that @Hamtaro has a lot of Xiaomi toys :stuck_out_tongue: just in case :smiley:

No worries, the goal is for you to run it on your local machine for testing :slight_smile:

I have temperature sensors, open door detectors. Let’s get these working along with your plug :slight_smile: