Execute submit-readings.js from Home Assistant via SSH to a Linux box. "Set and forget" approach with simple restart recovery.
Home Assistant (sensors: meter_1, meter_2)
↓ (monthly automation, 1st-7th, weekdays)
↓ (reads entity values)
↓ (shell_command via SSH)
Linux Box (user@box)
↓ (ha-submit.sh → PLAYWRIGHT_BROWSER + PLAYWRIGHT_EXECUTABLE_PATH)
↓ (node submit-readings.js <v1> <v2>)
↓ (Playwright headless: bundled Chromium on x86_64/arm64,
↓ system chromium-browser on armv7l via executablePath)
sofiyskavoda.bg (form submission)
Follow the installation instructions in README.md.
# From HA terminal add-on:
ssh-keygen -t ed25519 -f /config/.ssh/vodomer_key -N ""ssh-copy-id -i /config/.ssh/vodomer_key.pub user@linux-box-ipssh -i /config/.ssh/vodomer_key -o StrictHostKeyChecking=no user@linux-box-ip \
"/opt/vodomer/ha-submit.sh 123 456"shell_command:
submit_water_readings: >
ssh -i /config/.ssh/sodomer_key
-o StrictHostKeyChecking=no
-o ConnectTimeout=30
-o UserKnownHostsFile=/dev/null
user@LINUX_BOX_IP
"/opt/vodomer/ha-submit.sh {{ meter1 }} {{ meter2 }}"# In configuration.yaml
input_boolean:
water_readings_submitted:
name: "Water Readings Submitted"
initial: offUse the yaml example.
# Add to crontab
0 0 1 * * echo "" > /var/log/vodomer.logtail -f /var/log/vodomer.log