# Control IPX800-v5 in Gladys

**URL:** <https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784>\
**Category:** Configuration\
**Created:** [January 12, 2022, 3:31pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784 "2022-01-12T15:31:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 12, 2022, 3:31pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/1 "2022-01-12T15:31:41Z")

</div>

Hello @pierre-gilles,

Is it not possible to directly control a device (command and status feedback) in Gladys? For example, I have an IPX800v5 to control my home automation. It is possible to control it from Node-RED on Home Assistant, but I can’t do it on Gladys? In the IPX, there is a push object that sends the status of relay 1 and a subscribe that allows controlling relay 1 (details [Mini-Tuto Liaison MQTT IPX800-V5 Node-red (sur Home-Assistant) - Cartes Ethernet IPX800 - GCE Electronics](https://forum.gce-electronics.com/t/mini-tuto-liaison-mqtt-ipx800-v5-node-red-sur-home-assistant/14492)). But I would like to control everything from Gladys, how can I do that?

---

<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:** [January 12, 2022, 7:22pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/2 "2022-01-12T19:22:42Z")

</div>

Hello @cce66!

I don’t know the IPX800-v5, is it a relay that works with MQTT?

If I understand correctly, you want to publish to a specific MQTT topic to control this relay?

In Gladys 4, there is an MQTT API:

Example: [MQTT | Gladys Assistant](https://gladysassistant.com/fr/docs/integrations/mqtt)  
Documentation: [MQTT API | Gladys Assistant](https://gladysassistant.com/fr/docs/api/mqtt-api)

After that, this API is fixed by Gladys, and I don’t know if your relay doesn’t specifically expect a specific MQTT topic and a specific message format, which we don’t handle in Gladys currently.

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 12, 2022, 8:55pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/3 "2022-01-12T20:55:01Z")

</div>

It’s a bit of home automation to NFC15100 standards, it goes into the electrical panels, it’s like having all the equipment like dio sockets, dio switches in a module on a DIN rail

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/5faf3adc29f5814ce6776ed2f939ba5cfb9699d0.jpeg)  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/26c2d2870707818337dfc350f2a41b271cdac372.jpeg)

Actually, all commands go through the existing wires (VR, Lamps) and all the sockets can also be controlled from this central point, it’s widely used in home automation (also industrial) there are 8 relays, 8 digital inputs and 4 analog ones

> **[IPX800 V5 – Automate Web sécurisé & évolutif | GCE Electronics](https://gce-electronics.com/fr/accueil/1799-automate-ethernet-ipx800-v5.html)**
>
> Automate IPX800 V5 : serveur HTTPS, scénarios LiveView/Link, MQTT, Philips Hue, API RestFull et nombreuses extensions disponibles.

And I would like to be able to control it from Gladys and (I wanted to do it by voice command but not yet on v4 😢) there is a RESTful API but in MQTT it’s more responsive!!!

---

<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:** [January 13, 2022, 7:38pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/4 "2022-01-13T19:38:31Z")

</div>

> [@cce66](#):
>
> there is a RESTFull API

Go through the REST API in the meantime 🙂

> **[Faire des requêtes HTTP dans une scène | Gladys Assistant](https://gladysassistant.com/fr/docs/scenes/http-request/)**
>
> Dans les scènes, il est parfois pratique d'appeler une API externe afin de contrôler des périphériques pas forcément gérés par Gladys Assistant, ou pour simplement appeler un service externe sans développer un service spécifiquement pour l'occasion.

Otherwise, you can use Gladys + Node-RED

[![](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c9a7666ab602efb9151f7867a98cb81dffa0add5.jpeg "Intégrer Node-RED avec Gladys Assistant en MQTT") ](https://www.youtube.com/watch?v=bpmHzR8_S5g)

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 13, 2022, 10:25pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/5 "2022-01-13T22:25:57Z")

</div>

The ideal in Gladys would be to have more flexible MQTT configuration like in the IPX, here the broker part, so we put the MQTT broker address on the network as a parameter

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

Then we have «&nbsp;publish&nbsp;» and «&nbsp;subscribe&nbsp;» objects

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

Here a subscribe linked to the command of relay 1

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

Configured as follows

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

And in Node-RED I have

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

At the MQTT configuration level

In Gladys, this seems much more complex to me (but maybe I haven’t yet understood the way it works!). I understood that Gladys offers the possibility to deploy a mosquito container, mine runs in a container under openmediavault for the moment, so I go through the mosquito broker hosted on home-assistant, so in Gladys I would like to have in the MQTT devices a relay type (it is missing in the devices) with boolean values and a configuration type like in the IPX, for the relay I link it to an MQTT publish to change the state in the IPX and a subscribe to know its state, that’s all. And there, in Gladys, I’m stuck unless I develop a module like the one for Tasmota (I think), but I looked at your tutorial on this and it’s not easy 😢 For RESTful APIs, it’s not as reactive as MQTT… On the IPX forum, many people would like to couple their IPX with a home automation solution and are mainly faced with the problem of external connection (which Gladys now has, unlike Home Assistant, Domoticz, or Jeedom). Control modules have been developed on Jeedom and HA, but the interaction with Jeedom and HA is poor… I’ll try to dig into the matter…

---

<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:** [January 14, 2022, 9:07am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/6 "2022-01-14T09:07:36Z")

</div>

> [@cce66](#):
>
> I would like to have a relay type in the MQTT devices (it is missing in the devices)

There is «&nbsp;outlet&nbsp;» → «&nbsp;switch&nbsp;» which is made for that 🙂

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 22, 2022, 10:55am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/7 "2022-01-22T10:55:08Z")

</div>

Hello @pierre-gilles,  
I managed to control one of the ipx800 relays via node-red, but I can’t get the switch status back from the ipx800 in gladys

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

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/d3eb9e9bbaf5c2d9188dbe8be83f8a8e3fb12ec2.png)  
I still have a debug that seems correct to me  
22/01/2022, 00:32:11[node: f14f85a92afafbeb](http://192.168.0.197:1880/#)

IPX800\_V5-1 : msg.payload : string[25]

«&nbsp;{&nbsp;»[IPX]Relay cmd 1":true}"

22/01/2022, 00:32:13[node: f14f85a92afafbeb](http://192.168.0.197:1880/#)IPX800\_V5-1 : msg.payload : string[28]

«&nbsp;{&nbsp;»[IPX]Relay state 1":false}"

22/01/2022, 00:32:13[node: cf703754e8389474](http://192.168.0.197:1880/#)msg.payload : string[3]

«&nbsp;off&nbsp;»

22/01/2022, 00:32:13[node: 89b610539bda7d0d](http://192.168.0.197:1880/#)msg.payload : string[3]

«&nbsp;off&nbsp;»

22/01/2022, 00:32:13[node: e4dc354cc2860d26](http://192.168.0.197:1880/#)msg.payload : number

0

22/01/2022, 00:32:13[node: 8f8275c29bb036c5](http://192.168.0.197:1880/#)gladys/device/mqtt:lampe/feature/mqtt:lampe/state : msg.payload : string[1]

«&nbsp;0&nbsp;»

22/01/2022, 00:32:13[node: 4678ca9e7131d24c](http://192.168.0.197:1880/#)gladys/device/mqtt:lampe/feature/mqtt:lampe/state : msg.payload : string[1]

«&nbsp;0&nbsp;»

22/01/2022, 00:32:13[node: 471e3ac46dc6fb17](http://192.168.0.197:1880/#)gladys/device/mqtt:lampe/feature/mqtt:lampe/state : msg.payload : string[26]

«&nbsp;{&nbsp;»[IPX]Relay cmd 1":false}"

22/01/2022, 00:32:13[node: f14f85a92afafbeb](http://192.168.0.197:1880/#)IPX800\_V5-1 : msg.payload : string[26]

«&nbsp;{&nbsp;»[IPX]Relay cmd 1":false}"

22/01/2022, 00:34:58[node: 8f8275c29bb036c5](http://192.168.0.197:1880/#)gladys/device/mqtt:lampe/feature/mqtt:lampe/state : msg.payload : string[1]

«&nbsp;0&nbsp;»

22/01/2022, 00:34:58[node: 4678ca9e7131d24c](http://192.168.0.197:1880/#)gladys/device/mqtt:lampe/feature/mqtt:lampe/state : msg.payload : string[1]

«&nbsp;0&nbsp;»

22/01/2022, 00:34:59[node: f14f85a92afafbeb](http://192.168.0.197:1880/#)IPX800\_V5-1 : msg.payload : string[26]

«&nbsp;{&nbsp;»[IPX]Relay cmd 1":false}"

22/01/2022, 00:34:59[node: 471e3ac46dc6fb17](http://192.168.0.197:1880/#)gladys/device/mqtt:lampe/feature/mqtt:lampe/state : msg.payload : string[26]

«&nbsp;{&nbsp;»[IPX]Relay cmd 1":false}"

22/01/2022, 00:34:59[node: f14f85a92afafbeb](http://192.168.0.197:1880/#)IPX800\_V5-1 : msg.payload : string[26]

«&nbsp;{&nbsp;»[IPX]Relay cmd 1":false}"

the graphical flow

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

the JSON flow to import:

[  
{  
«&nbsp;id&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;tab&nbsp;»,  
«&nbsp;label&nbsp;»: «&nbsp;Flow 1&nbsp;»,  
«&nbsp;disabled&nbsp;»: false,  
«&nbsp;info&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;env&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;305ea00bbfebcf19&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;mqtt in&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;topic&nbsp;»: «&nbsp;gladys/device/mqtt:lampe/feature/mqtt:lampe/state&nbsp;»,  
«&nbsp;qos&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;datatype&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;broker&nbsp;»: «&nbsp;291914c5c9c68f02&nbsp;»,  
«&nbsp;nl&nbsp;»: false,  
«&nbsp;rap&nbsp;»: true,  
«&nbsp;rh&nbsp;»: 0,  
«&nbsp;inputs&nbsp;»: 0,  
«&nbsp;x&nbsp;»: 250,  
«&nbsp;y&nbsp;»: 160,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;8f8275c29bb036c5&nbsp;»,  
«&nbsp;813b7bb0cb97117d&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;8f8275c29bb036c5&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 530,  
«&nbsp;y&nbsp;»: 220,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;813b7bb0cb97117d&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;switch&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;property&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;propertyType&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;rules&nbsp;»: [  
{  
«&nbsp;t&nbsp;»: «&nbsp;eq&nbsp;»,  
«&nbsp;v&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
},  
{  
«&nbsp;t&nbsp;»: «&nbsp;eq&nbsp;»,  
«&nbsp;v&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
}  
],  
«&nbsp;checkall&nbsp;»: «&nbsp;true&nbsp;»,  
«&nbsp;repair&nbsp;»: false,  
«&nbsp;outputs&nbsp;»: 2,  
«&nbsp;x&nbsp;»: 570,  
«&nbsp;y&nbsp;»: 160,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;4678ca9e7131d24c&nbsp;»,  
«&nbsp;ab804a690e9c0df6&nbsp;»  
],  
[  
«&nbsp;6b92e7dfca6a6f56&nbsp;»,  
«&nbsp;196ae944ec3423d2&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;8f7e7262bc6bf978&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;mqtt out&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;IPX800\_V5-1&nbsp;»,  
«&nbsp;topic&nbsp;»: «&nbsp;IPX800\_V5-1&nbsp;»,  
«&nbsp;qos&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;retain&nbsp;»: «&nbsp;true&nbsp;»,  
«&nbsp;respTopic&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;contentType&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;userProps&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;correl&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;expiry&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;broker&nbsp;»: «&nbsp;291914c5c9c68f02&nbsp;»,  
«&nbsp;x&nbsp;»: 1270,  
«&nbsp;y&nbsp;»: 160,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;4678ca9e7131d24c&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 750,  
«&nbsp;y&nbsp;»: 100,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;6b92e7dfca6a6f56&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 750,  
«&nbsp;y&nbsp;»: 220,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;ab804a690e9c0df6&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;rules&nbsp;»: [  
{  
«&nbsp;t&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;pt&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;fromt&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;{"[IPX]Relay cmd 1":false}&nbsp;»,  
«&nbsp;tot&nbsp;»: «&nbsp;str&nbsp;»  
}  
],  
«&nbsp;action&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;property&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;reg&nbsp;»: false,  
«&nbsp;x&nbsp;»: 780,  
«&nbsp;y&nbsp;»: 140,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;8f7e7262bc6bf978&nbsp;»,  
«&nbsp;471e3ac46dc6fb17&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;196ae944ec3423d2&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;rules&nbsp;»: [  
{  
«&nbsp;t&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;pt&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;fromt&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;{"[IPX]Relay cmd 1":true}&nbsp;»,  
«&nbsp;tot&nbsp;»: «&nbsp;json&nbsp;»  
}  
],  
«&nbsp;action&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;property&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;reg&nbsp;»: false,  
«&nbsp;x&nbsp;»: 780,  
«&nbsp;y&nbsp;»: 180,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;8f7e7262bc6bf978&nbsp;»,  
«&nbsp;5733ce634bba7c5e&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;471e3ac46dc6fb17&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 1010,  
«&nbsp;y&nbsp;»: 120,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;5733ce634bba7c5e&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 1010,  
«&nbsp;y&nbsp;»: 220,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;4c607c3838172c89&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;function&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;Display Relay State&nbsp;»,  
«&nbsp;func&nbsp;»: «&nbsp;var msg1,msg2,msg3,msg4,msg5,msg6,msg7,msg8;\n\nswitch (msg.payload) {\n case "{\"[IPX]Relay state 1\":true}":\n msg1 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 1\":false}":\n msg1 = {payload:"off" };\n break;\n case "{\"[IPX]Relay state 2\":true}":\n msg2 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 2\":false}":\n msg2 = {payload:"off" };\n break; \n case "{\"[IPX]Relay state 3\":true}":\n msg3 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 3\":false}":\n msg3 = {payload:"off" };\n break; \n case "{\"[IPX]Relay state 4\":true}":\n msg4 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 4\":false}":\n msg4 = {payload:"off" };\n break;\n case "{\"[IPX]Relay state 5\":true}":\n msg5 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 5\":false}":\n msg5 = {payload:"off" };\n break;\n case "{\"[IPX]Relay state 6\":true}":\n msg6 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 6\":false}":\n msg6 = {payload:"off" };\n break;\n case "{\"[IPX]Relay state 7\":true}":\n msg7 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 7\":false}":\n msg7 = {payload:"off" };\n break;\n case "{\"[IPX]Relay state 8\":true}":\n msg8 = {payload:"on" };\n break;\n case "{\"[IPX]Relay state 8\":false}":\n msg8 = {payload:"off" };\n break;\n default:\n break;\n}\n\nreturn[msg1,msg2,msg3,msg4,msg5,msg6,msg7,msg8];\n&nbsp;»,  
«&nbsp;outputs&nbsp;»: 8,  
«&nbsp;noerr&nbsp;»: 0,  
«&nbsp;initialize&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;finalize&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;libs&nbsp;»: ,  
«&nbsp;x&nbsp;»: 350,  
«&nbsp;y&nbsp;»: 520,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;7a2c02eed1eff9ac&nbsp;»,  
«&nbsp;0449882499c60013&nbsp;»,  
«&nbsp;cf703754e8389474&nbsp;»  
],  
[  
«&nbsp;39798a670d4370ce&nbsp;»  
],  
[  
«&nbsp;6d3908d16e32d7f9&nbsp;»  
],  
[  
«&nbsp;91f0b8e3a8eb8406&nbsp;»  
],  
[  
«&nbsp;f71432e31830af17&nbsp;»  
],  
[  
«&nbsp;6ffa92a11ae4e5e3&nbsp;»  
],  
[  
«&nbsp;cd738b08572ab6f2&nbsp;»  
],  
[  
«&nbsp;48a9f0c127ea6c0c&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;dad62c88489febcb&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;mqtt in&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;IPX800\_V5-1&nbsp;»,  
«&nbsp;topic&nbsp;»: «&nbsp;IPX800\_V5-1&nbsp;»,  
«&nbsp;qos&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;datatype&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;broker&nbsp;»: «&nbsp;291914c5c9c68f02&nbsp;»,  
«&nbsp;nl&nbsp;»: false,  
«&nbsp;rap&nbsp;»: true,  
«&nbsp;rh&nbsp;»: 0,  
«&nbsp;inputs&nbsp;»: 0,  
«&nbsp;x&nbsp;»: 130,  
«&nbsp;y&nbsp;»: 520,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;4c607c3838172c89&nbsp;»,  
«&nbsp;f14f85a92afafbeb&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;f14f85a92afafbeb&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;targetType&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 330,  
«&nbsp;y&nbsp;»: 620,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;7a2c02eed1eff9ac&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 4,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 1 Status",  
«&nbsp;label&nbsp;»: " Relay 1 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 580,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r1&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;39798a670d4370ce&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 7,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 2 Status",  
«&nbsp;label&nbsp;»: " Relay 2 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 660,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r2&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;6d3908d16e32d7f9&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 10,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 3 Status",  
«&nbsp;label&nbsp;»: " Relay 3 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 700,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r3&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;91f0b8e3a8eb8406&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 13,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 4 Status",  
«&nbsp;label&nbsp;»: " Relay 4 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 740,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r4&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;f71432e31830af17&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 16,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 5 Status",  
«&nbsp;label&nbsp;»: " Relay 5 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 780,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r5&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;6ffa92a11ae4e5e3&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 19,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 6 Status",  
«&nbsp;label&nbsp;»: " Relay 6 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 820,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r6&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;cd738b08572ab6f2&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 22,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 7 Status",  
«&nbsp;label&nbsp;»: " Relay 7 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 860,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r7&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;48a9f0c127ea6c0c&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_text&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;group&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;order&nbsp;»: 25,  
«&nbsp;width&nbsp;»: 6,  
«&nbsp;height&nbsp;»: 1,  
«&nbsp;name&nbsp;»: " Relay 8 Status",  
«&nbsp;label&nbsp;»: " Relay 8 Status",  
«&nbsp;format&nbsp;»: «&nbsp;{{msg.payload}}&nbsp;»,  
«&nbsp;layout&nbsp;»: «&nbsp;row-spread&nbsp;»,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;x&nbsp;»: 690,  
«&nbsp;y&nbsp;»: 900,  
«&nbsp;wires&nbsp;»: ,  
«&nbsp;inputLabels&nbsp;»: [  
«&nbsp;r8&nbsp;»  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;e48f93c4daf91058&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;inject&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: "[IPX]Relay cmd 1 = true ",  
«&nbsp;props&nbsp;»: [  
{  
«&nbsp;p&nbsp;»: «&nbsp;topic&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
},  
{  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»  
}  
],  
«&nbsp;repeat&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;crontab&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;once&nbsp;»: false,  
«&nbsp;onceDelay&nbsp;»: 0.1,  
«&nbsp;topic&nbsp;»: «&nbsp;IPX800\_V5-1&nbsp;»,  
«&nbsp;payload&nbsp;»: «&nbsp;{"[IPX]Relay cmd 1":true}&nbsp;»,  
«&nbsp;payloadType&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;x&nbsp;»: 1060,  
«&nbsp;y&nbsp;»: 80,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;8f7e7262bc6bf978&nbsp;»,  
«&nbsp;18f06c897243f285&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;5c014f61c640a7be&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;inject&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;[IPX]Relay cmd 1 = false&nbsp;»,  
«&nbsp;props&nbsp;»: [  
{  
«&nbsp;p&nbsp;»: «&nbsp;topic&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
},  
{  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»  
}  
],  
«&nbsp;repeat&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;crontab&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;once&nbsp;»: false,  
«&nbsp;onceDelay&nbsp;»: 0.1,  
«&nbsp;topic&nbsp;»: «&nbsp;IPX800\_V5-1&nbsp;»,  
«&nbsp;payload&nbsp;»: «&nbsp;{"[IPX]Relay cmd 1":false}&nbsp;»,  
«&nbsp;payloadType&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;x&nbsp;»: 1070,  
«&nbsp;y&nbsp;»: 260,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;8f7e7262bc6bf978&nbsp;»,  
«&nbsp;824df8aab3cb60a6&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;824df8aab3cb60a6&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 1290,  
«&nbsp;y&nbsp;»: 260,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;18f06c897243f285&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 1270,  
«&nbsp;y&nbsp;»: 80,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;f7ebc07a077abf6c&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;mqtt out&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;gladys&nbsp;»,  
«&nbsp;topic&nbsp;»: «&nbsp;gladys/device/mqtt:lampe/feature/mqtt:lampe/state&nbsp;»,  
«&nbsp;qos&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;retain&nbsp;»: «&nbsp;true&nbsp;»,  
«&nbsp;respTopic&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;contentType&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;userProps&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;correl&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;expiry&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;broker&nbsp;»: «&nbsp;291914c5c9c68f02&nbsp;»,  
«&nbsp;x&nbsp;»: 1430,  
«&nbsp;y&nbsp;»: 520,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;0449882499c60013&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;switch&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;property&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;propertyType&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;rules&nbsp;»: [  
{  
«&nbsp;t&nbsp;»: «&nbsp;eq&nbsp;»,  
«&nbsp;v&nbsp;»: «&nbsp;on&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
},  
{  
«&nbsp;t&nbsp;»: «&nbsp;eq&nbsp;»,  
«&nbsp;v&nbsp;»: «&nbsp;off&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
}  
],  
«&nbsp;checkall&nbsp;»: «&nbsp;true&nbsp;»,  
«&nbsp;repair&nbsp;»: false,  
«&nbsp;outputs&nbsp;»: 2,  
«&nbsp;x&nbsp;»: 810,  
«&nbsp;y&nbsp;»: 520,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;2ff286aacb794830&nbsp;»,  
«&nbsp;eeeb4703a6ae4e8d&nbsp;»  
],  
[  
«&nbsp;26611eefe03f44f0&nbsp;»,  
«&nbsp;89b610539bda7d0d&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;2ff286aacb794830&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;rules&nbsp;»: [  
{  
«&nbsp;t&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;pt&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;on&nbsp;»,  
«&nbsp;fromt&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;tot&nbsp;»: «&nbsp;num&nbsp;»  
}  
],  
«&nbsp;action&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;property&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;reg&nbsp;»: false,  
«&nbsp;x&nbsp;»: 1020,  
«&nbsp;y&nbsp;»: 500,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;f7ebc07a077abf6c&nbsp;»,  
«&nbsp;8d19143d84685d18&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;26611eefe03f44f0&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;rules&nbsp;»: [  
{  
«&nbsp;t&nbsp;»: «&nbsp;change&nbsp;»,  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»,  
«&nbsp;pt&nbsp;»: «&nbsp;msg&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;off&nbsp;»,  
«&nbsp;fromt&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;tot&nbsp;»: «&nbsp;num&nbsp;»  
}  
],  
«&nbsp;action&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;property&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;from&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;to&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;reg&nbsp;»: false,  
«&nbsp;x&nbsp;»: 1020,  
«&nbsp;y&nbsp;»: 540,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;f7ebc07a077abf6c&nbsp;»,  
«&nbsp;e4dc354cc2860d26&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;cf703754e8389474&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 770,  
«&nbsp;y&nbsp;»: 460,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;eeeb4703a6ae4e8d&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 990,  
«&nbsp;y&nbsp;»: 460,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;89b610539bda7d0d&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 990,  
«&nbsp;y&nbsp;»: 580,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;8d19143d84685d18&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 1230,  
«&nbsp;y&nbsp;»: 460,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;e4dc354cc2860d26&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;debug&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;active&nbsp;»: true,  
«&nbsp;tosidebar&nbsp;»: true,  
«&nbsp;console&nbsp;»: false,  
«&nbsp;tostatus&nbsp;»: false,  
«&nbsp;complete&nbsp;»: «&nbsp;false&nbsp;»,  
«&nbsp;statusVal&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;statusType&nbsp;»: «&nbsp;auto&nbsp;»,  
«&nbsp;x&nbsp;»: 1230,  
«&nbsp;y&nbsp;»: 580,  
«&nbsp;wires&nbsp;»:   
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;ce0b75e88aa679cc&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;inject&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;gladys/device/mqtt:lampe/feature/mqtt:lampe/state&nbsp;»,  
«&nbsp;props&nbsp;»: [  
{  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»  
},  
{  
«&nbsp;p&nbsp;»: «&nbsp;topic&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
}  
],  
«&nbsp;repeat&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;crontab&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;once&nbsp;»: false,  
«&nbsp;onceDelay&nbsp;»: 0.1,  
«&nbsp;topic&nbsp;»: «&nbsp;gladys/device/mqtt:lampe/feature/mqtt:lampe/state&nbsp;»,  
«&nbsp;payload&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;payloadType&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;x&nbsp;»: 1150,  
«&nbsp;y&nbsp;»: 640,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;f7ebc07a077abf6c&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;19eb9b651728d044&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;inject&nbsp;»,  
«&nbsp;z&nbsp;»: «&nbsp;bd5facfbf1ab26d3&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;gladys/device/mqtt:lampe/feature/mqtt:lampe/state&nbsp;»,  
«&nbsp;props&nbsp;»: [  
{  
«&nbsp;p&nbsp;»: «&nbsp;topic&nbsp;»,  
«&nbsp;vt&nbsp;»: «&nbsp;str&nbsp;»  
},  
{  
«&nbsp;p&nbsp;»: «&nbsp;payload&nbsp;»  
}  
],  
«&nbsp;repeat&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;crontab&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;once&nbsp;»: false,  
«&nbsp;onceDelay&nbsp;»: 0.1,  
«&nbsp;topic&nbsp;»: «&nbsp;gladys/device/mqtt:lampe/feature/mqtt:lampe/state&nbsp;»,  
«&nbsp;payload&nbsp;»: «&nbsp;1&nbsp;»,  
«&nbsp;payloadType&nbsp;»: «&nbsp;str&nbsp;»,  
«&nbsp;x&nbsp;»: 1130,  
«&nbsp;y&nbsp;»: 400,  
«&nbsp;wires&nbsp;»: [  
[  
«&nbsp;f7ebc07a077abf6c&nbsp;»  
]  
]  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;291914c5c9c68f02&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;mqtt-broker&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;mqtt://localhost&nbsp;»,  
«&nbsp;broker&nbsp;»: «&nbsp;mqtt://localhost&nbsp;»,  
«&nbsp;port&nbsp;»: «&nbsp;1883&nbsp;»,  
«&nbsp;clientid&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;autoConnect&nbsp;»: true,  
«&nbsp;usetls&nbsp;»: false,  
«&nbsp;protocolVersion&nbsp;»: «&nbsp;4&nbsp;»,  
«&nbsp;keepalive&nbsp;»: «&nbsp;60&nbsp;»,  
«&nbsp;cleansession&nbsp;»: true,  
«&nbsp;birthTopic&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;birthQos&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;birthPayload&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;birthMsg&nbsp;»: {},  
«&nbsp;closeTopic&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;closeQos&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;closePayload&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;closeMsg&nbsp;»: {},  
«&nbsp;willTopic&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;willQos&nbsp;»: «&nbsp;0&nbsp;»,  
«&nbsp;willPayload&nbsp;»: «&nbsp;&nbsp;»,  
«&nbsp;willMsg&nbsp;»: {},  
«&nbsp;sessionExpiry&nbsp;»: «&nbsp;&nbsp;»  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;df9ed293.78c83&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_group&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;Relais&nbsp;»,  
«&nbsp;tab&nbsp;»: «&nbsp;4414d280.f20c4c&nbsp;»,  
«&nbsp;order&nbsp;»: 1,  
«&nbsp;disp&nbsp;»: true,  
«&nbsp;width&nbsp;»: «&nbsp;12&nbsp;»,  
«&nbsp;collapse&nbsp;»: true,  
«&nbsp;className&nbsp;»: «&nbsp;&nbsp;»  
},  
{  
«&nbsp;id&nbsp;»: «&nbsp;4414d280.f20c4c&nbsp;»,  
«&nbsp;type&nbsp;»: «&nbsp;ui\_tab&nbsp;»,  
«&nbsp;name&nbsp;»: «&nbsp;IPX800\_V5 Dashboard&nbsp;»,  
«&nbsp;icon&nbsp;»: «&nbsp;dashboard&nbsp;»,  
«&nbsp;disabled&nbsp;»: false,  
«&nbsp;hidden&nbsp;»: false  
}  
]

Did I miss something?

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 23, 2022, 1:00am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/8 "2022-01-23T01:00:45Z")

</div>

Hello @pierre-gilles,  
Actually, I think the issue with MQTT in this case is due to the lack of ability to set an element to subscribe only or publish only and not being able to link elements together.  
For example, in Gladys I declare a switch, I want this switch to be linked to the relay of my IPX. This works if I click on the switch in Gladys, the relay is activated. However, if the relay is deactivated by another control, I don’t get the relay status back to the switch in the Gladys dashboard!

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [January 23, 2022, 9:08am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/9 "2022-01-23T09:08:08Z")

</div>

Hello,  
This is because Gladys’s listening topic is different.  
You need to send the device state to the topic that Gladys offers when you check the box ‹&nbsp;Yes, this sensor only sends data…&nbsp;›

 ![Screenshot_20220123_100524_com.android.chrome](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/aea80d9a2092a106ddc3fba3c246f345544ac7b9.jpeg)  
You check, copy the topic, and then uncheck (or do not save the changes).

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 23, 2022, 11:22am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/10 "2022-01-23T11:22:04Z")

</div>

Yes, but we are moving from a Publish to an All (Publish/Subscribe) system, whereas in fact we would need:

- In Gladys, a Publish «&nbsp;sends Gladys switch status to the outside&nbsp;» and the relay subscribed by Subscribe to this topic switches its state according to the value of this Publish
- In Gladys, a Subscribe to the relay’s Publish that will switch the switch in Gladys and thus indicate that the relay has changed its state  
So here in the IPX800 there is a Publish topic that sends the relay status and a Subscribe topic that switches the relay according to the order sent by Gladys’ Publish  
And I don’t see how to achieve this functionality in Gladys as things stand!!!

---

<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:** [January 24, 2022, 12:12pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/11 "2022-01-24T12:12:35Z")

</div>

I confirm what @GBoulvin said, you can use MQTT topics in both directions, even if the device is not a sensor.

The Gladys MQTT API is described here:

> **[MQTT API | Gladys Assistant](https://gladysassistant.com/fr/docs/api/mqtt-api/)**
>
> Si vous avez configuré un broker MQTT avec Gladys, vous pouvez communiquer avec Gladys via MQTT.

And it works in both directions

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [January 24, 2022, 5:53pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/12 "2022-01-24T17:53:57Z")

</div>

Good evening everyone  
With Node Red and RFlink, I have no status feedback in the dashboard when I use my remote control to operate my 433MHZ outlet, whereas from the dashboard, when I operate this outlet it obviously works since I click on it. Are we dealing with the same issue as [cce66](https://community.gladysassistant.com/u/cce66)?

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 24, 2022, 6:02pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/13 "2022-01-24T18:02:32Z")

</div>

Yes, but I don’t see how the distinction is made if it’s the same topic for both subscribe and publish and there is no loopback.

Example here with the switch, what is the subscribe and what is the publish? If it’s the same value, I think that’s a problem!

`gladys/device/mqtt:commutateur/feature/mqtt:commutateur/state`

---

<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:** [January 24, 2022, 6:29pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/14 "2022-01-24T18:29:53Z")

</div>

The topic for publishing a new value from outside Gladys to Gladys:

```auto

```

The topic to subscribe to in order to receive state changes from outside Gladys:

```auto

```

If you look closely at the topic name, there is always the prefix «&nbsp;gladys&nbsp;» to avoid interference with other systems, and then the recipient of the message is always first:

 ![Screenshot 2022-01-24 at 19.25.40](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/cb4e2af8b93af0be99740e1f5ab64ec548dbae26.png)  
 ![Screenshot 2022-01-24 at 19.25.33](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/be5511cab652aa15e6db671bb8fe2ed49798c8c4.png)

- «&nbsp;device&nbsp;» → the recipient is the device to control
- «&nbsp;master&nbsp;» → the recipient is the Gladys master instance

I think something must be poorly explained somewhere because many people do not understand how it works, whereas for me it’s as clear as crystal 😂

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 24, 2022, 6:57pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/15 "2022-01-24T18:57:34Z")

</div>

> [@pierre-gilles](#):
>
> I think there must be something explained wrong somewhere because many people don’t understand how it works, whereas for me it’s as clear as day

The problem is understanding how it’s phrased! 🤪

> [@pierre-gilles](#):
>
> - “device” → recipient is the device to control
> - “master” → recipient is the gladys master instance

So, in fact, «&nbsp;device&nbsp;» is «&nbsp;publish&nbsp;» and «&nbsp;master&nbsp;» is «&nbsp;subscribe,&nbsp;» right? 🤔 It might be more understandable to call them «&nbsp;Publish&nbsp;» and «&nbsp;Subscribe&nbsp;» in this case, so we can better understand the role and it’s closer to how MQTT works.  
But maybe I still don’t understand how it works!!! 🤯  
I think this comes from the fact that you see gladys/mqtt as a single entity, and we no longer see the client/broker/client functionality, where the client is the publisher/provider of data and/or subscriber to a data, and the broker is just the transmitter of data.

---

<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:** [January 24, 2022, 6:59pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/16 "2022-01-24T18:59:37Z")

</div>

> [@cce66](#):
>
> So in fact, device is «&nbsp;publish&nbsp;» and «&nbsp;master&nbsp;» is «&nbsp;subscribe&nbsp;», is that correct? 🤔

There isn’t really a meaning…

It all depends on which side you’re talking about. As you said, Gladys and your device can be both a publisher and a subscriber.

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 24, 2022, 7:17pm UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/17 "2022-01-24T19:17:14Z")

</div>

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c1d9bde5cc5c17cc391c87cd2550dadf13dd6e41.png)  
So it’s a publish, the sensor only sends data and the topic is  
`gladys/master/device/mqtt:commutateur/feature/mqtt:commutateur/state`  
An external object, if it wants to receive data from this object, must subscribe to the topic  
«&nbsp;gladys/master/device/mqtt:commutateur/feature/mqtt:commutateur/state&nbsp;»

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/b96f45466641513f7522c3613cae0214ae7b547b.png)  
`gladys/device/mqtt:commutateur/feature/mqtt:commutateur/state`  
An external object, if it wants to receive data from this object, must subscribe to the topic  
«&nbsp;gladys/master/device/mqtt:commutateur/feature/mqtt:commutateur/state&nbsp;»  
but  
if it wants to send data to it, it must send it to the topic:  
«&nbsp;gladys/device/mqtt:commutateur/feature/mqtt:commutateur/state&nbsp;»

If that’s the case, I confirm it’s capillarotracté! 🤪 🧨

---

<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:** [January 25, 2022, 9:12am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/18 "2022-01-25T09:12:15Z")

</div>

It’s the opposite of what you say 🙂 (or else the copy-paste is in the wrong direction

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 25, 2022, 10:08am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/19 "2022-01-25T10:08:21Z")

</div>

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/5e0a87a851cd335766a3b0f869f79d8e3d278672.png)  
Oh, that doesn’t make sense to me, we validate IF the sensor only sends data!  
So here, the MQTT is «&nbsp;gladys/device&nbsp;» when it receives AND sends and «&nbsp;gladys/master&nbsp;» when it only sends!  
Also, isn’t it possible to have boolean values for the min/max values?

---

<div class="post-metadata">

**Author:** ![Shiftmaj](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@Shiftmaj](https://community.gladysassistant.com/u/Shiftmaj)\
**Post date:** [January 25, 2022, 11:31am UTC](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784/20 "2022-01-25T11:31:36Z")

</div>

Here, we consider Gladys’ perspective. Either she **sends** a command to a device, or she **receives** one. In the first case, **Gladys** publishes it on Gladys/device (intended for the device). In the second case, it’s the **device** that publishes on Gladys/master (intended for Gladys this time), for example, to report a status.

It’s important to understand that these two «&nbsp;addresses&nbsp;» are functional (each with their role described above) regardless of the position of the «&nbsp;Is it a sensor?&nbsp;» switch.

This switch is only there to try to facilitate the integration of sensors or actuators. Most devices do one or the other.

In your case, with a device that does both (control + status feedback), you need both of the aforementioned «&nbsp;addresses&nbsp;». The position of the switch on this page will not change the operation of the two addresses; it’s just a visual element.

[Next page](https://community.gladysassistant.com/t/piloter-ipx800-v5-dans-gladys/6784.md?page=2)
