# \[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:** 4

<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 19, 2023, 2:24pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/63 "2023-01-19T14:24:34Z")

</div>

[https://www.tinytronics.nl/shop/en/development-boards/microcontroller-boards/with-wi-fi/lilygo-ttgo-t5-4.7-inch-e-paper-e-ink-esp32-v3-with-jst-ph-li-po-connector](https://www.tinytronics.nl/shop/en/development-boards/microcontroller-boards/with-wi-fi/lilygo-ttgo-t5-4.7-inch-e-paper-e-ink-esp32-v3-with-jst-ph-li-po-connector) 39 euro without shipping

---

<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 19, 2023, 2:28pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/64 "2023-01-19T14:28:43Z")

</div>

> [@spkesDE](#):
>
> Thinking about to order it from Aliexpress but then i have to pay taxes.

Is that so? At least for NL, Aliexpress collects VAT during the ordering process to prevent having to pay additional taxes and handling costs locally (up to a certain limit); [this page](https://customerservice.aliexpress.com/knowledgeDetail?spm=a2g0o.detail.1000023.12.485c6da0XkM0fI&hcAppId=1248&hcFromCode=Xn2Tk1tb7&hcSessionId=26-1248-e8cec3d9-71e1-492e-8e01-80b36d5a4923&knowledgeId=327012&categoryId=21037511#:~:text=From%201%20July%202021%2C%20AliExpress,is%20established%20outside%20the%20EU.) suggests that this is EU-wide.

---

<div class="post-metadata">

**Author:** ![Picsou621](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/picsou621/32/15357_2.png) [@Picsou621](https://community.homey.app/u/Picsou621)\
**Post date:** [January 19, 2023, 2:28pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/65 "2023-01-19T14:28:56Z")

</div>

For Switzerland, on Aliexpress, I paid € 40.00 with shipping costs and I did not have to pay taxes. I have studied several places and I always come back to Aliexpress (even if you have to wait a bit…).

---

<div class="post-metadata">

**Author:** ![spkesDE](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spkesde/32/54352_2.png) [@spkesDE](https://community.homey.app/u/spkesDE)\
**Post date:** [January 19, 2023, 2:41pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/66 "2023-01-19T14:41:10Z")

</div>

> [@robertklep](#):
>
> Is that so?

I got a lot of stuff from Aliexpress, sometimes it goes into customs and I have to pay. Germany is quite annoying with that.

Anyways I got it from tinytronics 🙂 Now I need to ask a friend to print me the case 😃

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [January 19, 2023, 4:52pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/67 "2023-01-19T16:52:56Z")

</div>

I also see there is a add on, a capacitive screen. Would this mean that way you can press the screen and activate a flow? I have a 8 button controller.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/89bc45ff319413034de763c1f8ea07c094e69839.jpeg)

It would be nice if you could make this way a 8-button controller with this screen. Some nice icons and it would be awesome.

Would this be possible?

---

<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 19, 2023, 5:14pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/68 "2023-01-19T17:14:51Z")

</div>

> [@Picsou621](#):
>
> A first advice: use a Windows PC and not a Mac, there are problems to send the code on the screen at the end. I had to start all over again on Windows (after trying on a Mac…).

I am a mac user and a user of this e-paper project, all done with / on a mac (including all 3D printing related) without any issues.

---

<div class="post-metadata">

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

</div>

> [@Edwin\_Biemond](#):
>
> any idea what are the plans for the future ?

> [@Marcel\_Ubels](#):
>
> Would this be possible?

I received the corresponding [touch screen](https://fr.aliexpress.com/item/1005002006389042.html?spm=a2g0o.detail.0.0.31ff7c52uuRXPU&gps-id=pcDetailBottomMoreThisSeller&scm=1007.13339.291025.0&scm_id=1007.13339.291025.0&scm-url=1007.13339.291025.0&pvid=571944b7-b01c-43a1-8098-49ca271e0b1e&_t=gps-id%3ApcDetailBottomMoreThisSeller%2Cscm-url%3A1007.13339.291025.0%2Cpvid%3A571944b7-b01c-43a1-8098-49ca271e0b1e%2Ctpp_buckets%3A668%232846%238109%231935&isseo=y&pdp_ext_f=%7B%22sku_id%22%3A%2212000031510523149%22%2C%22sceneId%22%3A%223339%22%7D&pdp_npi=2%40dis%21EUR%216.88%216.88%21%21%21%21%21%40211b446116741484197901739ed4c4%2112000031510523149%21rec&gatewayAdapt=glo2fra) today.  
I have a few ideas. I don’t know yet how I will integrate it with what has already been done…  
If I make something decent out of it, I’ll share it with you.  
🙂

---

<div class="post-metadata">

**Author:** ![sebyldino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sebyldino/32/20067_2.png) [@sebyldino](https://community.homey.app/u/sebyldino)\
**Post date:** [January 19, 2023, 5:22pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/70 "2023-01-19T17:22:53Z")

</div>

I have a mac too and i need to use Windows to upload the code.

And i get an error something like “esptool.py”.

---

<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 19, 2023, 5:24pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/71 "2023-01-19T17:24:25Z")

</div>

Upgrade to the latest Arduino IDE?, it solved the problem for me.

---

<div class="post-metadata">

**Author:** ![sebyldino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sebyldino/32/20067_2.png) [@sebyldino](https://community.homey.app/u/sebyldino)\
**Post date:** [January 19, 2023, 5:29pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/72 "2023-01-19T17:29:05Z")

</div>

Probably an upgrade to do. I will need to take a few time to do it.

---

<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 19, 2023, 7:37pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/73 "2023-01-19T19:37:28Z")

</div>

I did the chinese driver for serial /usb comm driver. but nothing worked on monterey 12.6.1 . windows worked for me.

Did not try m1 (v13) will check that.

used latest Arduino, did not see this py error. j

---

<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 19, 2023, 7:41pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/74 "2023-01-19T19:41:58Z")

</div>

those buttons on top , can we use them for a redraw of the screen when it is messed up. or switch between 4 or 6 items

also can we add more homey icons like for power and gas.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [January 20, 2023, 12:07am UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/75 "2023-01-20T00:07:51Z")

</div>

"it’s limited to 33 "  
Maybe than it is wiser to create an “own” Homey App.

---

<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 20, 2023, 9:43am UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/76 "2023-01-20T09:43:58Z")

</div>

> [@Picsou621](#):
>
> I just made this project with no programming knowledge, just following the guide, and I got to the end (with the help of [sebyldino](https://community.homey.app/u/sebyldino) on one or two points, again many thanks to him).

Encouraged by this words from @Picsou621 and all other reactions in this thread, i decided to check into this nice initiative also. Ordered the screen (@robertklep thx for the link) and also the capacitive touchscreen (I’m sure @sebyldino will find a way to make use of that 😬). Also my first dummy experience with esp32, so hope installing everything from Mac will work (else I have a spare windows laptop lying somewhere 🫤).

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [January 20, 2023, 10:37am UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/77 "2023-01-20T10:37:44Z")

</div>

I also ordered the screen and it’s also the first contact with Arduino for me. I will surely ask many questions… 😉

Just for info regarding the SDK3 update of the Homeyduino app developed by Athom:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/0/30f7621675a929d181f672dbe17c6e2be6356fb6.png)

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [January 20, 2023, 2:03pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/78 "2023-01-20T14:03:18Z")

</div>

This is a great en much cheaper alternative to the other e-ink display on this forum.  
I’m very curious how it works in detail and is it possible to post some videos? So we can see how the screen performs.

---

<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, 2:49pm UTC](https://community.homey.app/t/homeyduino-e-paper-for-homey/74640/79 "2023-01-20T14:49:07Z")

</div>

I get this issue after homey upgrade.

```auto
[log] 2023-01-20 14:47:50 [HomeyduinoApp] [njs-discovery] DUMP: {"id":"Paper Screen","version":"1.0.2","type":"homeyduino","class":"sensor","master":{"host":"0.0.0.0", "port":9999},"api":[{"name":"measure_battery", "type":"cap"},{"name":"Custom_weather_Icon", "type":"act"},{"name":"Weather_Text", "type":"act"},{"name":"Weather_Value", "type":"act"},{"name":"Device_Type_Zone_1", "type":"act"},{"name":"Device_Type_Zone_2", "type":"act"},{"name":"Device_Type_Zone_3", "type":"act"},{"name":"Device_Type_Zone_4", "type":"act"},{"name":"Device_Type_Zone_5", "type":"act"},{"name":"Device_Type_Zone_6", "type":"act"},{"name":"Icon_Zone_1", "type":"act"},{"name":"Icon_Zone_2", "type":"act"},{"name":"Icon_Zone_3", "type":"act"},{"name":"Icon_Zone_4", "type":"act"},{"name":"Icon_Zone_5", "type":"act"},{"name":"Icon_Zone_6", "type":"act"},{"name":"Name_Zone_1", "type":"act"},{"name":"Name_Zone_2", "type":"act"},{"name":"Name_Zone_3", "type":"act"},{"name":"Name_Zone_4", "type":"act"},{"name":"Name_Zone_5", "type":"act"},{"name":"Name_Zone_6", "type":"act"},{"name":"Value_Zone_1", "type":"act"},{"name":"Value_Zone_2", "type":"act"},{"name":"Value_Zone_3", "type":"act"},{"name":"Value_Zone_4", "type":"act"},{"name":"Value_Zone_5", "type":"act"},{"name":"Value_Zone_6", "type":"act"},{"name":"Time_Deep_Sleep", "type":"act"},{"name":"Battery_Percent", "type":"act"},{"name":"Battery_Icon", "type":"act"},{"name":"Last_Update", "type":"act"},{"name":"Screen_Repair", "type":"act"},{"name":"Select_Language", "type":"act"},
[log] 2023-01-20 14:47:50 [HomeyduinoApp] [njs-discovery] Received corrupt data from 192.168.107.68, ignoring packet.
[log] 2023-01-20 14:47:50 [HomeyduinoApp] [njs-discovery] DUMP: {"name":"Display_Mode", "type":"act"}]}

```

and don’t to re add device because then my flow steps are lost.

---

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

</div>

The first DUMP line is exactly 1460 bytes long, which also happens to be the size of the [Arduino TCP MSS](https://github.com/esp8266/Arduino/blob/bed2fa339d1d6cfd281c06594431f19096d1ca10/libraries/ESP8266WiFi/src/WiFiClient.h#L32) (basically, the maximum amount of data a single TCP packet can hold). My guess is that the Arduino TCP stack doesn’t support fragmentation.

---

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

</div>

now skipping discovery and doing tcp. the UI checkbox part does not work. will fix it later on the forked v3 sdk.

```auto
	deviceInit() {
		if (this.listening) {
			this.removeListeners(); //First remove the listeners
		}
		this.log("Searching for Arduino device "+this.deviceId+"...");
		this.device = this.homey.app.discovery.getDevice(this.deviceId);

		if ( this.device instanceof Error ) {
			this.log("Device ",this.deviceId," is not available.");
			this.setUnavailable("Offline");
			this.available = false;

			// if (this.polling) {
				this.log("Polling is enabled for device",this.deviceId," at IP ",this.ipAddress);
				this.homey.app.discovery.poll(this.ipAddress, (err, res) => {
					if (err) {
						this.log("Poll returned error:",err);
					} else {
						this.log("Poll success!");
					}
				});
			// }

```

```auto
onInit HomeyduinoApp...
onInit driver...
onInit device...
[log] 2023-01-20 15:16:48 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] typeof settings.id = string
[log] 2023-01-20 15:16:48 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Searching for Arduino device Paper Screen...
[log] 2023-01-20 15:16:48 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Device Paper Screen is not available.
[log] 2023-01-20 15:16:48 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Polling is enabled for device Paper Screen at IP 192.168.107.68
[log] 2023-01-20 15:16:48 [HomeyduinoApp] [njs-discovery] Polling device 192.168.107.68 over TCP...
[log] 2023-01-20 15:16:48 [HomeyduinoApp] [njs-discovery] Received corrupt data from 192.168.107.68, ignoring packet.
[log] 2023-01-20 15:16:48 [HomeyduinoApp] [njs-discovery] DUMP: {"name":"Display_Mode", "type":"act"}]}
[log] 2023-01-20 15:16:53 [HomeyduinoApp] [njs-discovery] New device: 'Paper Screen'
[log] 2023-01-20 15:16:53 [ManagerDrivers] [Driver:homeyduino] onDiscoverDevice Paper Screen
[log] 2023-01-20 15:16:53 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Searching for Arduino device Paper Screen...
[log] 2023-01-20 15:16:53 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Device Paper Screen is available.
[log] 2023-01-20 15:16:53 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Info: device API changed
[log] 2023-01-20 15:16:53 [ManagerDrivers] [Driver:homeyduino] [Device:62052ec6-13c0-4720-8ecb-e8b260291bcd] Info: added capability measure_battery

```

looks like I always get this error.

```auto
log] 2023-01-20 15:18:06 [HomeyduinoApp] onAction ok
[log] 2023-01-20 15:18:06 [HomeyduinoApp] onAction typeof string
[log] 2023-01-20 15:18:18 [HomeyduinoApp] [njs-discovery] Received corrupt data from 192.168.107.68, ignoring packet.
[log] 2023-01-20 15:18:18 [HomeyduinoApp] [njs-discovery] DUMP: {"id":"Paper Screen","version":"1.0.2","type":"homeyduino","class":"sensor","master":{"host":"192.168.107.50", "port":43111},"api":[{"name":"measure_battery", "type":"cap"},{"name":"Custom_weather_Icon", "type":"act"},{"name":"Weather_Text", "type":"act"},{"name":"Weather_Value", "type":"act"},{"name":"Device_Type_Zone_1", "type":"act"},{"name":"Device_Type_Zone_2", "type":"act"},{"name":"Device_Type_Zone_3", "type":"act"},{"name":"Device_Type_Zone_4", "type":"act"},{"name":"Device_Type_Zone_5", "type":"act"},{"name":"Device_Type_Zone_6", "type":"act"},{"name":"Icon_Zone_1", "type":"act"},{"name":"Icon_Zone_2", "type":"act"},{"name":"Icon_Zone_3", "type":"act"},{"name":"Icon_Zone_4", "type":"act"},{"name":"Icon_Zone_5", "type":"act"},{"name":"Icon_Zone_6", "type":"act"},{"name":"Name_Zone_1", "type":"act"},{"name":"Name_Zone_2", "type":"act"},{"name":"Name_Zone_3", "type":"act"},{"name":"Name_Zone_4", "type":"act"},{"name":"Name_Zone_5", "type":"act"},{"name":"Name_Zone_6", "type":"act"},{"name":"Value_Zone_1", "type":"act"},{"name":"Value_Zone_2", "type":"act"},{"name":"Value_Zone_3", "type":"act"},{"name":"Value_Zone_4", "type":"act"},{"name":"Value_Zone_5", "type":"act"},{"name":"Value_Zone_6", "type":"act"},{"name":"Time_Deep_Sleep", "type":"act"},{"name":"Battery_Percent", "type":"act"},{"name":"Battery_Icon", "type":"act"},{"name":"Last_Update", "type":"act"},{"name":"Screen_Repair", "type":"act"},{"name":"Select_Language", "type"
[log] 2023-01-20 15:18:18 [HomeyduinoApp] [njs-discovery] Received corrupt data from 192.168.107.68, ignoring packet.
[log] 2023-01-20 15:18:18 [HomeyduinoApp] [njs-discovery] DUMP: :"act"},{"name":"Display_Mode", "type":"act"}]}

```

---

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

</div>

So what happens is that the Arduino device sends a so called “index” JSON string to the app which contains (amongst other data) a list of capabilities and actions for the sketch.

This JSON string is too large for a single TCP packet, so it’s split up (the two “DUMP” lines in the log), but the Homeyduino app (specifically the `homey-arduino` package it uses) cannot handle this: after receiving the first packet, it tries to parse the JSON and fails (because it’s only a _partial_ JSON string).

The issue has to be fixed in the Homeyduino app.

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

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