# \[Homeyduino\] E-paper for Homey

**URL:** <https://community.homey.app/t/homeyduino-e-paper-for-homey/74640>\
**Category:** Devices\
**Created:** [January 5, 2023, 3:37pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640 "2023-01-05T15:37:04Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 20, 2023, 4:10pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/83 "2023-01-20T16:10:02Z")

</div>

indeed, I see now. let me also check that part. maybe original device had less fields and it fits at that time.

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 20, 2023, 4:30pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/84 "2023-01-20T16:30:04Z")

</div>

> [@Edwin\_Biemond](#):
>
> GitHub - athombv/com.athom.homeyduino: Homeyduino is an Homey app which allows you to easily connect your own Arduino projects to homey

found it [https://github.com/PeterEIER/com.athom.homeyduinoSDK3/blob/master/node\_modules/homey-arduino/lib/ArduinoDiscovery.js#L136](https://github.com/PeterEIER/com.athom.homeyduinoSDK3/blob/master/node_modules/homey-arduino/lib/ArduinoDiscovery.js#L136)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 20, 2023, 4:39pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/85 "2023-01-20T16:39:06Z")

</div>

Yes, it should wait until it can fully parse the data before it continues processing it.

---

<div class="post-metadata">

**Author:** ![Homey\_Lampje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_lampje/32/10392_2.png) [@Homey\_Lampje](https://community.homey.app/u/Homey_Lampje)\
**Post date:** [January 20, 2023, 5:32pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/86 "2023-01-20T17:32:27Z")

</div>

Version 1.2.3? Had the same downgraded to 1.2.2 problem solved.

---

<div class="post-metadata">

**Author:** ![Homey\_Lampje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_lampje/32/10392_2.png) [@Homey\_Lampje](https://community.homey.app/u/Homey_Lampje)\
**Post date:** [January 20, 2023, 5:34pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/87 "2023-01-20T17:34:43Z")

</div>

another ‘google search’ champion 😜

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 20, 2023, 6:04pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/88 "2023-01-20T18:04:33Z")

</div>

yes, I guess you have less data or caps on 1.22 so smaller packet size and fits in 1. we need to fix this else we are limited in any future development.

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 20, 2023, 6:05pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/89 "2023-01-20T18:05:45Z")

</div>

more github , you can see who forked the athom one. total 5

---

<div class="post-metadata">

**Author:** ![Homey\_Lampje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_lampje/32/10392_2.png) [@Homey\_Lampje](https://community.homey.app/u/Homey_Lampje)\
**Post date:** [January 20, 2023, 6:09pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/90 "2023-01-20T18:09:38Z")

</div>

> [@Edwin\_Biemond](#):
>
> we need to fix this else we are limited in any future development.

Current functionality is fine for me, and as such I couldn’t care less about this bug 😉

---

<div class="post-metadata">

**Author:** ![Homey\_Lampje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_lampje/32/10392_2.png) [@Homey\_Lampje](https://community.homey.app/u/Homey_Lampje)\
**Post date:** [January 20, 2023, 6:16pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/91 "2023-01-20T18:16:28Z")

</div>

> [@Edwin\_Biemond](#):
>
> more github , you can see who forked the athom one. total 5

Yes, years ago… Athom confirmed that they will update Homeyduino, so no need any more for forking / pull requests.

It is time for a separate “[**APP] [PRO] Homeyduino**” topic, we are polluting the e-paper topic imho.

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 20, 2023, 9:11pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/92 "2023-01-20T21:11:15Z")

</div>

quick fix. At least we can add more stuff now else we are restricted, hit our limit on our E-paper and we need to try to stay under 1460 bytes as UDP packet.

on esp32, libraries/WiFi/src/WiFiUdp.cpp  
UDP MTU is set to 1500  
WiFiUdp is 1460 → this is the size I see on 1st packet , 2nd = 160.

UDP has no built in ordering, and UDP packets cannot be guaranteed to be properly reconstructed if fragmented. There is a protocol called TCP that provides exactly what you want!

So did this for now on

> <https://github.com/PeterEIER/com.athom.homeyduinoSDK3/blob/master/node_modules/homey-arduino/lib/ArduinoDiscovery.js#L136>

do tcp when udp json parsing goes wrong.

```auto
	poll(ip, callback) {
		this._debug("Polling device "+ip+" over TCP...");
		let host = {"address":ip, "port":46639};
		request.get('http://'+ip+':'+46639+'/', {timeout: 5000}, (err, response, body) => {
			if (err) console.log("poll rq err",err);
			if (err) return callback(err, null);
			this._onServerMessage( body, host, function (err, res) {
				if (err) console.log("poll osm err",err);
				if (err) return callback(err, null);
				if (err) console.log("poll rq ok",res);
				return callback(null, res);
			});
		});
	}

	_onServerMessage( message, host, callback ) {
		if (typeof callback == 'undefined') callback = function(){};

		message = message.toString();
		// console.log("msg: " + message);

		var opts = null;

		try {
			opts = JSON.parse(message);
		} catch(e) {
            console.log("error parsing");

			return this.poll(host.address, callback); 
			// this._debug("Received corrupt data from "+host.address+", ignoring packet.");
			// this._debug("DUMP:",message);
			// return callback("Received corrupt data!", null);
		}
        console.log("done, got json data");
		opts.address = host.address;
		opts.port = host.port;

```

final fix is we need a buffer or queue until we have a good json.

---

<div class="post-metadata">

**Author:** ![Homey\_Lampje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_lampje/32/10392_2.png) [@Homey\_Lampje](https://community.homey.app/u/Homey_Lampje)\
**Post date:** [January 20, 2023, 9:40pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/93 "2023-01-20T21:40:43Z")

</div>

Let’s hope Athom reads this thread… likely not… raise a PR on their Homeyduino Github.

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 20, 2023, 9:49pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/94 "2023-01-20T21:49:24Z")

</div>

probably never, I think there is now a new policy that you can have the same app twice, with a different name off course.

thanks for converting the app to sdk v3, this is my last change about the app in this channel.

but if you want to change your device settings like enable polling or change ip without doing your flows again, you have to do this on your device.

 ![Screen Shot 2023-01-20 at 22.45.20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9cb80830e5eeebcd97339fc37b9e1e40165dd713.png)

---

<div class="post-metadata">

**Author:** ![Homey\_Lampje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_lampje/32/10392_2.png) [@Homey\_Lampje](https://community.homey.app/u/Homey_Lampje)\
**Post date:** [January 20, 2023, 9:59pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/95 "2023-01-20T21:59:52Z")

</div>

Raise a PR with Athom to make them aware.

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 21, 2023, 7:11pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/96 "2023-01-21T19:11:59Z")

</div>

Yes, my E-paper display is operational. Wasn’t hard to do.  
Most time was taken by the fact I had to reanimate an old windows laptop, because my Mac also couldn’t update the ESP32 because of the ESPTOOL.PY bug. 😏

@sebyldino is it possible to set font size (or to make that possible)? Especially of the value’s in the zone’s. I would like to be able to read the display without reading glases 🥸…

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 22, 2023, 10:53am UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/97 "2023-01-22T10:53:19Z")

</div>

I managed to upload on iMac. (M1 V13.1).  
Lowered the upload speed to 115200 according to this: [esp tool fails with exception on Mac M1 (ESPTOOL-563) · Issue #806 · espressif/esptool · GitHub](https://github.com/espressif/esptool/issues/806)  
Now ESPTOOL.PY error message is gone 🙂

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 23, 2023, 2:37pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/98 "2023-01-23T14:37:47Z")

</div>

@sebyldino Hey, I got some weird text value issue. I want to push “0 W” as text after some “X w” value but if I do that, the value is not updated on the device. if X is a different number it is updated and I see it on the e-paper but if value is back to 0 W it is not and stays on latest X value.

it looks like with #somecap and its value as 0 is ignored. I check the homey app but cannot see anything wrong with that.

thanks Edwin

---

<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 23, 2023, 3:29pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/99 "2023-01-23T15:29:03Z")

</div>

Good idea, I’m going to do that

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 23, 2023, 4:30pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/100 "2023-01-23T16:30:13Z")

</div>

After a few days playing around and trying to find my “update flow” for the e-paper I’m running into some issues.

Somehow I cannot get the connection from Homeyduino e-paper to homey working.  
Sometimes when not sending updates frequently enough, I get error message “Failed to connect with homey”. Also don’t get any triggers (for instance paperScreenOnline trigger when paper screen wakes up from deep sleep). This triggers only once, when I restart the homeyduino app (as suggested in the guide, so I know my network is ok).

And somehow I cannot disable deep sleep (sending value 0 doesn’t seem to work). Results in Error ESOCKETTIMEDOUT. The screen starts flashing, but after that the e-paper is still going into deep sleep.

Anyone any clues on how to debug and fix this?

---

<div class="post-metadata">

**Author:** ![Edwin\_Biemond](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_biemond/32/72686_2.png) [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Post date:** [January 23, 2023, 6:53pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/101 "2023-01-23T18:53:02Z")

</div>

which version did you use on the e-paper ( I used 1.2.3 but that 1 has issues) and you can try this as homey app [GitHub - biemond/com.athom.homeyduinoSDK3: Homeyduino is an Homey app which allows you to easily connect your own Arduino projects to homey](https://github.com/biemond/com.athom.homeyduinoSDK3) also had connection issues plus with homey app run you can see more.

Also I made 2 flows , 1 for static like label and icons (1 off). 1 for values  
I use no batt, disable paperScreenOnline and do every minuted trigger with a flow with only values

Maybe push new version to e paper device and don’t do keep the settings.

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [January 23, 2023, 7:02pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/102 "2023-01-23T19:02:07Z")

</div>

> [@Edwin\_Biemond](#):
>
> which version did you use on the e-paper ( I used 1.2.3 but that 1 has issues)

Using version 1.2.3, so, back to 1.2.2 I suppose.

> [@Edwin\_Biemond](#):
>
> and you can try this as homey app [GitHub - biemond/com.athom.homeyduinoSDK3: Homeyduino is an Homey app which allows you to easily connect your own Arduino projects to homey](https://github.com/biemond/com.athom.homeyduinoSDK3) also had connection issues plus with homey app run you can see more.

Good idea, will look into how to install this.

> [@Edwin\_Biemond](#):
>
> Also I made 2 flows , 1 for static like label and icons (1 off). 1 for values  
> I use no batt, disable paperScreenOnline and do every minuted trigger with a flow with only values

I wanted to use powerbank, but if it’s not working I’ll go this path also.

> [@Edwin\_Biemond](#):
>
> Maybe push new version to e paper device and don’t do keep the settings

Yes, I was considering that also.

Thanks for these suggestions, will try them tomorrow. 😀

[Previous page](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640.md?page=4)

[Next page](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640.md?page=6)
