sibbl / hass-lovelace-kindle-4

How to build your own Kindle 4 photo frame displaying your Home Assistant Lovelace panel
MIT License
310 stars 6 forks source link

Struggling with the install process #11

Open thephatmaster opened 1 year ago

thephatmaster commented 1 year ago

Firstly, thanks for the project. When (if) I get this up and running it will make my HA experience wonderful. I can do all sorts of practical things like make sure the usual doors and windows are closed before leaving, and ensure my grocery list is on the wall next to my partners' "analogue" grocery list.

Can I ask where is the best place to seek help with the install process - Here? Mobileread.com? the HA forums?

I bought a cheap K4 locally on seeing this project, but without realising the complexity of the various kindle-specific setup processes.

I got to installing KUAL, but now get the "Test Kindle Installation Result" notice (and "device not authorised" KUAL error).

Reinstalling MKK does make that go way, but only if I never connect to the wifi (which is obviously not ideal for use with your screensaver container).

It's not clear from the instructions whether I should have registered my device with Amazon (I haven't logged in) or not etc. I also can't find a post mentioning an addon which blocks contacting the mothership.

edit the KUAL addon BBB seemed to be an important part of the install process. However, it's not making any difference - I keep getting the authorisation revoked when I connect to wifi

further edit if I run the kindle in airplane mode, and reinstall MKK, I can at least ssh in over USB - the connection is patchy though

sibbl commented 1 year ago

Hi, sorry for the late reply - seems like I missed that back in January.

Sounds like a MKK issue to me, where the mobileread forums might be the better place to ask.

Great to hear that you somehow have gotten in running in the meantime, despite a patchy connection...?

The-May commented 1 year ago

@thephatmaster I had the same Issue. I was very curious too and I struggled alot too to get a grip on how to get into the loop and to understand the "logics" on how to install something on these pesky devices. I can recommend you doing following things in chronological order:

