Skip to content

Instantly share code, notes, and snippets.

@m33x
m33x / hass.js
Last active November 28, 2025 03:52
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@mountbatt
mountbatt / ZOE-Widget.js
Last active January 22, 2026 22:42
Scriptable iOS widget that displays the status of your Renault ZOE (or Megane, Dacia Spring) on your iPhone and iPad.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: light-gray; icon-glyph: car;
// version 2025-06-29
// latest changes:
// not showing invalid charging kW when not available - thanks to dehsgr! <3
// add your my-renault account data:
let myRenaultUser = "your_email" // email
let myRenaultPass = "your_password" // password