Mazda CX90
Хочете будувати кар’єру в Data Science та AI? Vodafone Big Data Lab відкриває новий набір —>

Ukrainian developer turns old Android 4.1 tablet into smart home control panel using Codex

Senior Frontend Engineer Andriy Pazyuk gave a second life to an old Ainol tablet based on Android 4.1, turning it into a full-screen control panel for the Home Assistant system. Since modern web interfaces and the official application no longer work on outdated hardware, the developer created a lightweight panel using the Codex AI tool.

Leave a comment
Add to Google
Ukrainian developer turns old Android 4.1 tablet into smart home control panel using Codex

Senior Frontend Engineer Andriy Pazyuk gave a second life to an old Ainol tablet based on Android 4.1, turning it into a full-screen control panel for the Home Assistant system. Since modern web interfaces and the official application no longer work on outdated hardware, the developer created a lightweight panel using the Codex AI tool.

“My Android 4.1 tablet, as old as I am, was lying idle (we are very similar to it). Now it is the control panel for my smart home. Codex made a lightweight Home Assistant application for it. Why didn’t I use the official Home Assistant application, you ask? Because it doesn’t even support such an old version of Android. And Codex is a bit buggy and in production,” joked Andriy Pazyuk on LinkedIn.

How the application was created

Initially, the developer tried to open the standard Home Assistant dashboard through a browser, but even Opera would freeze on the old Ainol tablet during launch. Then Paziuk, together with Codex, decided to write a lightweight native application in Java.

The development was done step by step: the AI ​​developer would compile an APK file, install it on the device via USB, and test it live. Starting with a simple prototype with a few buttons to control the lights, the project gradually expanded to a full-fledged home panel. Now it can control lighting and outlets, monitor the charging stations, see a schedule of power outages, and view video from the camera.

Panel layout. The camera frame and indicators in the image are for demonstration purposes.

How it all works under the hood

The tablet works on a local network. Commands (for example, turning on the light) are sent to Home Assistant via REST API, and feedback is received via WebSocket. Thanks to this, the interface reacts instantly to changes: if you turn on the light from your smartphone, the corresponding tile on the tablet will immediately change color. Similarly, charging station indicators and outage calendar data are updated in real time.

Since the old hardware cannot handle modern high-resolution video streams, the Home Assistant server pre-encodes the video from the camera into H.264 Baseline format (640×360, 10 frames/s) and transmits it to the tablet via RTSP. If the stream is temporarily interrupted, the panel automatically switches to displaying static frames and tries to resume the broadcast.

For comfortable use at home, the application has a night mode - the panel automatically turns off the screen at night when all the lights in the house are turned off, and in the morning the display "wakes up" according to the built-in Android schedule.

You can learn more about the development on GitHub .

Ukrainian IT professional created a device for voice control of the Cursor without switching windows
Ukrainian IT professional created a device for voice control of the Cursor without switching windows
On the topic
Ukrainian IT professional created a device for voice control of the Cursor without switching windows
Flashed PlayStation 4 runs AI model with 9 billion parameters at up to 43 tokens per second
Flashed PlayStation 4 runs AI model with 9 billion parameters at up to 43 tokens per second
On the topic
Flashed PlayStation 4 runs AI model with 9 billion parameters at up to 43 tokens per second
A Ukrainian created WPods — a free utility for fully operating AirPods on Windows 11 without compromising system security
A Ukrainian created WPods — a free utility for fully operating AirPods on Windows 11 without compromising system security
On the topic
A Ukrainian created WPods — a free utility for fully operating AirPods on Windows 11 without compromising system security
Read the country's main IT news in our Telegram
Read the country's main IT news in our Telegram
On the topic
Read the country's main IT news in our Telegram
Also Read
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Roosh запускає нову освітню платформу AI HOUSE CLUB для ML/AI-спеціалістів та дата сайнтистів. Розповідаємо, як подати заявку та чому навчатимуть
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Як нейромережі бачать вільну та незалежну Україну? Тест dev.ua
Нейронні мережі для генерації зображень бачать світ по-своєму, їхню логіку зрозуміти часом зовсім неможливо. Але таки хочеться. На честь Дня Незалежності України редакція dev.ua вирішила провести невеликий експеримент. Ми задали чотирьом різним нейронним мережам п’ять однакових запитів: «прапор України», «День Незалежності України», «український Крим», «перемога України» та «українці». Отриманими результатами ми ділимося з вами нижче.
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok тепер можна генерувати фон за допомогою нейромережі. Ми протестували її та ділимося результатами
У TikTok з’явилася нова функція «Розумний фон». З її допомогою як фон для тіктоків можна підставляти згенеровані нейромережею зображення. Редакція dev.ua протестувала цю технологію і ділиться своїми враженнями.
1 comment
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака
Які IT-спеціальності будуть потрібні в найближчі п'ять років? Ми з'ясували у голови американського стартапу ADAM Дениса Гурака

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.