# Homeyduino @ V2.0

**URL:** <https://community.homey.app/t/homeyduino-v2-0/6407>\
**Category:** Apps\
**Created:** [January 6, 2019, 6:08pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407 "2019-01-06T18:08:53Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 8, 2019, 10:04pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/21 "2019-01-08T22:04:58Z")

</div>

How do you get the ClientId in the MQTT Client settings?

I can’t get connected with the ESP

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [January 9, 2019, 4:39am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/22 "2019-01-09T04:39:01Z")

</div>

In order to set the ClientId in the MQTT Client settings you need to check the chekbox “Enable to provide a custom Client ID that is used when connectiong to the broker”. At first I set the ClientId but disabled it afterwards.

Are you having problems publishing a topic or subscribing one?

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 9, 2019, 7:23am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/23 "2019-01-09T07:23:08Z")

</div>

I have a problem with connecting, i’m using this piece what i copied from you.

//Connect MQTT  
if (!client.connected()) {  
client.setServer(mqttServer, mqttPort);  
client.setCallback(callback);  
Serial.print(“Connecting to MQTT server “); Serial.print(mqttServer);  
while (!client.connected()) {  
if (client.connect(“1234”, mqttUser, mqttPassword ))  
{  
Serial.println(”\tconnected”);  
} else {  
delay(500);  
Serial.print(".");  
}  
}  
}

And as a ClientId I have set 1234

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [January 9, 2019, 7:45am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/24 "2019-01-09T07:45:16Z")

</div>

Did you double check your configuration options for the MQTT Client in Homey?

Here is a quick checklist:

- Is the Ip address/hostname and portnumber to your Homey correct?

- Is the MQTT Broker running?

- Did you add the user to the MQTT Broker

- Double check password for typo’s

If none of these help, what is the error message you’re recieving?

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 9, 2019, 8:04am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/25 "2019-01-09T08:04:59Z")

</div>

Yes portnumber 8883 and ip 192.168.12.106 (of Homey)  
Yes is running  
Yes added the same user as you test and uno  
Yes dubble, triple and more checked

How can I see the error message?

---

<div class="post-metadata">

