ลูกผมชอบแอบเปิดแอปอื่น แล้วดูเพลินจนเลยเวลาที่ตกลงกันไว้ ผมเลยนั่งคุยกับ AI ทั้งวันหยุดเพื่อแก้เรื่องนี้ (ภาษาอังกฤษผมงู ๆ ปลา ๆ ดู เทคนิคของผม) ผมไม่ได้เขียนโค้ดเองสักบรรทัด สุดท้ายได้ทีวีที่มีโหมดเด็ก ถึงเวลานอนจอล็อกเอง เสียงเงียบเอง และได้แอปบนมือถือไว้คุมทีวีด้วย ภาพถ่ายและภาพหน้าจอในบทความนี้เป็นของทีวีและโทรศัพท์ที่บ้านผมเอง

สิ่งที่ได้

เตรียมของ
- คอม Mac หรือ Windows ที่ต่อ Wi-Fi วงเดียวกับทีวี
- ผู้ช่วย AI ที่รันคำสั่งบนเครื่องได้ เช่น Claude Code, GitHub Copilot CLI, Codex หรือ Gemini CLI
ขั้นตอน
- เปิดโหมดนักพัฒนาที่ทีวี การตั้งค่า › ระบบ › เกี่ยวกับ แล้วกด OK ที่ "บิลด์ของระบบปฏิบัติการ Android TV" 7 ครั้ง
- เปิด USB debugging ในเมนูตัวเลือกสำหรับนักพัฒนาแอปที่เพิ่งขึ้นมา
- ล้างทีวี แปะ prompt 1 ด้านล่างในผู้ช่วย AI ซึ่งใช้โปรเจกต์โอเพนซอร์ส CleanYourTV ปิดโฆษณาและแอปขยะ ไม่มีการลบแอปทิ้งถาวร สั่งให้ AI restore ทีวีกลับได้
- อนุญาตคอมพิวเตอร์ เมื่อทีวีถาม แล้วตอบคำถามของ AI
- เพิ่มโหมดเด็ก ในแชทเดิม แปะ prompt 2 AI จะถามว่าลูกเปิดแอปไหนได้ และทีวีใช้ได้ช่วงเวลาไหน
prompt 1: ล้างทีวี
Talk to me in Thai. Clone https://github.com/Gathin23/cleanyourtv and work inside that folder. Open its PROMPT.md and do everything between the two --- lines, exactly as if I had pasted it to you. My TV model is: ____ (if I left this blank, read the model from the TV once you are connected).
prompt 2: โหมดเด็กและกฎเวลา
Talk to me in Thai. My TV was cleaned with CleanYourTV and the cleanyourtv folder is on this computer. Clone https://github.com/nirasnet/peach-tv next to that folder, read its README.md, and set up the family TV on my real TV step by step, checking each step with a screenshot from the TV: 1. Install the TV agent with tv-agent/install.sh. If network ADB is already closed, tell me how to turn USB debugging back on, and close it again at the end. Keep the agent token private, don't print it in chat. 2. Ask me which apps my kids may open, then turn on Kids mode with only those apps. 3. Ask me what hours the TV may be used on school days and on weekends, and the daily screen-time limit, then set those rules. 4. Show me the unlock code and how to unlock the lock screen with the remote. 5. Ask me whether I have a Mac with Xcode and an iPhone. If yes, build and install the Peach TV app (ios/build-and-install.sh) and pair it with the TV. If not, give me a small script to lock and unlock the TV from this computer. Ask me before anything that needs my Apple account. Skip "away from home" (Tailscale) unless I ask for it.
prompt เป็นภาษาอังกฤษเพื่อให้ AI ทำงานแม่นที่สุด แต่สั่งให้ AI คุยกับเราเป็นภาษาไทย ขั้นตอนเต็มและฉบับล่าสุดอยู่ที่ repository peach-tv

เครดิต
ส่วนล้างทีวีคือ CleanYourTV โดย Gathin (MIT License, cleanyour.tv) โหมดเด็กและแอป iPhone ของผมต่อยอดจากโปรเจกต์นั้น