Skip to content

6. Add sensor to Homey

Joolee edited this page Jun 30, 2020 · 7 revisions

Introduction

I will not go into how to connect real sensors to your ESP Easy unit. You can read about that on the ESP Easy Wiki or visit their forums. If you don't have any devices connected yet, you can create a "Generic - Dummy Device".

Step-by-step

Create or configure your device

  • Browse to the "Devices" tab of your ESP unit
  • Click "Edit" or "Add" to either modify or create a new device
  • If you're creating a dummy device, select device type "Generic - Dummy Device" from the dropdown box
  • Give your device a name and check the "Enabled" box
  • Check the box for "Send to controller" next to the Homey controller under "Data Acquisition"
  • Set the IDX value of the device to some unique value other than 0
    • Tip: I usually just put the device number there. Read more...
  • Click the Submit button

Add the device to Homey

  • Add a new device to Homey
  • Select "ESP Easy"
  • If you added a dummy device in the previous section, select "Switch Input"
  • Your device should now show up in the list
    • If it doesn't , make sure your device type is supported and your controller is known to Homey
    • You can request support for extra device types by making a new issue in which you post the output of your /json page and a crash report ID which you can generate on the app settings page
  • Select the device and click Next
  • At this point, the wizard will warn you if you have configured something incorrectly
  • The wizard may ask some extra settings:
    • If you have more then one controller, it will show a dropdown list where you can select the controller that is Homey
    • Some device types ask you which Homey device capability you want to attach to the device
  • Make your choices and click "Next" to add the device

Result

What's next?

  • You can change the value of a dummy device by going to the "Tools" tab and entering the command TaskValueSet 2,1,1
    • Here, the "2" corresponds to the device number (for me, it is 2 as you see in the screenshot above) and the last "1" is the value you want to set
    • For "Input switch" devices, valid values are -1, 0 and 1. All other values will be seen as 0.