**Author:** ![Albert\_Dijksma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/albert_dijksma/32/3165_2.png) [@Albert\_Dijksma](https://community.homey.app/u/Albert_Dijksma)\
**Post date:** [January 9, 2019, 8:06am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/26 "2019-01-09T08:06:13Z")

</div>

[https://www.letscontrolit.com/?lang=en](https://www.letscontrolit.com/?lang=en)  
[https://www.letscontrolit.com/wiki/index.php?title=ESPEasy](https://www.letscontrolit.com/wiki/index.php?title=ESPEasy)  
you can use this with homey. mqtt or http request.

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [January 9, 2019, 8:55am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/27 "2019-01-09T08:55:13Z")

</div>

> [@Slof](#):
>
> } else {  
> delay(500);  
> Serial.print(“.”);  
> }

add to your else statement

Serial.print(client.state());

**One more important thing!**  
Since you are connecting to mqtts use WiFiClientSecure instead of EthernetClient when you are defining your PubSubClient client

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 10, 2019, 7:51pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/28 "2019-01-10T19:51:54Z")

</div>

I’m using the WiFiClientSecure allready.  
The code I 'm getting back is -2, I can’t find what that means

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [January 10, 2019, 8:44pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/29 "2019-01-10T20:44:20Z")

</div>

These are the possible values for client.state()

```
#define MQTT_CONNECTION_TIMEOUT -4
#define MQTT_CONNECTION_LOST -3
#define MQTT_CONNECT_FAILED -2
#define MQTT_DISCONNECTED -1
#define MQTT_CONNECTED 0
#define MQTT_CONNECT_BAD_PROTOCOL 1
#define MQTT_CONNECT_BAD_CLIENT_ID 2
#define MQTT_CONNECT_UNAVAILABLE 3
#define MQTT_CONNECT_BAD_CREDENTIALS 4
#define MQTT_CONNECT_UNAUTHORIZED 5
```

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 10, 2019, 9:05pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/30 "2019-01-10T21:05:23Z")

</div>

> [@Marlon](#):
>
> MQTT\_CONNECT\_FAILED

Looks like if I search the internet that they are not on the same network, but they are. Strange…….

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [January 11, 2019, 4:34am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/31 "2019-01-11T04:34:39Z")

</div>

Have you tried using port 1883, just regular mqtt without the selfsigned certificate?

---

<div class="post-metadata">

**Author:** ![Dusan\_Debeljak](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dusan_debeljak/32/9650_2.png) [@Dusan\_Debeljak](https://community.homey.app/u/Dusan_Debeljak)\
**Post date:** [January 13, 2019, 10:30am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/32 "2019-01-13T10:30:31Z")

</div>

This just sucks…why stop supporting a good thing? It is even advertised [https://blog.athom.com/homeyduino-connecting-creations-homey-easy-way](https://blog.athom.com/homeyduino-connecting-creations-homey-easy-way) ???. One of the reasons I use homey was the homeyduino integration(I believe I’m not the only one). It is always something with athom. Always some thinkering required… In the end we would be better of using open source software and rasberry PI.

I went from **free** opensource to **300€** homey just because I don’t have the time to solve problems like with opensource. As I don’t wan’t to throw 300€ away I put lots of energy into some sollution anyway and then one day something changes and you need to do it all over with some different sollution if at all possible!!!

Homey has potential but everything takes so much time… There were many promised sollutions with homey few years back and now website on trello [https://trello.com/b/aYBmd9Ru/athoms-public-timeline-for-homey](https://trello.com/b/aYBmd9Ru/athoms-public-timeline-for-homey) page doesn’t exists anymore. Why? Just to wipe the promises that were made and never realized?

Just getting frustrated with athom and the way they operate(just make promises and verry little progress). Something so essential in home control is 3-clamp power meter from aeotec and they don’t even support that. Openhab supported this aeotec 3-clamp meter 2 years ago. And aeotec is created and maintained by athom just to be clear.

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [January 13, 2019, 11:28am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/33 "2019-01-13T11:28:32Z")

</div>

TLDR? HomeyDuino is still supported…

> [@](#):
>
> I answered that this is a bit confusing, because the Homeyduino app was developed by Athom. Afterwards I got a new answer:
> 
> > What is meant with this is that we cannot give support on user-made projects with this app. If these do not work, it is often not because of the app or Homey, but because of the user’s code. I hope that you understand this decision.  
> > In this case however, there appears to be a problem with our software and developers are looking into the issue, in order to solve it with a future update.
> 
> So they will support the app also in the future. That they can not support the applications that run on Arduino is clear. But the basic API should work and should also be supported.

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [January 13, 2019, 5:36pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/34 "2019-01-13T17:36:17Z")

</div>

> [@bvdbos](#):
>
> TLDR? HomeyDuino is still supported…

ITs not really…

I mean… it doesnt work… that was highlighted to Athom through a support requests and they are moved to a release schedule in 2 days…

that saying to us… Ya we know there is an issue and we are going ahead anyway without fixing it

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [January 13, 2019, 6:05pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/35 "2019-01-13T18:05:05Z")

</div>

It’s impossible to fix everything and someone has got to pay for rent and food. I have some regressions for 1.5.13 -\> 2.0 which really bother me (telephone on/off charger for example) and I submitted a request… And that was something that was working perfectly for android-users… But you know that’s another discussion which has nothing to do with Homeyduino…

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [January 13, 2019, 6:07pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/36 "2019-01-13T18:07:01Z")

</div>

Exactly…

The OP queried whether Homeyduino is supported on v2. 0

At this time it is not because they are releasing it without support

We don’t want some one else reading this and based on your comment say… Homeyduino is supported

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 14, 2019, 9:22pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/37 "2019-01-14T21:22:02Z")

</div>

I heard from some guys that are allready running 2.0 that they don’t have any problems, so I will take the gamble as I’m not getting MQTT to work.

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [January 14, 2019, 9:22pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/38 "2019-01-14T21:22:50Z")

</div>

You might have heard me say that… Any devices added before the 2.0 upgrade work fine… You cant add new devices now

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [January 15, 2019, 6:50am UTC](https://community.homey.app/t/homeyduino-v2-0/6407/39 "2019-01-15T06:50:26Z")

</div>

Sorry about that, didn’t read that. So as long if the device is allready there it is not a problem.  
Else it is fubar….

---

<div class="post-metadata">

**Author:** ![Patric\_Weber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/patric_weber/32/15629_2.png) [@Patric\_Weber](https://community.homey.app/u/Patric_Weber)\
**Post date:** [January 16, 2019, 2:42pm UTC](https://community.homey.app/t/homeyduino-v2-0/6407/40 "2019-01-16T14:42:30Z")

</div>

Hi

Here is one more that need Homeyduino for my Nodemcu projekts…

when i try to add the device everything works like expected, it finds the device etc, but no device is added to Homey after this process…

Hope we can solve this:)

[Previous page](https://community.homey.app/t/homeyduino-v2-0/6407.md?page=1)

[Next page](https://community.homey.app/t/homeyduino-v2-0/6407.md?page=3)