OPTIONAL:

  1. factory reset device (optional -> do it if nothing worked), be sure to be on 4.1.4 (latest Firmware for Kindle4 (K4) Devices and set it up initially. MANDATORY:

  2. Restrict internet access for the Kindle. It looks like Jeff Bezololo is somehow revoking/disabling something. You can "block internet access on any "normal" router to this device. @sibbl maybe mention it in the manual? People also mention activating flightmode to prevent this but I honestly could not find any explaination on this.

  3. (Re)jailbreak via the "known" method.

  4. Download and Install "Backdoorlock" https://www.mobileread.com/forums/showthread.php?t=205666 (File "update_backdoorlock_12install.bin in the .zip file called backdoorlock[number].zip This binary seems to prevent communication with Jeff´s Servers.

  5. Install Software USBNetwork, MKK/KUAL v1, kite (See steps from this repos Instruction)

  6. Be sure how to ssh into your device to fix something if you have screwed something up. 6.1 I recommend using it via USB-Cable method, which is a little more complicated, but reliable af. Siee instruction: [1] [2] 6.2 you can also go over the network but for me, I will never do this because this almost softbricked my device. (maybe bad luck)

  7. unrestrict access for the kindle OR change PINGHOST in the config.sh file into local home assistant IP, otherwise your tablet will tell you that wifi is not working OR just unrestrict access AND change PINGHOST to a local IP-Adress

  8. Install Docker Image (which I havent dont yet, because I wait for Pull #61

I have successfully tested it though by adding the sample Image into my openly visible www-path of home assistant: Warning! This is just for testing! The picture can be seen by everyone if they know the URL. Just do it for testing purposes

thephatmaster commented 11 months ago

Thanks Sebastian,

Currently my kindle is being used as an ereader after abandoning this project.

I'll check the post below and try again when I have time.

Steve

On Sat, Mar 11, 2023 at 10:14 AM Sebastian Schubotz < @.***> wrote:

Hi, sorry for the late reply - seems like I missed that back in January.

Sounds like a MKK issue to me, where the mobileread forums might be the better place to ask.

Great to hear that you somehow have gotten in running in the meantime, despite a patchy connection...?

— Reply to this email directly, view it on GitHub https://github.com/sibbl/hass-lovelace-kindle-4/issues/11#issuecomment-1464878225, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAHP2HEVDHS3WDKQAWGT7LW3RGCFANCNFSM6AAAAAATZGNSIA . You are receiving this because you authored the thread.Message ID: @.***>

thephatmaster commented 11 months ago

This is wonderful stuff, thank you,

I've added these steps to my project plan for Home Assistant. I'll update you once I've tried them.

Thanks again, Steve

On Tue, May 9, 2023 at 9:43 AM The-May @.***> wrote:

@thephatmaster https://github.com/thephatmaster I had the same Issue. I was very curious too and I struggled alot too to get a grip on how to get into the loop and to understand the "logics" on how to install something on these pesky devices. I can recommend you doing following things in chronological order:

OPTIONAL:

1.

factory reset device (optional -> do it if nothing worked), be sure to be on 4.1.4 (latest Firmware for Kindle4 (K4) Devices and set it up initially. MANDATORY: 2.

Restrict internet access for the Kindle. It looks like Jeff Bezololo is somehow revoking/disabling something. You can "block internet access on any "normal" router to this device. @sibbl https://github.com/sibbl maybe mention it in the manual? People also mention activating flightmode to prevent this but I honestly could not find any explaination on this. 3.

(Re)jailbreak via the "known" method. 4.

Download and Install "Backdoorlock" https://www.mobileread.com/forums/showthread.php?t=205666 (File "update_backdoorlock_12install.bin in the .zip file called backdoorlock[number].zip This binary seems to prevent communication with Jeff´s Servers. 5.

Install Software USBNetwork, MKK/KUAL v1, kite (See steps from this repos Instruction https://github.com/sibbl/hass-lovelace-kindle-4#hardware) 6.

Be sure how to ssh into your device to fix something if you have screwed something up. 6.1 I recommend using it via USB-Cable method, which is a little more complicated, but reliable af. Siee instruction: [1] https://www.mobileread.com/forums/showthread.php?p=3283986 [2] https://wiki.mobileread.com/wiki/Ethernet-over-USB_RNDIS_driver_setup 6.2 you can also go over the network but for me, I will never do this because this almost softbricked my device. (maybe bad luck) 7.

unrestrict access for the kindle OR change PINGHOST in the config.sh file https://github.com/sibbl/hass-lovelace-kindle-4/blob/main/extensions/homeassistant/config.sh into local home assistant IP, otherwise your tablet will tell you that wifi is not working OR just unrestrict access AND change PINGHOST to a local IP-Adress 8.

Install Docker Image (which I havent dont yet, because I wait for Pull

61 https://github.com/sibbl/hass-lovelace-kindle-screensaver/pull/61

I have successfully tested it though by adding the sample Image https://github.com/sibbl/hass-lovelace-kindle-screensaver#sample-image into my openly visible www-path of home assistant: Warning! This is just for testing! The picture can be seen by everyone if they know the URL. Just do it for testing purposes

  • download sample-image
  • rename it (in my case kindle1.png)
  • put it into the path \config\www\ of your homeassistant server
  • Change URL in Config.sh IMAGE_URI=" http://ip.of.your.homeassistant:8123/local/kindle1.png"
  • See if your Kindle shows the picture if yes: open the kindle1.png in paint, draw something into it and save it again
  • wait if the picture updates

— Reply to this email directly, view it on GitHub https://github.com/sibbl/hass-lovelace-kindle-4/issues/11#issuecomment-1539052646, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAHP2D7L5ULWKQ2ZU2EI3LXFH7STANCNFSM6AAAAAATZGNSIA . You are receiving this because you were mentioned.Message ID: @.***>

jck5000 commented 4 months ago

@The-May

If I had read that before doing everything thrice and ending up with the same problem as @thephatmaster, I wouldn't have given up because of the late hour. Now - well, tomorrow is a new day, let's see if this (still) works.

Really horrible policy by RiverinSouthAmerica Company, I had that 4th gen Kindle lie around since I got the first gen Paperwhite, and I haven't used that for years. I really wonder why nobody really hacked that, yet.

Pity that this isn't a well-maintained project anymore. Kudoz to the developer(s), but it's about the most useful HA thing I really want. ESPHome has nice solutions for $50 epaper displays, but pretty much everone who uses HA has at least two old Kindles.

And since this is getting into me ranting: Why is the most-popular, most-maintained external HA "Display" thing the Kiosk browser thing? Why, just why would I want a touch panel to control my HA if I have that to control everything, automatically? If I leave the house or go to bed, and forgot to switch off anything, I can tell Alexa since I was too bothered with manual switches. HA does that on it's own, the App know where I am. Why would anyone need a touch panel? I just need to know if everything is fine, because I have ~ zero programming skills.

thephatmaster commented 4 months ago

Let us know how you get on.

On the touchscreen point. I also tried the project for a kindle 4 touch which uses a browser in a docker container. The kindle install went fine, but unfortunately on my system (a Pi4) there were loads of dbus errors in the docker setup so I abandoned that too

(a touchscreen is useful to me as I can manually select which rooms to vacuum if there's a mess etc)

On Sat, 11 May 2024, 00:18 jck5000, @.***> wrote:

@The-May https://github.com/The-May

If I had read that before doing everything thrice and ending up with the same problem as @thephatmaster https://github.com/thephatmaster, I wouldn't have given up because of the late hour. Now - well, tomorrow is a new day, let's see if this (still) works.

Really horrible policy by RiverinSouthAmerica Company, I had that 4th gen Kindle lie around since I got the first gen Paperwhite, and I haven't used that for years. I really wonder why nobody really hacked that, yet.

Pity that this isn't a well-maintained project anymore. Kudoz to the developer(s), but it's about the most useful HA thing I really want. ESPHome has nice solutions for $50 epaper displays, but pretty much everone who uses HA has at least two old Kindles.

And since this is getting into me ranting: Why is the most-popular, most-maintained external HA "Display" thing the Kiosk browser thing? Why, just why would I want a touch panel to control my HA if I have that to control everything, automatically? If I leave the house or go to bed, and forgot to switch off anything, I can tell Alexa since I was too bothered with manual switches. HA does that on it's own, the App know where I am. Why would anyone need a touch panel? I just need to know if everything is fine, because I have ~ zero programming skills.

— Reply to this email directly, view it on GitHub https://github.com/sibbl/hass-lovelace-kindle-4/issues/11#issuecomment-2105373667, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANAHP2ACFSTOCIJFNESP473ZBVIUBAVCNFSM6AAAAAATZGNSICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGM3TGNRWG4 . You are receiving this because you were mentioned.Message ID: @.***>

jck5000 commented 4 months ago

Alright, switching off internet access in my router did help a lot.

So, instructrions for dummies, it does work:

(a) find the Kindle in your router and switch off internet access. If you can't do that, forget even trying this. (b) Follow steps 1-5 by sibbl here. If you have any problems understanding the instuctions, google what you want to do, click "Videos", and follow the first one. (c) Step 6 is "clone this repository". There's a video how to do that too, but just click the green "code" button, then click "download zip". Unpack Zip file. (d) "Set the variables inside this repository's extensions/homeassistant/config.sh" is a bit scary. As a windows user, use Notepad++, google will tell you where to download that for free (this is important!) Lines you have to change are:

IMAGE_URI="http://192.168.188.142:8123/local/sample.png" # URL of image to fetch. Keep in mind that the Kindle 4 does not support SSL/TLS requests PINGHOST="192.168.188.142" # which domain (or IP) to ping to check internet connectivity. ROUTERIP="192.168.188.1" # router gateway IP. The Kindle appears to sometimes forget the gateway's IP and we need to set this manually.

In my case, 142 is my homeassistant IP (it will tell you if you find it, set same for Pinghost. Router IP is your router's IP. It will also tell you if you find it, but that's easier than step (a).

Copy the folders "extensions" and "kite to your kindle root directory.

(e) as per @The-May above, download this sample image and upload it to your HA's config/www/ folder. It's easy if you install samba, this nice Indian gentleman explains it for people who have no clue like me. You'll have to create the /www folder. If you got this far, you should be able to do that.

(f) restart your kindle, make sure that your HA doesn't have SSL on (as per instructions; it's certainly a problem)

(g) find out that the sample.png is 800x600 resulution, works fine with ssl off, but looks shit.

No idea why.

But simply ignore that, it works great when you simply continue.

(h) Install the HA Add-On (click the blue "here" to install).

The configuration should be (first three lines, ignore the rest) http://homeassistant.local:8123 /lovelace/kiosk?kiosk ...and insert the Access token you generated after clicking your username. Consult youtube if you're not sure on how to do that. : I made a lovelace dashboard named kiosk, and ?kiosk will display it in kiosk mode, see this nice Swiss gentleman here on how to install that. Do that!

(k) change the IMAGE_URI in the config.sh file on your kindle in the /extensions/homeassistant to http://homeassistant.local:5000 (or http://192.168.188.142:5000 (insert correct IP here)

(l) give it some time. It does work fine.

THANK YOU SO MUCH to @sibbl who made this! Great use for an old kindle.