Updated Games

I went through the games I have on the site and updated them to a more modern look and feel. I also made most of them Progressive Web Apps (PWAs) so they can be downloaded to your phone and played off-line.

Progressive Web Apps (PWAs) are websites designed to look and function like native mobile apps. Unlike traditional websites, they use “service workers” to cache data, allowing them to load quickly, send push notifications, and even work offline. They provide a “best of both worlds” experience: you get the speed and offline capabilities of a downloaded app without needing to visit an app store or give up significant storage space.

Installing a PWA is straightforward and bypasses the App Store or Google Play Store entirely. On Android, open Chrome, navigate to the website, tap the three-dot menu in the top right, and select “Install app” or “Add to Home screen.” On Apple (iOS), open Safari, navigate to the site, tap the Share icon (the box with an upward arrow), scroll down, and tap “Add to Home Screen.” In both cases, an icon will appear on your home screen, and when you open it, the browser interface (like the URL bar) will disappear to provide a full-screen app experience. Note that browsers other than Safari and Chrome should not be used to install the PWA. Firefox and others may not have complete PWA support.

You can view the list of games here or use the menu.

My Smart Home Just Got a New Brain: Using Claude Code to Tidy Up Home Assistant

I’ve always loved the flexibility of Home Assistant, but let’s be honest: maintaining a complex setup as it grows can feel like a second job. Between the custom YAML configurations, legacy devices, and the constant evolution of the HA dashboard, things get messy.

Recently, I decided to see if Claude Code—Anthropic’s agentic CLI tool—could handle the “spring cleaning” for me. After a weekend of testing, I can say it’s a game-changer for terminal-focused automation.


⚠️ First Rule of AI Automation: Backup Everything

Before we talk about the cool stuff, a word of caution: Because we are using sshfs, Claude Code is writing directly to your live files. One small “hallucination” in a YAML indentation can take your whole system down.

Do not start this without a fresh snapshot. Go to Settings > System > Backups and create a full backup. Better yet, if you’re on a Pi or Mini PC, clone the SD card or drive.


The Setup: Bridging the Gap

My Home Assistant instance runs on a dedicated mini PC, but I wanted to use Claude Code from my main workstation.

1. Mounting the Config via SSHFS

I used sshfs to make my remote /config folder appear as a local directory on my Zorin machine. Note that I’m using a local IP here; you’ll want to use your own internal address.

Bash

# Mounting the remote mini PC config to a local folder
mkdir ~/ha-config
sshfs root@192.168.xxx.xxx:/config ~/ha-config

Tip: If you’re using the “Advanced SSH & Web Terminal” add-on in HA, make sure SFTP is enabled in the add-on’s configuration!

2. Launching the Assistant

Bash

cd ~/ha-config
claude

Step 1: The Security Audit (The “Secrets” Move)

While Claude was scanning my files, it noticed something I’d overlooked: I had several API keys and authorization tokens hardcoded directly into my configuration.yaml and some custom integrations.

The Logic:

Claude didn’t just point this out; it explained that this was a security risk (especially if I ever back up my config to GitHub). It suggested moving them to secrets.yaml.

The Execution:

I gave it the go-ahead, and it was impressive to watch. It:

  1. Created/Updated my secrets.yaml file with the new keys.
  2. Replaced the hardcoded strings in configuration.yaml with !secret pointers.
  3. Verified the syntax was still valid for Home Assistant.

Step 2: Dashboard Refresh

My “What is on” dashboard tab was a mess—it was missing several newer devices I’d added.

The Prompt:

“Look at ui-lovelace.yaml. In the ‘What is on’ tab, find the current ‘Entities’ card. Compare with entities in the system and see if I am missing any. Then add the missing ones using conditional cards to show them only when they are on.

Because Claude Code uses “Solution Math”—calculating the logical outcome rather than just matching text—it understood the YAML structure perfectly. It didn’t just dump the entities at the bottom; it integrated them, respected the indentation, and even suggested a better icon for my solar production sensor.


