Skip to content

What is the IDX setting?

Joolee edited this page Aug 5, 2020 · 10 revisions

What is a controller in ESP Easy?

ESP Easy simply collects information about directly connected sensors. To actually use that information in your Domotica set-up, ESP Easy needs to know where to send the information. For this it uses controllers. You can configure up to 3 controllers from within the webinterface of ESP Easy and to use this app you need to configure Homey as one of those.

Controller spot ❶ is a bit special (it's the only spot that supports MQTT type controllers) and Homey does not need that. Therefore I recommend to configure Homey as controller ❷ or ❸. It is not possible to change the controller number without re-configuring all the devices and flows in Homey connected to that unit!

Configuring a controller is not the whole story. When you add a sensor, the configuration page lists your configured controllers with big numbers ❶, ❷ and ❸. You need to enable the sending of new sensor data to a controller by checking the "enable" box and configuring a unique IDX.

What is the IDX?

A controller needs some way to identify your sensors, it uses the IDX for that. Homey identifies your sensors by using the MAC address of the ESP unit and the IDX value you configure for the device. You can use any numeric value you feel like as the IDX (except 0*), just remember that it should be unique per controller (you can give a device the same IDX for both Domoticz and Homey) and you cannot change it afterwards. For simplicity's sake, I recommend either using the device or "task" number as IDX value or using the same value as Domoticz if you use that.

* The value "0" is a bit special, it means you haven't configured a unique number yet. Homey will give you an error when you try to add a device with IDX 0 and send you to this page 😃