# Gladys Assistant v4.3.1 is available, with a new Open API for Gladys Plus and more 🚀

**URL:** <https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311>\
**Category:** Actualités\
**Created:** [May 13, 2021, 6:23am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311 "2021-05-13T06:23:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 13, 2021, 6:23am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/1 "2021-05-13T06:23:59Z")

</div>

Hello everyone!

New release today, and it’s a big one!

I know, the version number might suggest it’s a small release, but I underestimated everything we had in this release when tagging the Git: 😅 It should have been 4.4 😛

**A new Gladys Plus Open API**

Many of you have asked for a way to send sensor values via the Gladys Plus API.

It’s now possible with a simple API call from anywhere in the world 🌐

 ![Screenshot 2021-05-13 at 14.20.02](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/4/4d6f98b18c09a2c28b307ecc28f788be1e2a4e83.png)

I wrote a tutorial on the site:

> **[Open API | Gladys Assistant](https://gladysassistant.com/fr/docs/plus/open-api/)**
>
> Nous proposons l'Open API Gladys Plus pour permettre aux utilisateurs Gladys Plus d'envoyer des requêtes API depuis l'extérieur de leur réseau.

This allows you to send requests to Gladys via Tasker, or via iOS Shortcuts (I included a demo in the tutorial above), or from any script!

It’s very powerful 🚀

**The ability to launch a scene within a scene**

It is now possible to launch a scene within a scene.

 ![Screenshot 2021-05-13 at 14.14.05](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/f0e970b8a8eb9d42e2fda45f9afa0881a26912e7.png)

**Disable synchronization of a Caldav calendar**

It is now possible to disable the synchronization of a Caldav calendar, to be able to synchronize only the useful calendars 🙂

 ![Screenshot 2021-05-13 at 14.21.10](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/f900d1e80d7d9e743ccbf2a927e9ae91d77c76a4.png)

**Many new Zigbee2mqtt devices**

Here is the list of commits and devices added!

If you think any are missing, you need to create a GitHub issue 🙂

- feat(zigbee2mqtt): Add Lidl devices [`#1186`](https://github.com/GladysAssistant/Gladys/pull/1186)
- feat(zigbee2mqtt): Fix IKEA TRADFRI motion sensor [`#1187`](https://github.com/GladysAssistant/Gladys/pull/1187)
- feat(zigbee2mqtt): Add Adeo devices [`#1169`](https://github.com/GladysAssistant/Gladys/pull/1169)
- feat(zigbee2mqtt): Add Philips Hue mode 8718699673147l [`#1170`](https://github.com/GladysAssistant/Gladys/pull/1170)

**Bug fixes**

Many small bugs have been fixed, including:

- The problem of the chat not responding when asked for a camera image
- The bug of the weather box on the dashboard when it was coupled with the «&nbsp;room devices&nbsp;» box

The complete changelog is available [on GitHub](https://github.com/GladysAssistant/Gladys/blob/master/CHANGELOG.md).

**How to update?**

If you installed Gladys with the official Raspbian image, your instances will update **automatically** in the coming hours. This can take up to 24 hours, no need to worry.

If you installed Gladys with Docker, make sure you are using Watchtower (See the [documentation](https://gladysassistant.com/fr/docs/installation/docker#mise-%C3%A0-jour-automatique-avec-watchtower))

Congratulations to everyone who participated in this release!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 13, 2021, 7:26am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/2 "2021-05-13T07:26:25Z")

</div>

In the Open API tutorial, I wrote a tutorial explaining how to use iOS Shortcuts with the Open API. Would anyone on Android be interested in creating the same tutorial with Tasker on Android? 🙂

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 13, 2021, 8:06am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/3 "2021-05-13T08:06:55Z")

</div>

I’m going to make a template, I think (importable)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 13, 2021, 8:46am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/4 "2021-05-13T08:46:47Z")

</div>

Don’t hesitate to ask if you have any questions/feedback 🙂

I think it’s also worth writing a small tutorial on the documentation, and we’ll include the template at the end of the tutorial!

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 13, 2021, 3:50pm UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/5 "2021-05-13T15:50:02Z")

</div>

It’s been a long time since I used Tasker and I clearly don’t understand it anymore (it’s like a gas plant).

So I tried Automate.

Simple editor 👍 and native geofencing.

 ![Screenshot_20210513_174339](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/87e6a5d607f52cd48d675d7cba4f0f55409c958c.jpeg)

Regarding the documentation, I was tricked regarding the OpenAPI URL.

There is a «&nbsp;:&nbsp;» before the Token, I thought it was necessary. But no.

I will test in real conditions and if it’s OK I will write some documentation.

---

<div class="post-metadata">

**Author:** ![Mastho](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mastho/32/5449_2.png) [@Mastho](https://community.gladysassistant.com/u/Mastho)\
**Post date:** [May 13, 2021, 6:10pm UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/6 "2021-05-13T18:10:46Z")

</div>

Great job!

Could you specify in the iOS tutorial that the value of the device field must be text (Logical given the example 😅) but above all that the value of the state field must be a number! I didn’t pay attention when creating the shortcuts and I put both as text. So it wasn’t working… 😁

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 14, 2021, 12:45am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/7 "2021-05-14T00:45:05Z")

</div>

> [@VonOx](#):
>
> I tried Automate  
> Simple editor 👍 and native geofencing.

Top 🙂 Can you make a small tutorial for us? 😃 It looks clean anyway!

> [@VonOx](#):
>
> Regarding the documentation, I was fooled by the openapi url  
> There is a «&nbsp;:&nbsp;» before the Token, I thought it was necessary. But no

Ah, well spotted, I often put «&nbsp;:&nbsp;» out of habit (on Express to define an API it’s like that), but you’re right it’s confusing. I’ll change that!

> [@Mastho](#):
>
> Can you specify in the iOS tutorial that the value of the device field must be text (Logical given the example 😅) but above all that the value of the state field must be a number!

ah, well spotted! I’ll add that right away.

---

<div class="post-metadata">

**Author:** ![Exilon62](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/exilon62/32/6003_2.png) [@Exilon62](https://community.gladysassistant.com/u/Exilon62)\
**Post date:** [May 18, 2021, 10:37am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/8 "2021-05-18T10:37:46Z")

</div>

> [@pierre-gilles](#):
>
> **Many new Zigbee2mqtt devices**
> 
> Here is the list of commits and devices added!
> 
> If you think any are missing, you need to create a GitHub issue 🙂
> 
> - feat(zigbee2mqtt): Add Lidl devices [`#1186`](https://github.com/GladysAssistant/Gladys/pull/1186)
> - feat(zigbee2mqtt): Fix IKEA TRADFRI motion sensor [`#1187`](https://github.com/GladysAssistant/Gladys/pull/1187)
> - feat(zigbee2mqtt): Add Adeo devices [`#1169`](https://github.com/GladysAssistant/Gladys/pull/1169)
> - feat(zigbee2mqtt): Add Philips Hue mode 8718699673147l [`#1170`](https://github.com/GladysAssistant/Gladys/pull/1170)

My Adeo lamp has been added, great!  
However, it’s an RGB lamp and I don’t know how to tell Gladys. I added a screenshot here: [Issue · GitHub](https://github.com/GladysAssistant/Gladys/issues/1156)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 18, 2021, 1:47pm UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/9 "2021-05-18T13:47:07Z")

</div>

I tagged here @cicoub13 who handled this PR 🙂

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [May 18, 2021, 6:44pm UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/10 "2021-05-18T18:44:45Z")

</div>

> [@Exilon62](#):
>
> However, it’s an RGB lamp and I don’t know how to tell Gladys about it

The color management feature is not yet implemented in Zigbee2Mqtt. I’m working on it, but the conversion between color spaces is complex (RGB \<=\> CIE 1931 color space).

I don’t have a color bulb, could you help me test it?

---

<div class="post-metadata">

**Author:** ![Exilon62](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/exilon62/32/6003_2.png) [@Exilon62](https://community.gladysassistant.com/u/Exilon62)\
**Post date:** [May 18, 2021, 7:13pm UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/11 "2021-05-18T19:13:08Z")

</div>

No worries then 🙂 If it’s not too time-consuming, no problem. I’m in the middle of writing my PhD thesis, so until July/August I won’t have much time ^^

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [May 19, 2021, 8:28am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/12 "2021-05-19T08:28:26Z")

</div>

Hi @pierre-gilles,

I think I found a bug, do you want to give me some tips to investigate before opening an issue on GitHub, or should I open the _issue_ right away?

  

**Description:** A scene retrieves the humidity value in % from all my sensors, then executes a scene per sensor.

These scenes are simple: for a sensor I retrieve the humidity value, I compare it and send a message if it’s too high.  
By creating a scene of this type per sensor, I can send a precise message: «&nbsp;room X is too humid&nbsp;», rather than «&nbsp;One of the rooms is too humid&nbsp;» as I was doing before.

**Bug:** Each scene corresponding to a single sensor works individually (I receive the message), but not when it is called by the «&nbsp;execute a scene&nbsp;» function (no message).

**Master Scene**  
For testing, I wait 1 ms instead of 90 minutes.

 ![gladys](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1754d3d8c589c468b239b0708178edc197281e7a.png)

**One of the called scenes**  
All other scenes are identical, but for a different sensor.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/f44826f350983b57555d71117983d4e84a8e0af8.png)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 20, 2021, 1:06am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/13 "2021-05-20T01:06:42Z")

</div>

Strange all this, I’d like a GitHub issue 🙂 I’ll check it out!

Have you already investigated the logs a bit or not at all?

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [May 20, 2021, 4:37am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/14 "2021-05-20T04:37:31Z")

</div>

Yes, a little, and it bothers me because there’s nothing on the server side and nothing on the client side.  
It’s the worst for debugging!

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [May 20, 2021, 7:26am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/15 "2021-05-20T07:26:22Z")

</div>

> <https://github.com/GladysAssistant/Gladys/issues/1200>
>
> \# Describe the bug
> When a scene is called from another one, it does not work as… expected. But if I execute the non-working scene manually with the dedicated button, it is working well.
> \*\*No logs are visible on both side, client & server.\*\*
> 
> \# To Reproduce
> Steps to reproduce the behavior:
> 
> 1. Create a scene that get a device value, test it and send a message if the value is higher than something (e.g. humidity \> 65%)
> 2. Create a scene "master" that get a device value, test it and call the previous scene if the test is valid (same example)
> 3. The scene in 1. may not work properly when called by scene "master". But by clicking on the execute button on scene 1. it will work perfectly.
> 
> \# Expected behavior
> Scene 1 is executed the same way if started manually, or by another scene.
> 
> \# Screenshots
> 
> \### Scene 1. (the one called by the master)
> 
> !\[image\](https://user-images.githubusercontent.com/14235706/118936609-f8ef0880-b94c-11eb-9ddc-9c24f42d55e1.png)
> 
> \<br\>
> 
> \### Scene "master"
> 
> !\[image\](https://user-images.githubusercontent.com/14235706/118936644-01dfda00-b94d-11eb-8bf6-23f25a4049cb.png)
> 
> 
> \# Your Gladys installation
> 
> \- Raspberry Pi 4 installation
> 
> 
> \# Desktop
> 
> \- OS: Android 11 & Windows 10
> \- Browser: Firefox
> \- Version: Nightly

---

<div class="post-metadata">

**Author:** ![Mastho](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mastho/32/5449_2.png) [@Mastho](https://community.gladysassistant.com/u/Mastho)\
**Post date:** [May 20, 2021, 8:37am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/16 "2021-05-20T08:37:23Z")

</div>

I created the iOS shortcuts based on the «&nbsp;Departure&nbsp;» and «&nbsp;Arrival&nbsp;» automations. The problem is that full automation is not yet possible, hoping that will change one day. These shortcuts simply display a notification that you need to click on to run the shortcut… Has anyone come up with a workaround?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 20, 2021, 10:08am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/17 "2021-05-20T10:08:12Z")

</div>

> [@Mastho](#):
>
> The problem is that full automation is not yet possible, hopefully that will change one day. These shortcuts just display a notification that you have to click to execute the shortcut… Has anyone come up with a workaround?

I know, it’s Apple 😕 It’s really a shame!

I wonder if we couldn’t go through another app, I came across Scriptable:

[https://scriptable.app/](https://scriptable.app/)

It’s for making small JS scripts on iPhone/Mac, which can run in a widget! 🙂

Depending on the refresh rate, it should be able to work in real life ^^

I see that there is a function Location.current():

> **[Location - Scriptable Docs](https://docs.scriptable.app/location/)**
>
> Documentation for Scriptable, an automation app for iOS.

As well as a function to make an HTTP request:

> **[Request - Scriptable Docs](https://docs.scriptable.app/request/)**
>
> Documentation for Scriptable, an automation app for iOS.

The idea could be to:

- Get the latitude/longitude of your phone
- If the latitude/longitude is close to your home (you have to do the calculation in JS, there must be functions that exist to do the calculation)
  - THEN: send request «&nbsp;user at home&nbsp;»
  - ELSE: send request «&nbsp;leaving home&nbsp;»

I’m really not sure it will work, but it could 😛

Edit: Otherwise, in reality, you just need to send the geolocation in the background with Owntracks, and you would need to be able to create scenes that are triggered when the geolocation is updated. I’ll look into doing this in Gladys!

---

<div class="post-metadata">

**Author:** ![Jean34](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean34/32/3349_2.png) [@Jean34](https://community.gladysassistant.com/u/Jean34)\
**Post date:** [May 20, 2021, 10:51am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/18 "2021-05-20T10:51:32Z")

</div>

Cool if you can do this with Owntracks.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [May 20, 2021, 10:53am UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/19 "2021-05-20T10:53:18Z")

</div>

OwnTracks already works with Gladys plus ([Owntracks | Gladys Assistant](https://gladysassistant.com/fr/docs/integrations/owntracks)), however, triggering a scene on an exit/entry zone is not yet possible

I’ll take a look!

Edit: there is already a feature request:

> [@Detection entrée/sortie de zone géographique (lat/long)](https://community.gladysassistant.com/t/detection-entree-sortie-de-zone-geographique-lat-long/5876/7?u=pierre-gilles):
>
> Ok merci pour les précisions! Pour moi, il faut développer ça en natif, comme ça si Owntrack disparait ou qu’on veut utiliser une autre app de localisation, on pourra toujours faire des scènes slight_smile Il faut re-développer toute la stack de la v3. Spécification fonctionnelle: Créer une zone dans la vue “plan” avec un nom, une couleur et un rayon Editer une zone dans la vue plan Supprimer une zone dans la vue plan Dans les scènes, je peux sélectionner un trigger “quand l’utilisateur X…

---

<div class="post-metadata">

**Author:** ![Mastho](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mastho/32/5449_2.png) [@Mastho](https://community.gladysassistant.com/u/Mastho)\
**Post date:** [May 20, 2021, 12:27pm UTC](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311/20 "2021-05-20T12:27:40Z")

</div>

I wanted to try with IFTTT. I will also test with Scriptable, I didn’t know about it. I’ll give you feedback 😉

[Next page](https://community.gladysassistant.com/t/gladys-assistant-v4-3-1-est-disponible-avec-une-nouvelle-open-api-pour-gladys-plus-et-autres/6311.md?page=2)