Final Thoughts

We’ve all used AI to “write a script,” but Claude Code feels different because of its Agency. It isn’t just a chatbot; it’s an assistant that has access to your actual files. It can run a ha core check command to verify its own changes before you ever hit “Save.”

For a power user, it feels like having a senior developer sitting next to you who knows the Home Assistant documentation by heart. Just remember: Backup first, automate second.

Have you tried using agentic AI for your home automation yet? I’d love to hear about the prompts you’re using to keep your house running smoothly.

AI Coding – finding the sweet spots

I don’t think people realize what will happen with AI coding eventually. I have been playing with AI Coding for a little while and I am amazed at how well it does for certain tasks. These are simple programs that I have AI write for my personal use. I have had several Android Phone Apps created by AI that I use as a magician, for example. These apps are not intended for the general population and do not need to meet everyones needs, only mine.

Recently I found a old ASUS Nexus 7 Android tablet that I wanted to resurrect. I decided that I would use it as a controller tablet for my Home Assistant home automation system, something akin to a Kiosk mode controller. I had a brief chat with Google’s Gemini which told me that what I wanted to do was doable, but that since the device was old the code would have to be written without using the latest web tech. I suggested using the Home Assistant API and it thought that was a great idea. (I do find it annoying that AIs find all ideas to the great, even when they are not.)

Here is where I was amazed. I went into my Home Assistant and copied its configuration file. I uploaded that to Gemini and it extracted the devices I have from the file, suggested which ones it thought I should include, and then wrote the Javascript and HTML code for the app. It also gave me instructions on where to put the file within the Home Assistant server.

I uploaded the file and it worked. Now note that I could have used a third party plugin to Home Assistant that puts Home Assistant into a Kiosk mode, but I would have had to create a Home Assistant dashboard with the devices. Also, it is likely that that page would not have run on the Nexus web browser.

Kiosk Page to control my Home Assistant from my Nexus 7 tablet

What does this mean for the future. I still had to copy and paste the code, but we are already seeing AI agents that can take over even those tasks. I can see when users no longer open the Play Store to download an app, or search for a PC Program. Instead they will simply tell the AI Agent what they want the program or app to do and it will be created for them. If it isn’t exactly what you want, no problem, just tell the AI what to change.

Additional thoughts

So having AI build the new web page based interface I decided that I wanted it to run as an app, not has a web page via the browser. The problem with using the browser was that it opened with the browser tool bar and headers. So I asked the AI to build a Cordova app that simply showed the page, without using Chrome or Firefox.

It did this, but it was a bit harder. Not harder techically, harder in the sense it took the AI more time to get it right. The reason was that I am using very old hardware. Cordova has many dependencies and the AI had to figure out what version of each layer of technology would work. It eventually got there and I now have an app on the tablet that opens the kiosk mode directly.

AI Vs Real

Three of these are my photos, three are AI generated. It is getting hard to tell the difference. Bottom line, don’t trust any image you see on line.

Building Mobile Apps with AI: My Cordova Development Journey

Over the past few weeks, I’ve been using Claude (an AI assistant from Anthropic) to help me build several mobile applications using Apache Cordova. The experience has been eye-opening – both for what worked remarkably well and what proved frustratingly difficult. If you’re considering using AI to help with mobile development, here’s what I learned.

Continúa leyendo "Building Mobile Apps with AI: My Cordova Development Journey"

Cordova Android App Development: Complete Setup Guide

Overview

What is Cordova? Cordova wraps your HTML/CSS/JavaScript web app in a native Android container, allowing it to run as a standalone app on Android devices. Having suffered through getting this all setup via Claude.ai I thought I would ask Claude.ai to write this guide.

What you’ll need:

  • A computer running Linux (Ubuntu/similar)
  • An HTML/CSS/JavaScript web page
  • About 1-2 hours for initial setup
  • 2-3 GB of disk space for all the tools
Continúa leyendo "Cordova Android App Development: Complete Setup Guide"