Paweł Nowecki
Domek App - Smart home & PHEV
Back to portfolio
Dedicated systems

Domek App - Smart home & PHEV

Turborepo system: cloud Express API + TimescaleDB + WebSocket, LAN home-bridge on Pi (inverter, LEDs, motion), Expo app with wall mode - no inbound ports to the house.

Technologies

TypeScriptTypeScriptNode.jsNode.jsExpressExpressReact NativeReact NativeExpoExpoTimescaleDBTimescaleDBWebSocketWebSocketRaspberry PiRaspberry PiDockerDockerPrismaPrisma

?Challenge

Unify PV, dynamic tariffs, Tuya, and PHEV charging while keeping LAN hardware and cameras private and reachable without port-forwarding.

Solution

Split cloud logic from edge agent: ingest from bridge, command queues for LAN devices, Charging Brain with PV surplus rules, go2rtc WebRTC for Tapo cameras.

Key decisions

01

Charging Brain

Priority rules: user windows → PV export threshold → min 30 min ON grace - no relay chatter.

02

Cloud brain, edge hands

Bridge only outbound HTTPS; cloud queues LED commands and accepts inverter ingest with X-Bridge-Key.

03

Privacy-first cameras

Tapo offline → go2rtc on Pi → WebRTC in app (~0.2–0.5 s), local motion via ffmpeg/RTSP.

Results

1

Automated PHEV charging from PV surplus

2

Local camera streams without vendor cloud

3

Real-time energy dashboard on phone & wall tablet

Gallery

Contact

Let's talk about your project

Contact Info

Have questions? Want to discuss your project? Write to me - I usually reply within 24 hours.